← OpenSea + Discord integrations

Send Message (Advanced) with Discord API on New Collection Events from OpenSea API

Pipedream makes it easy to connect APIs for Discord, OpenSea and 1200+ other apps remarkably fast.

Trigger workflow on
New Collection Events from the OpenSea API
Next, do this
Send Message (Advanced) with the Discord API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

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

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a OpenSea trigger and Discord 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 Collection Events trigger
    1. Connect your OpenSea account
    2. Configure timer
    3. Configure Contract Address
    4. Select a Event Type
  3. Configure the Send Message (Advanced) action
    1. Connect your Discord account
    2. Configure channel
    3. Optional- Configure Message
    4. Optional- Configure Thread ID
    5. Optional- Configure Username
    6. Optional- Configure Avatar URL
    7. Optional- Configure Include link to workflow
    8. Optional- Configure Embeds
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger


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.


Description:Emit new filtered events. [See docs](https://docs.opensea.io/reference/retrieving-asset-events)

OpenSea Overview

What Is OpenSea API? OpenSea API is a platform that provides access to
Web3-enabled cryptocurrency applications, allowing developers to build secure,
trustless applications. OpenSea API provides a suite of tools, including a
secure and distributed marketplace, digital asset management, and decentralized
trading. Through OpenSea API, developers can build secure, trustless
applications to tokenize, trade, and manage digital assets as well as create a
marketplace for digital goods and services.

OpenSea API can be used to create a variety of applications, including:

  • Digital Asset Marketplaces: Create tokenized products, which can be traded or
    exchanged on an open marketplace.
  • Token Management Interfaces: Compile or manage digital assets, such as
    collectibles, using an intuitive user interface.
  • Decentralized Exchanges: Create automated trading systems with secure,
    distributed marketplaces.
  • Collectible Games: Create digital collectibles that can be bought or sold on
    the OpenSea API platform.
  • Security Tokens: Issue tokens backed by real-world assets, such as stocks,
    real estate, or commodities.
  • Digital Identity Management Products: Create digital identities using the
    OpenSea API platform.

With the OpenSea API, developers can create an array of custom solutions to
trade, manage, and monetize digital assets. Developers can build applications
that enable users to buy, sell, and manage digital assets in a secure,
trustless environment. Applications built on OpenSea API can facilitate both
peer-to-peer trading and investment management services. OpenSea API can also
be used to create digital collectibles, gaming solutions, and digital asset
marketplaces for buying and selling digital assets.

Trigger Code

import opensea from "../../opensea.app.mjs";
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";

export default {
  name: "New Collection Events",
  version: "0.0.3",
  key: "opensea-new-collection-events",
    "Emit new filtered events. [See docs](https://docs.opensea.io/reference/retrieving-asset-events)",
  dedupe: "greatest",
  type: "source",
  props: {
    db: "$.service.db",
    timer: {
      type: "$.interface.timer",
      default: {
    contractAddress: {
      type: "string",
      label: "Contract Address",
      description: "Collection contract address",
    eventType: {
      type: "string",
      options: [
      label: "Event Type",
      description: "OpenSea event type",
  methods: {
    getLastTimestamp() {
      return this.db.get("lastTimestamp");
    setLastTimestamp(ts) {
      this.db.set("lastTimestamp", ts);
  async run() {
    const eventType = this.eventType === "sales"
      ? "successful"
      : "created";
    const lastTimestamp = this.getLastTimestamp();
    let cursor = null;
    do {
      const resp = await this.opensea.retrieveEvents({
        contract: this.contractAddress,
        occurredAfter: lastTimestamp,
      resp.asset_events.forEach((event) => {
        this.$emit(event, {
          id: event.id,
          summary: `${event.asset.name} ${this.eventType} event`,
          ts: +new Date(event.created_date),
      if (!cursor && resp.asset_events.length > 0) {
        const ts = Math.floor(new Date(resp.asset_events[0].created_date).getTime() / 1000);
      cursor = resp.next;
    } while (lastTimestamp && cursor);

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.
OpenSeaopenseaappThis component uses the OpenSea app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
Contract AddresscontractAddressstring

Collection contract address

Event TypeeventTypestringSelect a value from the drop down menu:saleslistings

Trigger Authentication

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

To connect your OpenSea account to Pipedream, request an API key from OpenSea here.

About OpenSea

Discover, collect, and sell extraordinary NFTs. OpenSea is the world's first and largest NFT marketplace.


Description:Send a simple or structured message (using embeds) to a Discord channel

Discord Overview

The Pipedream Discord app enables you to build event-driven workflows that interact with the Discord API. When you authorize the Pipedream app's access to your guilds, you can use Pipedream workflows to perform common Discord actions, or write your own code against the Discord API.

Action Code

import { ConfigurationError } from "@pipedream/platform";
import common from "../common/common.mjs";

export default {
  key: "discord-send-message-advanced",
  name: "Send Message (Advanced)",
  description: "Send a simple or structured message (using embeds) to a Discord channel",
  version: "1.0.1",
  type: "action",
  props: {
    message: {
      propDefinition: [
      optional: true,
    embeds: {
      propDefinition: [
  async run({ $ }) {
    const {
      embeds: embedsProp,
    } = this;
    const embeds = embedsProp;

    if (!message && !embeds) {
      throw new ConfigurationError("This action requires at least 1 message OR embeds object. Please enter one or the other above.");

    let content = message;
    if (includeSentViaPipedream) {
      if (embeds?.length) {
          "color": 16777215,
          "description": this.getSentViaPipedreamText(),
      } else {
        content = this.appendPipedreamText(message ?? "");

    try {
      const resp = await this.discord.sendMessage(this.channel, {
        avatar_url: avatarURL,
      }, {
        thread_id: threadID,
      $.export("$summary", "Message sent successfully");
      return resp || {
        success: true,
    } catch (err) {
      const unsentMessage = this.getUserInputProps();
      $.export("unsent", unsentMessage);
      throw err;

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.

DiscorddiscordappThis component uses the Discord app.

Enter a simple message up to 2000 characters. This is the most commonly used field. However, it's optional if you pass embed content.

Thread IDthreadIDstring

If provided, the message will be posted to this thread


Overrides the current username of the webhook

Avatar URLavatarURLstring

If used, it overrides the default avatar of the webhook. Note: Consecutive posts by the same username within 10 minutes of each other will not display updated avatar.

Include link to workflowincludeSentViaPipedreamboolean

Defaults to true, includes a link to this workflow at the end of your Discord message.


Optionally pass an array of embed objects. E.g., {{ [{"description":"Use markdown including *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](https://google.com) `code`"}] }}. To pass data from another step, enter a reference using double curly brackets (e.g., {{steps.mydata.$return_value}}).
Tip: Construct the embeds array in a Node.js code step, return it, and then pass the return value to this step.

Action Authentication

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

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


About Discord

Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.

More Ways to Connect Discord + OpenSea

Send Message With File with Discord API on New Collection Events from OpenSea API
OpenSea + Discord
Try it
Send Message with Discord API on New Collection Events from OpenSea API
OpenSea + Discord
Try it
New Collection Events from the OpenSea API

Emit new filtered events. See docs

Try it
New Message (Instant) from the Discord API

Emit new event for each message posted to one or more channels in a Discord server

Try it
Message Deleted (Instant) from the Discord API

Emit new event for each message deleted

Try it
New Command Received (Instant) from the Discord API

Emit new event for each command posted to one or more channels in a Discord server

Try it
New Guild Member (Instant) from the Discord API

Emit new event for each new member added to a guild

Try it
Send Message with the Discord API

Send a simple message to a Discord channel

Try it
Send Message (Advanced) with the Discord API

Send a simple or structured message (using embeds) to a Discord channel

Try it
Send Message With File with the Discord API

Post a message with an attached file

Try it

Explore Other Apps

apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
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.
Trigger workflows on an interval or cron schedule.
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
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 apps like ChatGPT and DALL·E 2.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Pre-built actions to make formatting and manipulating data within your workflows easier.
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.