← Discord Bot + Search API integrations

Google Search API with Search API API on New Forum Thread Message from Discord Bot API

Pipedream makes it easy to connect APIs for Search API, Discord Bot and 2,400+ other apps remarkably fast.

Trigger workflow on
New Forum Thread Message from the Discord Bot 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 Discord Bot 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 Forum Thread Message trigger
    1. Connect your Discord Bot account
    2. Select a Guild
    3. Configure timer
    4. Select a Forum Id
  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 for each forum thread message posted. Note that your bot must have the `MESSAGE_CONTENT` privilege intent to see the message content. [See the documentation](https://discord.com/developers/docs/topics/gateway#message-content-intent).
Version:0.0.4
Key:discord_bot-new-forum-thread-message

Discord Bot Overview

The Discord Bot API unlocks the power to interact with Discord users and channels programmatically, making it possible to automate messages, manage servers, and integrate with other services. With Pipedream's serverless platform, you can create complex workflows that respond to events in Discord, process data, and trigger actions in other apps. This opens up opportunities for community engagement, content moderation, analytics, and more, without the overhead of managing infrastructure.

Trigger Code

import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
import maxBy from "lodash.maxby";
import constants from "../../common/constants.mjs";
import common from "../common.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  ...common,
  key: "discord_bot-new-forum-thread-message",
  name: "New Forum Thread Message",
  description: "Emit new event for each forum thread message posted. Note that your bot must have the `MESSAGE_CONTENT` privilege intent to see the message content. [See the documentation](https://discord.com/developers/docs/topics/gateway#message-content-intent).",
  type: "source",
  version: "0.0.4",
  dedupe: "unique", // Dedupe events based on the Discord message ID
  props: {
    ...common.props,
    db: "$.service.db",
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
    forumId: {
      propDefinition: [
        common.props.discord,
        "channelId",
        ({ guildId }) => ({
          guildId,
          allowedChannels: [
            constants.CHANNEL_TYPES.GUILD_FORUM,
          ],
        }),
      ],
      label: "Forum Id",
      description: "Select the forum you want to watch.",
    },
  },
  methods: {
    ...common.methods,
    getChannel(id) {
      return this.discord._makeRequest({
        path: `/channels/${id}`,
      });
    },
  },
  async run({ $ }) {
    // We store a cursor to the last message ID
    let lastMessageIDs = this._getLastMessageIDs();

    const { threads } = await this.discord.listThreads({
      $,
      guildId: this.guildId,
    });

    const forumThreads = threads.reduce((acc, curr) => {
      return curr.parent_id === this.forumId ?
        [
          ...acc,
          curr,
        ]
        : acc;
    }, []);

    // If this is our first time running this source,
    // get the last N messages, emit them, and checkpoint
    for (const channel of forumThreads) {
      let lastMessageID;
      let messages = [];
      const channelId = channel.id;

      if (!lastMessageIDs[channelId]) {
        messages = await this.discord.getMessages({
          $,
          channelId,
          params: {
            limit: 25,
          },
        });

        lastMessageID = messages.length
          ? maxBy(messages, (message) => message.id).id
          : 1;

      } else {
        let newMessages = [];

        do {
          newMessages = await this.discord.getMessages({
            $,
            channelId,
            params: {
              after: lastMessageIDs[channelId],
            },
          });

          messages = messages.concat(newMessages);

          lastMessageID = newMessages.length
            ? maxBy(newMessages, (message) => message.id).id
            : lastMessageIDs[channelId];
          lastMessageIDs[channelId] = lastMessageID;

        } while (newMessages.length);
      }

      // Set the new high water mark for the last message ID
      // for this channel
      lastMessageIDs[channelId] = lastMessageID;

      if (!messages.length) {
        console.log(`No new messages in thread ${channelId}`);
        continue;
      }

      console.log(`${messages.length} new messages in thread ${channelId}`);

      messages = await Promise.all(messages.map(async (message) => ({
        ...message,
        thread: await this.getChannel(message.channel_id),
      })));

      const { available_tags: availableTags = [] } = await this.getChannel(this.forumId);
      for (const message of messages) {
        if (!message.thread.applied_tags) {
          message.thread.applied_tags = [];
        }
        message.thread.applied_tags = message.thread.applied_tags.map((tagId) => ({
          ...availableTags.find(({ id }) => id === tagId),
        }));
      }

      messages.reverse().forEach((message) => {
        this.$emit(message, {
          id: message.id, // dedupes events based on this ID
          summary: `A new message with Id: ${message.id} was posted in forum thread ${channelId}.`,
          ts: Date.parse(message.timestamp),
        });
      });
    }

    // Set the last message ID for the next run
    this._setLastMessageIDs(lastMessageIDs);
  },
  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
Discord BotdiscordappThis component uses the Discord Bot app.
GuildguildIdstringSelect a value from the drop down menu.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer
Forum IdforumIdstringSelect a value from the drop down menu.

Trigger Authentication

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

This app allows you to use the Discord API using your own Discord bot. If you don't want to use a custom bot, and you just need to use the Discord API, exit this screen and use the Discord app, instead.


If you want to use your own Discord bot, but haven't created one yet, see these instructions or watch this video. You'll need to add this bot to your server(s) to make successful API requests.

Once you've created your bot, you'll find the Bot token within the Bot section of your app. Enter that token below.

About Discord Bot

Use this app to interact with the Discord API using a bot in your account

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 + Discord Bot

Google Images API with Search API API on New Forum Thread Message from Discord Bot API
Discord Bot + Search API
 
Try it
Google Images API with Search API API on New Guild Member from Discord Bot API
Discord Bot + Search API
 
Try it
Google Images API with Search API API on New Message in Channel from Discord Bot API
Discord Bot + Search API
 
Try it
Google Images API with Search API API on New Thread Message from Discord Bot API
Discord Bot + Search API
 
Try it
Google Search API with Search API API on New Guild Member from Discord Bot API
Discord Bot + Search API
 
Try it
New Message in Channel from the Discord Bot API

Emit new event for each message posted to one or more channels

 
Try it
New Forum Thread Message from the Discord Bot API

Emit new event for each forum thread message posted. Note that your bot must have the MESSAGE_CONTENT privilege intent to see the message content. See the documentation.

 
Try it
New Guild Member from the Discord Bot API

Emit new event for every member added to a guild. See docs here

 
Try it
New Tag Added to Forum Thread from the Discord Bot API

Emit new event when a new tag is added to a thread

 
Try it
New Thread Message from the Discord Bot API

Emit new event for each thread message posted.

 
Try it
Add Role with the Discord Bot API

Assign a role to a user. Remember that your bot requires the MANAGE_ROLES permission. See the docs here

 
Try it
Change Nickname with the Discord Bot API

Modifies the nickname of the current user in a guild.

 
Try it
Create Channel Invite with the Discord Bot API

Create a new invite for the channel. See the docs here

 
Try it
Create Guild Channel with the Discord Bot API

Create a new channel for the guild. See the docs here

 
Try it
Delete Channel with the Discord Bot API

Delete a Channel.

 
Try it

Explore Other Apps

1
-
24
of
2,400+
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.
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.
Premium
Salesforce
Salesforce
Web services API for interacting with Salesforce
Premium
HubSpot
HubSpot
HubSpot's CRM platform contains the marketing, sales, service, operations, and website-building software you need to grow your business.
Premium
Zoho CRM
Zoho CRM
Zoho CRM is an online Sales CRM software that manages your sales, marketing, and support in one CRM platform.
Premium
Stripe
Stripe
Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.
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.
Premium
WooCommerce
WooCommerce
WooCommerce is the open-source ecommerce platform for WordPress.
Premium
Snowflake
Snowflake
A data warehouse built for the cloud
Premium
MongoDB
MongoDB
MongoDB is an open source NoSQL database management program.
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.
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.
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.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.