← Google Calendar + Search API integrations

Google Search API with Search API API on New Created or Updated Event (Instant) from Google Calendar API

Pipedream makes it easy to connect APIs for Search API, Google Calendar and 2,700+ other apps remarkably fast.

Trigger workflow on
New Created or Updated Event (Instant) from the Google Calendar API
Next, do this
Google Search API with the Search API API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Google Calendar trigger and Search API action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Created or Updated Event (Instant) trigger
    1. Connect your Google Calendar account
    2. Optional- Select one or more Calendars
    3. Optional- Configure Emit only for new events
    4. Configure Push notification renewal schedule
  3. Configure the Google Search API action
    1. Connect your Search API account
    2. Configure Query
    3. Optional- Select a Device
    4. Optional- Select a Domain
    5. Optional- Select a Interface Language
    6. Optional- Select a Search Country
    7. Optional- Select a Time Period
    8. Optional- Configure Number of Results
    9. Optional- Configure Page
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when a Google Calendar events is created or updated (does not emit cancelled events)
Version:0.1.15
Key:google_calendar-new-or-updated-event-instant

Google Calendar Overview

The Google Calendar API lets you dip into the powerhouse of scheduling, allowing for the reading, creation, and manipulation of events and calendars directly from your applications. Through Pipedream, you can seamlessly integrate Google Calendar into a myriad of workflows, automating event management, syncing with other services, setting up custom reminders, or even collating data for reporting. The key here is to streamline your calendar-related processes, ensuring that your time management is as efficient and automated as possible.

Trigger Code

import { v4 as uuid } from "uuid";
import sampleEmit from "./test-event.mjs";
import googleCalendar from "../../google_calendar.app.mjs";
import constants from "../../common/constants.mjs";

export default {
  key: "google_calendar-new-or-updated-event-instant",
  type: "source",
  name: "New Created or Updated Event (Instant)",
  description: "Emit new event when a Google Calendar events is created or updated (does not emit cancelled events)",
  version: "0.1.15",
  dedupe: "unique",
  props: {
    googleCalendar,
    db: "$.service.db",
    calendarIds: {
      propDefinition: [
        googleCalendar,
        "calendarId",
      ],
      type: "string[]",
      default: [
        "primary",
      ],
      label: "Calendars",
      description: "Select one or more calendars to watch (defaults to the primary calendar)",
    },
    newOnly: {
      label: "Emit only for new events",
      type: "boolean",
      description: "Emit new events only, and not updates to existing events (defaults to `false`)",
      optional: true,
      default: false,
    },
    http: "$.interface.http",
    timer: {
      label: "Push notification renewal schedule",
      description: "The Google Calendar API requires occasional renewal of push notification subscriptions. **This runs in the background, so you should not need to modify this schedule**.",
      type: "$.interface.timer",
      static: {
        intervalSeconds: constants.WEBHOOK_SUBSCRIPTION_RENEWAL_SECONDS,
      },
    },
  },
  hooks: {
    async deploy() {
      const events = [];
      const params = {
        maxResults: 25,
        orderBy: "updated",
      };
      for (const calendarId of this.calendarIds) {
        params.calendarId = calendarId;
        const { items } = await this.googleCalendar.listEvents(params);
        events.push(...items);
      }
      events.sort((a, b) => (Date.parse(a.updated) > Date.parse(b.updated))
        ? 1
        : -1);
      for (const event of events.slice(-25)) {
        const meta = this.generateMeta(event);
        this.$emit(event, meta);
      }
    },
    async activate() {
      await this.makeWatchRequest();
    },
    async deactivate() {
      try {
        await this.stopWatchRequest();
      } catch (e) {
        console.log(`Error deactivating webhook. ${e}`);
      }
    },
  },
  methods: {
    setNextSyncToken(calendarId, nextSyncToken) {
      this.db.set(`${calendarId}.nextSyncToken`, nextSyncToken);
    },
    getNextSyncToken(calendarId) {
      return this.db.get(`${calendarId}.nextSyncToken`);
    },
    setChannelId(calendarId, channelId) {
      this.db.set(`${calendarId}.channelId`, channelId);
    },
    getChannelId(calendarId) {
      return this.db.get(`${calendarId}.channelId`);
    },
    setResourceId(calendarId, resourceId) {
      this.db.set(`${calendarId}.resourceId`, resourceId);
    },
    getResourceId(calendarId) {
      return this.db.get(`${calendarId}.resourceId`);
    },
    setExpiration(calendarId, expiration) {
      this.db.set(`${calendarId}.expiration`, expiration);
    },
    getExpiration(calendarId) {
      return this.db.get(`${calendarId}.expiration`);
    },
    /**
     * A utility method to compute whether the provided event is newly created
     * or not. Since the Google Calendar API does not provide a specific way to
     * determine this, this method estimates the result based on the `created`
     * and `updated` timestamps: if they are more than 2 seconds apart, then we
     * assume that the event is not new.
     *
     * @param {Object} event - The calendar event being processed
     * @returns {Boolean} True if the input event is a newly created event, or
     * false otherwise
     */
    _isNewEvent(event) {
      const {
        created,
        updated,
      } = event;
      const createdTimestampMilliseconds = Date.parse(created);
      const updatedTimestampMilliseconds = Date.parse(updated);
      const diffMilliseconds = Math.abs(
        updatedTimestampMilliseconds - createdTimestampMilliseconds,
      );
      const maxDiffMilliseconds = 2000;
      return diffMilliseconds <= maxDiffMilliseconds;
    },
    /**
     * A utility method to compute whether the provided event is relevant to the
     * event source (and as a consequence must be processed) or not.
     *
     * @param {Object} event - The calendar event being processed
     * @returns {Boolean} True if the input event must be processed, or false
     * otherwise (i.e. if the event must be skipped)
     */
    isEventRelevant(event) {
      return !this.newOnly || this._isNewEvent(event);
    },
    generateMeta(event) {
      const {
        id,
        summary,
        updated: tsString,
      } = event;
      const ts = Date.parse(tsString);
      return {
        id: `${id}-${ts}`,
        summary,
        ts,
      };
    },
    async makeWatchRequest() {
      // Make watch request for this HTTP endpoint
      for (const calendarId of this.calendarIds) {
        const watchResp =
          await this.googleCalendar.watchEvents({
            calendarId,
            requestBody: {
              id: uuid(),
              type: "web_hook",
              address: this.http.endpoint,
            },
          });

        // Initial full sync. Get next sync token
        const nextSyncToken = await this.googleCalendar.fullSync(calendarId);

        this.setNextSyncToken(calendarId, nextSyncToken);
        this.setChannelId(calendarId, watchResp.id);
        this.setResourceId(calendarId, watchResp.resourceId);
        this.setExpiration(calendarId, watchResp.expiration);
      }
    },
    async stopWatchRequest() {
      for (const calendarId of this.calendarIds) {
        const id = this.getChannelId(calendarId);
        const resourceId = this.getResourceId(calendarId);
        if (id && resourceId) {
          const { status } =
            await this.googleCalendar.stopChannel({
              returnOnlyData: false,
              requestBody: {
                id,
                resourceId,
              },
            });
          if (status === 204) {
            console.log("webhook deactivated");
            this.setNextSyncToken(calendarId, null);
            this.setChannelId(calendarId, null);
            this.setResourceId(calendarId, null);
            this.setExpiration(calendarId, null);
          } else {
            console.log("There was a problem deactivating the webhook");
          }
        }
      }
    },
    getSoonestExpirationDate() {
      let min;
      for (const calendarId of this.calendarIds) {
        const expiration = parseInt(this.db.get(`${calendarId}.expiration`));
        if (!min || expiration < min) {
          min = expiration;
        }
      }
      return new Date(min);
    },
    getCalendarIdForChannelId(incomingChannelId) {
      for (const calendarId of this.calendarIds) {
        if (this.db.get(`${calendarId}.channelId`) === incomingChannelId) {
          return calendarId;
        }
      }
      return null;
    },
  },
  async run(event) {
    let calendarId = null; // calendar ID matching incoming channel ID

    // refresh watch
    if (event.interval_seconds) {
      // get time
      const now = new Date();
      const intervalMs = event.interval_seconds * 1000;
      // get expiration
      const expireDate = this.getSoonestExpirationDate();

      // if now + interval > expiration, refresh watch
      if (now.getTime() + intervalMs > expireDate.getTime()) {
        await this.stopWatchRequest();
        await this.makeWatchRequest();
      }
    } else {
      // Verify channel ID
      const incomingChannelId = event?.headers?.["x-goog-channel-id"];
      calendarId = this.getCalendarIdForChannelId(incomingChannelId);
      if (!calendarId) {
        console.log(
          `Unexpected channel ID ${incomingChannelId}. This likely means there are multiple, older subscriptions active.`,
        );
        return;
      }

      // Check that resource state === exists
      const state = event?.headers?.["x-goog-resource-state"];
      switch (state) {
      case "exists":
        // there's something to emit, so keep going
        break;
      case "not_exists":
        console.log("Resource does not exist. Exiting.");
        return;
      case "sync":
        console.log("New channel created");
        return;
      default:
        console.log(`Unknown state: ${state}`);
        return;
      }
    }

    // Fetch and emit events
    const checkCalendarIds = calendarId
      ? [
        calendarId,
      ]
      : this.calendarIds;
    for (const calendarId of checkCalendarIds) {
      const syncToken = this.getNextSyncToken(calendarId);
      let nextSyncToken = null;
      let nextPageToken = null;
      while (!nextSyncToken) {
        try {
          const { data: syncData = {} } = await this.googleCalendar.listEvents({
            returnOnlyData: false,
            calendarId,
            syncToken,
            pageToken: nextPageToken,
            maxResults: 2500,
          });

          nextPageToken = syncData.nextPageToken;
          nextSyncToken = syncData.nextSyncToken;

          const { items: events = [] } = syncData;
          events
            .filter(this.isEventRelevant, this)
            .forEach((event) => {
              const { status } = event;
              if (status === "cancelled") {
                console.log("Event cancelled. Exiting.");
                return;
              }
              const meta = this.generateMeta(event);
              this.$emit(event, meta);
            });
        } catch (error) {
          if (error === "Sync token is no longer valid, a full sync is required.") {
            console.log("Sync token invalid, resyncing");
            nextSyncToken = await this.googleCalendar.fullSync(calendarId);
            break;
          } else {
            throw error;
          }
        }
      }

      this.setNextSyncToken(calendarId, nextSyncToken);
    }
  },
  sampleEmit,
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Google CalendargoogleCalendarappThis component uses the Google Calendar app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
CalendarscalendarIdsstring[]Select a value from the drop down menu.
Emit only for new eventsnewOnlyboolean

Emit new events only, and not updates to existing events (defaults to false)

N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
Push notification renewal scheduletimer$.interface.timer

The Google Calendar API requires occasional renewal of push notification subscriptions. This runs in the background, so you should not need to modify this schedule.

Trigger Authentication

Google Calendar uses OAuth authentication. When you connect your Google Calendar account, Pipedream will open a popup window where you can sign into Google Calendar and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Google Calendar API.

Pipedream requests the following authorization scopes when you connect your account:

https://www.googleapis.com/auth/calendar.eventshttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.settings.readonlyemailprofile

About Google Calendar

With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.

Action

Description:Google Search API uses /api/v1/search?engine=google API endpoint to scrape real-time results. [See the documentation](https://www.searchapi.io/docs/google)
Version:0.0.1
Key:search_api-google-search

Search API Overview

The Search API API allows you to create and manage a search engine for your website or application, providing robust search capabilities like full-text search, faceting, filtering, and autocomplete. Integrating this API into Pipedream workflows unleashes the potential for automating content indexing, performing complex searches based on triggers, and synchronizing search results with other apps for analytics, monitoring, or further processing.

Action Code

import app from "../../search_api.app.mjs";

export default {
  key: "search_api-google-search",
  name: "Google Search API",
  description: "Google Search API uses /api/v1/search?engine=google API endpoint to scrape real-time results. [See the documentation](https://www.searchapi.io/docs/google)",
  version: "0.0.1",
  type: "action",
  props: {
    app,
    q: {
      propDefinition: [
        app,
        "q",
      ],
    },
    device: {
      propDefinition: [
        app,
        "device",
      ],
    },
    domain: {
      propDefinition: [
        app,
        "domain",
      ],
    },
    hl: {
      propDefinition: [
        app,
        "hl",
      ],
    },
    gl: {
      propDefinition: [
        app,
        "gl",
      ],
    },
    timePeriod: {
      propDefinition: [
        app,
        "timePeriod",
      ],
    },
    num: {
      propDefinition: [
        app,
        "num",
      ],
    },
    page: {
      propDefinition: [
        app,
        "page",
      ],
    },
  },
  async run({ $ }) {
    const engine = "google";
    const params = {
      q: this.q,
      device: this.device,
      domain: this.domain,
      hl: this.hl,
      gl: this.gl,
      time_period: this.timePeriod,
      num: this.num,
      page: this.page,
    };

    const result = await this.app.search({
      $,
      params,
      engine,
    });

    $.export("$summary", `Successfully searched "${this.q} on engine ${engine}"`);

    return result;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Search APIappappThis component uses the Search API app.
Queryqstring

The search query

DevicedevicestringSelect a value from the drop down menu:desktopmobiletablet
DomaindomainstringSelect a value from the drop down menu:google.comgoogle.adgoogle.aegoogle.com.afgoogle.com.aggoogle.com.aigoogle.algoogle.amgoogle.co.aogoogle.com.argoogle.asgoogle.atgoogle.com.augoogle.azgoogle.bagoogle.com.bdgoogle.begoogle.bfgoogle.bggoogle.com.bhgoogle.bigoogle.bjgoogle.com.bngoogle.com.bogoogle.com.brgoogle.bsgoogle.btgoogle.co.bwgoogle.bygoogle.com.bzgoogle.cagoogle.com.khgoogle.cdgoogle.cfgoogle.cggoogle.chgoogle.cigoogle.co.ckgoogle.clgoogle.cmgoogle.com.cogoogle.co.crgoogle.com.cugoogle.cvgoogle.com.cygoogle.czgoogle.degoogle.djgoogle.dkgoogle.dmgoogle.com.dogoogle.dzgoogle.com.ecgoogle.eegoogle.com.eggoogle.esgoogle.com.etgoogle.figoogle.fmgoogle.com.fjgoogle.frgoogle.gagoogle.gegoogle.com.ghgoogle.com.gigoogle.glgoogle.gmgoogle.gpgoogle.grgoogle.com.gtgoogle.gygoogle.com.hkgoogle.hngoogle.hrgoogle.htgoogle.hugoogle.co.idgoogle.iqgoogle.iegoogle.co.ilgoogle.co.ingoogle.isgoogle.itgoogle.com.jmgoogle.jogoogle.co.jpgoogle.co.kegoogle.kigoogle.kggoogle.co.krgoogle.com.kwgoogle.kzgoogle.lagoogle.com.lbgoogle.ligoogle.lkgoogle.co.lsgoogle.ltgoogle.lugoogle.lvgoogle.com.lygoogle.co.magoogle.mdgoogle.mggoogle.mkgoogle.mlgoogle.com.mmgoogle.mngoogle.msgoogle.com.mtgoogle.mugoogle.mvgoogle.mwgoogle.com.mxgoogle.com.mygoogle.co.mzgoogle.com.nagoogle.negoogle.com.nggoogle.com.nigoogle.nlgoogle.nogoogle.com.npgoogle.nrgoogle.nugoogle.co.nzgoogle.com.omgoogle.com.pkgoogle.com.pagoogle.com.pegoogle.com.phgoogle.plgoogle.com.pggoogle.com.prgoogle.psgoogle.ptgoogle.com.pygoogle.com.qagoogle.rogoogle.rsgoogle.rugoogle.rwgoogle.com.sagoogle.com.sbgoogle.scgoogle.segoogle.com.sggoogle.shgoogle.sigoogle.skgoogle.com.slgoogle.sngoogle.smgoogle.sogoogle.srgoogle.com.svgoogle.tdgoogle.tggoogle.co.thgoogle.com.tjgoogle.tkgoogle.tlgoogle.tmgoogle.togoogle.tngoogle.com.trgoogle.ttgoogle.com.twgoogle.co.tzgoogle.com.uagoogle.co.uggoogle.co.ukgoogle.com.uygoogle.co.uzgoogle.com.vcgoogle.co.vegoogle.vggoogle.co.vigoogle.com.vngoogle.vugoogle.wsgoogle.co.zagoogle.co.zmgoogle.co.zw
Interface LanguagehlstringSelect a value from the drop down menu:{ "value": "af", "label": "Afrikaans" }{ "value": "ak", "label": "Akan" }{ "value": "sq", "label": "Albanian" }{ "value": "ws", "label": "Samoa" }{ "value": "am", "label": "Amharic" }{ "value": "ar", "label": "Arabic" }{ "value": "hy", "label": "Armenian" }{ "value": "az", "label": "Azerbaijani" }{ "value": "eu", "label": "Basque" }{ "value": "be", "label": "Belarusian" }{ "value": "bem", "label": "Bemba" }{ "value": "bn", "label": "Bengali" }{ "value": "bh", "label": "Bihari" }{ "value": "xx-bork", "label": "Bork, bork, bork!" }{ "value": "bs", "label": "Bosnian" }{ "value": "br", "label": "Breton" }{ "value": "bg", "label": "Bulgarian" }{ "value": "bt", "label": "Bhutanese" }{ "value": "km", "label": "Cambodian" }{ "value": "ca", "label": "Catalan" }{ "value": "chr", "label": "Cherokee" }{ "value": "ny", "label": "Chichewa" }{ "value": "zh-cn", "label": "Chinese (Simplified)" }{ "value": "zh-tw", "label": "Chinese (Traditional)" }{ "value": "co", "label": "Corsican" }{ "value": "hr", "label": "Croatian" }{ "value": "cs", "label": "Czech" }{ "value": "da", "label": "Danish" }{ "value": "nl", "label": "Dutch" }{ "value": "xx-elmer", "label": "Elmer Fudd" }{ "value": "en", "label": "English" }{ "value": "eo", "label": "Esperanto" }{ "value": "et", "label": "Estonian" }{ "value": "ee", "label": "Ewe" }{ "value": "fo", "label": "Faroese" }{ "value": "tl", "label": "Filipino" }{ "value": "fi", "label": "Finnish" }{ "value": "fr", "label": "French" }{ "value": "fy", "label": "Frisian" }{ "value": "gaa", "label": "Ga" }{ "value": "gl", "label": "Galician" }{ "value": "ka", "label": "Georgian" }{ "value": "de", "label": "German" }{ "value": "el", "label": "Greek" }{ "value": "kl", "label": "Greenlandic" }{ "value": "gn", "label": "Guarani" }{ "value": "gu", "label": "Gujarati" }{ "value": "xx-hacker", "label": "Hacker" }{ "value": "ht", "label": "Haitian Creole" }{ "value": "ha", "label": "Hausa" }{ "value": "haw", "label": "Hawaiian" }{ "value": "iw", "label": "Hebrew" }{ "value": "hi", "label": "Hindi" }{ "value": "hu", "label": "Hungarian" }{ "value": "is", "label": "Icelandic" }{ "value": "ig", "label": "Igbo" }{ "value": "id", "label": "Indonesian" }{ "value": "ia", "label": "Interlingua" }{ "value": "ga", "label": "Irish" }{ "value": "it", "label": "Italian" }{ "value": "ja", "label": "Japanese" }{ "value": "jw", "label": "Javanese" }{ "value": "kn", "label": "Kannada" }{ "value": "kk", "label": "Kazakh" }{ "value": "rw", "label": "Kinyarwanda" }{ "value": "rn", "label": "Kirundi" }{ "value": "xx-klingon", "label": "Klingon" }{ "value": "kg", "label": "Kongo" }{ "value": "ko", "label": "Korean" }{ "value": "kri", "label": "Krio (Sierra Leone)" }{ "value": "ku", "label": "Kurdish" }{ "value": "ckb", "label": "Kurdish (Soranî)" }{ "value": "ky", "label": "Kyrgyz" }{ "value": "lo", "label": "Laothian" }{ "value": "la", "label": "Latin" }{ "value": "lv", "label": "Latvian" }{ "value": "ln", "label": "Lingala" }{ "value": "lt", "label": "Lithuanian" }{ "value": "loz", "label": "Lozi" }{ "value": "lg", "label": "Luganda" }{ "value": "ach", "label": "Luo" }{ "value": "mk", "label": "Macedonian" }{ "value": "mg", "label": "Malagasy" }{ "value": "my", "label": "Malay" }{ "value": "ml", "label": "Malayalam" }{ "value": "mt", "label": "Maltese" }{ "value": "mv", "label": "Maldives" }{ "value": "mi", "label": "Maori" }{ "value": "mr", "label": "Marathi" }{ "value": "mfe", "label": "Mauritian Creole" }{ "value": "mo", "label": "Moldavian" }{ "value": "mn", "label": "Mongolian" }{ "value": "sr-me", "label": "Montenegrin" }{ "value": "ne", "label": "Nepali" }{ "value": "pcm", "label": "Nigerian Pidgin" }{ "value": "nso", "label": "Northern Sotho" }{ "value": "no", "label": "Norwegian" }{ "value": "nn", "label": "Norwegian (Nynorsk)" }{ "value": "oc", "label": "Occitan" }{ "value": "or", "label": "Oriya" }{ "value": "om", "label": "Oromo" }{ "value": "ps", "label": "Pashto" }{ "value": "fa", "label": "Persian" }{ "value": "xx-pirate", "label": "Pirate" }{ "value": "pl", "label": "Polish" }{ "value": "pt", "label": "Portuguese" }{ "value": "pt-br", "label": "Portuguese (Brazil)" }{ "value": "pt-pt", "label": "Portuguese (Portugal)" }{ "value": "pa", "label": "Punjabi" }{ "value": "qu", "label": "Quechua" }{ "value": "ro", "label": "Romanian" }{ "value": "rm", "label": "Romansh" }{ "value": "nyn", "label": "Runyakitara" }{ "value": "ru", "label": "Russian" }{ "value": "gd", "label": "Scots Gaelic" }{ "value": "sr", "label": "Serbian" }{ "value": "sh", "label": "Serbo-Croatian" }{ "value": "st", "label": "Sesotho" }{ "value": "tn", "label": "Setswana" }{ "value": "crs", "label": "Seychellois Creole" }{ "value": "sn", "label": "Shona" }{ "value": "sd", "label": "Sindhi" }{ "value": "si", "label": "Sinhalese" }{ "value": "sk", "label": "Slovak" }{ "value": "sl", "label": "Slovenian" }{ "value": "so", "label": "Somali" }{ "value": "es", "label": "Spanish" }{ "value": "es-419", "label": "Spanish (Latin American)" }{ "value": "su", "label": "Sundanese" }{ "value": "sw", "label": "Swahili" }{ "value": "sv", "label": "Swedish" }{ "value": "tg", "label": "Tajik" }{ "value": "ta", "label": "Tamil" }{ "value": "tt", "label": "Tatar" }{ "value": "te", "label": "Telugu" }{ "value": "th", "label": "Thai" }{ "value": "ti", "label": "Tigrinya" }{ "value": "to", "label": "Tonga" }{ "value": "lua", "label": "Tshiluba" }{ "value": "tum", "label": "Tumbuka" }{ "value": "tr", "label": "Turkish" }{ "value": "tk", "label": "Turkmen" }{ "value": "tw", "label": "Twi" }{ "value": "ug", "label": "Uighur" }{ "value": "uk", "label": "Ukrainian" }{ "value": "ur", "label": "Urdu" }{ "value": "uz", "label": "Uzbek" }{ "value": "vu", "label": "Vanuatu" }{ "value": "vi", "label": "Vietnamese" }{ "value": "cy", "label": "Welsh" }{ "value": "wo", "label": "Wolof" }{ "value": "xh", "label": "Xhosa" }{ "value": "yi", "label": "Yiddish" }{ "value": "yo", "label": "Yoruba" }{ "value": "zu", "label": "Zulu" }
Search CountryglstringSelect a value from the drop down menu:{ "value": "af", "label": "Afghanistan" }{ "value": "al", "label": "Albania" }{ "value": "dz", "label": "Algeria" }{ "value": "as", "label": "American Samoa" }{ "value": "ad", "label": "Andorra" }{ "value": "ao", "label": "Angola" }{ "value": "ai", "label": "Anguilla" }{ "value": "aq", "label": "Antarctica" }{ "value": "ag", "label": "Antigua and Barbuda" }{ "value": "ar", "label": "Argentina" }{ "value": "am", "label": "Armenia" }{ "value": "aw", "label": "Aruba" }{ "value": "au", "label": "Australia" }{ "value": "at", "label": "Austria" }{ "value": "az", "label": "Azerbaijan" }{ "value": "bs", "label": "Bahamas" }{ "value": "bh", "label": "Bahrain" }{ "value": "bd", "label": "Bangladesh" }{ "value": "bb", "label": "Barbados" }{ "value": "by", "label": "Belarus" }{ "value": "be", "label": "Belgium" }{ "value": "bz", "label": "Belize" }{ "value": "bj", "label": "Benin" }{ "value": "bm", "label": "Bermuda" }{ "value": "bt", "label": "Bhutan" }{ "value": "bo", "label": "Bolivia" }{ "value": "ba", "label": "Bosnia and Herzegovina" }{ "value": "bw", "label": "Botswana" }{ "value": "bv", "label": "Bouvet Island" }{ "value": "br", "label": "Brazil" }{ "value": "io", "label": "British Indian Ocean Territory" }{ "value": "bn", "label": "Brunei Darussalam" }{ "value": "bg", "label": "Bulgaria" }{ "value": "bf", "label": "Burkina Faso" }{ "value": "bi", "label": "Burundi" }{ "value": "kh", "label": "Cambodia" }{ "value": "cm", "label": "Cameroon" }{ "value": "ca", "label": "Canada" }{ "value": "cv", "label": "Cape Verde" }{ "value": "ky", "label": "Cayman Islands" }{ "value": "cf", "label": "Central African Republic" }{ "value": "td", "label": "Chad" }{ "value": "cl", "label": "Chile" }{ "value": "cn", "label": "China" }{ "value": "cx", "label": "Christmas Island" }{ "value": "cc", "label": "Cocos (Keeling) Islands" }{ "value": "co", "label": "Colombia" }{ "value": "km", "label": "Comoros" }{ "value": "cg", "label": "Congo" }{ "value": "cd", "label": "Congo, the Democratic Republic of the" }{ "value": "ck", "label": "Cook Islands" }{ "value": "cr", "label": "Costa Rica" }{ "value": "ci", "label": "Cote D`ivoire" }{ "value": "hr", "label": "Croatia" }{ "value": "cu", "label": "Cuba" }{ "value": "cy", "label": "Cyprus" }{ "value": "cz", "label": "Czech Republic" }{ "value": "dk", "label": "Denmark" }{ "value": "dj", "label": "Djibouti" }{ "value": "dm", "label": "Dominica" }{ "value": "do", "label": "Dominican Republic" }{ "value": "ec", "label": "Ecuador" }{ "value": "eg", "label": "Egypt" }{ "value": "sv", "label": "El Salvador" }{ "value": "gq", "label": "Equatorial Guinea" }{ "value": "er", "label": "Eritrea" }{ "value": "ee", "label": "Estonia" }{ "value": "et", "label": "Ethiopia" }{ "value": "fk", "label": "Falkland Islands (Malvinas)" }{ "value": "fo", "label": "Faroe Islands" }{ "value": "fj", "label": "Fiji" }{ "value": "fi", "label": "Finland" }{ "value": "fr", "label": "France" }{ "value": "gf", "label": "French Guiana" }{ "value": "pf", "label": "French Polynesia" }{ "value": "tf", "label": "French Southern Territories" }{ "value": "ga", "label": "Gabon" }{ "value": "gm", "label": "Gambia" }{ "value": "ge", "label": "Georgia" }{ "value": "de", "label": "Germany" }{ "value": "gh", "label": "Ghana" }{ "value": "gi", "label": "Gibraltar" }{ "value": "gr", "label": "Greece" }{ "value": "gl", "label": "Greenland" }{ "value": "gd", "label": "Grenada" }{ "value": "gp", "label": "Guadeloupe" }{ "value": "gu", "label": "Guam" }{ "value": "gt", "label": "Guatemala" }{ "value": "gn", "label": "Guinea" }{ "value": "gw", "label": "Guinea-Bissau" }{ "value": "gy", "label": "Guyana" }{ "value": "ht", "label": "Haiti" }{ "value": "hm", "label": "Heard Island and Mcdonald Islands" }{ "value": "va", "label": "Holy See (Vatican City State)" }{ "value": "hn", "label": "Honduras" }{ "value": "hk", "label": "Hong Kong" }{ "value": "hu", "label": "Hungary" }{ "value": "is", "label": "Iceland" }{ "value": "in", "label": "India" }{ "value": "id", "label": "Indonesia" }{ "value": "ir", "label": "Iran, Islamic Republic of" }{ "value": "iq", "label": "Iraq" }{ "value": "ie", "label": "Ireland" }{ "value": "il", "label": "Israel" }{ "value": "it", "label": "Italy" }{ "value": "jm", "label": "Jamaica" }{ "value": "jp", "label": "Japan" }{ "value": "jo", "label": "Jordan" }{ "value": "kz", "label": "Kazakhstan" }{ "value": "ke", "label": "Kenya" }{ "value": "ki", "label": "Kiribati" }{ "value": "kp", "label": "Korea, Democratic People`s Republic of" }{ "value": "kr", "label": "Korea, Republic of" }{ "value": "kw", "label": "Kuwait" }{ "value": "kg", "label": "Kyrgyzstan" }{ "value": "la", "label": "Lao People`s Democratic Republic" }{ "value": "lv", "label": "Latvia" }{ "value": "lb", "label": "Lebanon" }{ "value": "ls", "label": "Lesotho" }{ "value": "lr", "label": "Liberia" }{ "value": "ly", "label": "Libyan Arab Jamahiriya" }{ "value": "li", "label": "Liechtenstein" }{ "value": "lt", "label": "Lithuania" }{ "value": "lu", "label": "Luxembourg" }{ "value": "mo", "label": "Macao" }{ "value": "mk", "label": "Macedonia, the Former Yugosalv Republic of" }{ "value": "mg", "label": "Madagascar" }{ "value": "mw", "label": "Malawi" }{ "value": "my", "label": "Malaysia" }{ "value": "mv", "label": "Maldives" }{ "value": "ml", "label": "Mali" }{ "value": "mt", "label": "Malta" }{ "value": "mh", "label": "Marshall Islands" }{ "value": "mq", "label": "Martinique" }{ "value": "mr", "label": "Mauritania" }{ "value": "mu", "label": "Mauritius" }{ "value": "yt", "label": "Mayotte" }{ "value": "mx", "label": "Mexico" }{ "value": "fm", "label": "Micronesia, Federated States of" }{ "value": "md", "label": "Moldova, Republic of" }{ "value": "mc", "label": "Monaco" }{ "value": "mn", "label": "Mongolia" }{ "value": "ms", "label": "Montserrat" }{ "value": "ma", "label": "Morocco" }{ "value": "mz", "label": "Mozambique" }{ "value": "mm", "label": "Myanmar" }{ "value": "na", "label": "Namibia" }{ "value": "nr", "label": "Nauru" }{ "value": "np", "label": "Nepal" }{ "value": "nl", "label": "Netherlands" }{ "value": "an", "label": "Netherlands Antilles" }{ "value": "nc", "label": "New Caledonia" }{ "value": "nz", "label": "New Zealand" }{ "value": "ni", "label": "Nicaragua" }{ "value": "ne", "label": "Niger" }{ "value": "ng", "label": "Nigeria" }{ "value": "nu", "label": "Niue" }{ "value": "nf", "label": "Norfolk Island" }{ "value": "mp", "label": "Northern Mariana Islands" }{ "value": "no", "label": "Norway" }{ "value": "om", "label": "Oman" }{ "value": "pk", "label": "Pakistan" }{ "value": "pw", "label": "Palau" }{ "value": "ps", "label": "Palestinian Territory, Occupied" }{ "value": "pa", "label": "Panama" }{ "value": "pg", "label": "Papua New Guinea" }{ "value": "py", "label": "Paraguay" }{ "value": "pe", "label": "Peru" }{ "value": "ph", "label": "Philippines" }{ "value": "pn", "label": "Pitcairn" }{ "value": "pl", "label": "Poland" }{ "value": "pt", "label": "Portugal" }{ "value": "pr", "label": "Puerto Rico" }{ "value": "qa", "label": "Qatar" }{ "value": "re", "label": "Reunion" }{ "value": "ro", "label": "Romania" }{ "value": "ru", "label": "Russian Federation" }{ "value": "rw", "label": "Rwanda" }{ "value": "sh", "label": "Saint Helena" }{ "value": "kn", "label": "Saint Kitts and Nevis" }{ "value": "lc", "label": "Saint Lucia" }{ "value": "pm", "label": "Saint Pierre and Miquelon" }{ "value": "vc", "label": "Saint Vincent and the Grenadines" }{ "value": "ws", "label": "Samoa" }{ "value": "sm", "label": "San Marino" }{ "value": "st", "label": "Sao Tome and Principe" }{ "value": "sa", "label": "Saudi Arabia" }{ "value": "sn", "label": "Senegal" }{ "value": "rs", "label": "Serbia and Montenegro" }{ "value": "sc", "label": "Seychelles" }{ "value": "sl", "label": "Sierra Leone" }{ "value": "sg", "label": "Singapore" }{ "value": "sk", "label": "Slovakia" }{ "value": "si", "label": "Slovenia" }{ "value": "sb", "label": "Solomon Islands" }{ "value": "so", "label": "Somalia" }{ "value": "za", "label": "South Africa" }{ "value": "gs", "label": "South Georgia and the South Sandwich Islands" }{ "value": "es", "label": "Spain" }{ "value": "lk", "label": "Sri Lanka" }{ "value": "sd", "label": "Sudan" }{ "value": "sr", "label": "Suriname" }{ "value": "sj", "label": "Svalbard and Jan Mayen" }{ "value": "sz", "label": "Swaziland" }{ "value": "se", "label": "Sweden" }{ "value": "ch", "label": "Switzerland" }{ "value": "sy", "label": "Syrian Arab Republic" }{ "value": "tw", "label": "Taiwan, Province of China" }{ "value": "tj", "label": "Tajikistan" }{ "value": "tz", "label": "Tanzania, United Republic of" }{ "value": "th", "label": "Thailand" }{ "value": "tl", "label": "Timor-Leste" }{ "value": "tg", "label": "Togo" }{ "value": "tk", "label": "Tokelau" }{ "value": "to", "label": "Tonga" }{ "value": "tt", "label": "Trinidad and Tobago" }{ "value": "tn", "label": "Tunisia" }{ "value": "tr", "label": "Turkey" }{ "value": "tm", "label": "Turkmenistan" }{ "value": "tc", "label": "Turks and Caicos Islands" }{ "value": "tv", "label": "Tuvalu" }{ "value": "ug", "label": "Uganda" }{ "value": "ua", "label": "Ukraine" }{ "value": "ae", "label": "United Arab Emirates" }{ "value": "uk", "label": "United Kingdom" }{ "value": "gb", "label": "United Kingdom" }{ "value": "us", "label": "United States" }{ "value": "um", "label": "United States Minor Outlying Islands" }{ "value": "uy", "label": "Uruguay" }{ "value": "uz", "label": "Uzbekistan" }{ "value": "vu", "label": "Vanuatu" }{ "value": "ve", "label": "Venezuela" }{ "value": "vn", "label": "Viet Nam" }{ "value": "vg", "label": "Virgin Islands, British" }{ "value": "vi", "label": "Virgin Islands, U.S." }{ "value": "wf", "label": "Wallis and Futuna" }{ "value": "eh", "label": "Western Sahara" }{ "value": "ye", "label": "Yemen" }{ "value": "zm", "label": "Zambia" }{ "value": "zw", "label": "Zimbabwe" }
Time PeriodtimePeriodstringSelect a value from the drop down menu:last_hourlast_daylast_weeklast_monthlast_year
Number of Resultsnuminteger

This parameter specifies the number of results to display per page. Use in combination with the page parameter to implement pagination functionality.

Pagepageinteger

This parameter indicates which page of results to return. By default, it is set to 1. Use in combination with the num parameter to implement pagination.

Action Authentication

Search API uses API keys for authentication. When you connect your Search API account, Pipedream securely stores the keys so you can easily authenticate to Search API APIs in both code and no-code steps.

Sign in and copy your API key directly from your dashboard

About Search API

Your real-time SERP API solution. Mastering proxy management, CAPTCHAs, and JSON parsing for seamless web data extraction.

More Ways to Connect Search API + Google Calendar

Google Images API with Search API API on New Cancelled Event from Google Calendar API
Google Calendar + Search API
 
Try it
Google Images API with Search API API on New Ended Event from Google Calendar API
Google Calendar + Search API
 
Try it
Google Images API with Search API API on New Calendar Created from Google Calendar API
Google Calendar + Search API
 
Try it
Google Images API with Search API API on New Event Matching a Search from Google Calendar API
Google Calendar + Search API
 
Try it
Google Images API with Search API API on New Event Created from Google Calendar API
Google Calendar + Search API
 
Try it
New Upcoming Event Alert from the Google Calendar API

Emit new event based on a time interval before an upcoming event in the calendar. This source uses Pipedream's Task Scheduler. See the documentation for more information and instructions for connecting your Pipedream account.

 
Try it
New Created or Updated Event (Instant) from the Google Calendar API

Emit new event when a Google Calendar events is created or updated (does not emit cancelled events)

 
Try it
New Calendar Created from the Google Calendar API

Emit new event when a calendar is created.

 
Try it
New Event Matching a Search from the Google Calendar API

Emit new event when a Google Calendar event is created that matches a search

 
Try it
New Cancelled Event from the Google Calendar API

Emit new event when a Google Calendar event is cancelled or deleted

 
Try it
Add Attendees To Event with the Google Calendar API

Add attendees to an existing event. See the documentation

 
Try it
Add Quick Event with the Google Calendar API

Create a quick event to the Google Calendar. See the documentation

 
Try it
Create Event with the Google Calendar API

Create an event in a Google Calendar. See the documentation

 
Try it
Delete an Event with the Google Calendar API

Delete an event from a Google Calendar. See the documentation

 
Try it
List Calendars with the Google Calendar API

Retrieve a list of calendars from Google Calendar. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,700+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
Pinterest
Pinterest
Pinterest is a visual discovery engine for finding ideas like recipes, home and style inspiration, and more.
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.