← Stack Exchange + Airtable integrations

Create Single Record with Airtable API on New Question for Specific Keywords from Stack Exchange API

Pipedream makes it easy to connect APIs for Airtable, Stack Exchange and 1200+ other apps remarkably fast.

Trigger workflow on
New Question for Specific Keywords from the Stack Exchange API
Next, do this
Create Single Record with the Airtable 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 Stack Exchange trigger and Airtable 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 Question for Specific Keywords trigger
    1. Connect your Stack Exchange account
    2. Select a Site
    3. Configure Keywords
    4. Configure timer
  3. Configure the Create Single Record action
    1. Connect your Airtable account
    2. Select a Base
    3. Select a Table
    4. Configure Typecast
  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:Emits an event when a new question is posted and related to a set of specific keywords
Version:0.0.3
Key:stack_exchange-new-question-for-keywords

Stack Exchange Overview

The Stack Exchange API offers an extensive range of tools for developers who
want to access content from the Stack Exchange network. With the API,
developers can build a variety of applications and services to leverage the
full power of the Stack Exchange platform. Here are some examples of
applications you can create using the Stack Exchange API:

  • Real-time monitoring and analytics for your Stack Exchange account or for
    content posted by other users.
  • A tool to search Stack Exchange questions and retrieve answers.
  • A system that allows you to monitor Stack Exchange content in different
    languages.
  • Automated moderation tools to help you manage and review content on Stack
    Exchange.
  • A service that allows users to collaborate on Stack Exchange projects.
  • An application that displays enhanced Stack Exchange content, such as rich
    media and live updating feeds.
  • Tools to help developers create custom applications and services that
    facilitate data exchange within the Stack Exchange network.
  • A service that allows you to integrate Stack Exchange content into other
    applications and services.

Trigger Code

const stack_exchange = require("../../stack_exchange.app");
const { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } = require("@pipedream/platform");

module.exports = {
  key: "stack_exchange-new-question-for-keywords",
  name: "New Question for Specific Keywords",
  description:
    "Emits an event when a new question is posted and related to a set of specific keywords",
  version: "0.0.3",
  dedupe: "unique",
  type: "source",
  props: {
    stack_exchange,
    db: "$.service.db",
    siteId: {
      propDefinition: [
        stack_exchange,
        "siteId",
      ],
    },
    keywords: {
      propDefinition: [
        stack_exchange,
        "keywords",
      ],
    },
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
  },
  hooks: {
    async activate() {
      const fromDate = this._getCurrentEpoch();
      this.db.set("fromDate", fromDate);
    },
  },
  methods: {
    _getCurrentEpoch() {
      // The StackExchange API works with Unix epochs in seconds.
      return Math.floor(Date.now() / 1000);
    },
    generateMeta(data) {
      const {
        question_id: id, creation_date: ts, title,
      } = data;
      const summary = `New question: ${title}`;
      return {
        id,
        summary,
        ts,
      };
    },
  },
  async run() {
    const fromDate = this.db.get("fromDate");
    const toDate = this._getCurrentEpoch();
    const keywordsQuery = this.keywords.join(",");
    const searchParams = {
      fromDate,
      toDate,
      sort: "creation",
      order: "asc",
      closed: false,
      site: this.siteId,
      q: keywordsQuery,
    };

    const items = this.stack_exchange.advancedSearch(searchParams);
    for await (const item of items) {
      const meta = this.generateMeta(item);
      this.$emit(item, meta);
    }

    this.db.set("fromDate", toDate);
  },
};

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
Stack Exchangestack_exchangeappThis component uses the Stack Exchange app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
SitesiteIdstringSelect a value from the drop down menu.
Keywordskeywordsstring[]

Keywords to search for in questions

timer$.interface.timer

Trigger Authentication

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

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

read_inboxno_expirywrite_accessprivate_info

About Stack Exchange

Community-powered Q&A sites

Action

Description:Adds a record to a table.
Version:1.0.4
Key:airtable-create-single-record

Airtable Overview

Using the Airtable API, you can build applications that can:

  • Create and manage databases
  • Add, update, and delete records
  • Search for records
  • Sort and filter records
  • Display records in a variety of ways
  • Import and export data

Action Code

import commonActions from "../../common/actions.mjs";
import airtable from "../../airtable.app.mjs";
import common from "../common.mjs";

export default {
  key: "airtable-create-single-record",
  name: "Create Single Record",
  description: "Adds a record to a table.",
  version: "1.0.4",
  type: "action",
  props: {
    ...common.props,
    // eslint-disable-next-line pipedream/props-label,pipedream/props-description
    tableId: {
      ...common.props.tableId,
      reloadProps: true,
    },
    typecast: {
      propDefinition: [
        airtable,
        "typecast",
      ],
    },
  },
  async additionalProps() {
    return commonActions.additionalProps(this);
  },
  async run({ $ }) {
    return commonActions.createRecord(this, $);
  },
};

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
AirtableairtableappThis component uses the Airtable app.
BasebaseIdstringSelect a value from the drop down menu.
TabletableIdstringSelect a value from the drop down menu.
Typecasttypecastboolean

The Airtable API will perform best-effort automatic data conversion from string values if the typecast parameter is True. Automatic conversion is disabled by default to ensure data integrity, but it may be helpful for integrating with 3rd party data sources.

Action Authentication

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

Visit your account settings, copy your API key, and enter it below. If you only need to read data from Airtable, and not modify it, you can generate a read-only API key.


get airtable api key

About Airtable

Looks like a spreadsheet, acts like a database.

More Ways to Connect Airtable + Stack Exchange

Delete Record with Airtable API on New Answers for Specific Questions from Stack Exchange API
Stack Exchange + Airtable
 
Try it
Get Record with Airtable API on New Answers for Specific Questions from Stack Exchange API
Stack Exchange + Airtable
 
Try it
List Records in View with Airtable API on New Answers for Specific Questions from Stack Exchange API
Stack Exchange + Airtable
 
Try it
List Records with Airtable API on New Answers for Specific Questions from Stack Exchange API
Stack Exchange + Airtable
 
Try it
Update record with Airtable API on New Answers for Specific Questions from Stack Exchange API
Stack Exchange + Airtable
 
Try it
New Answers for Specific Questions from the Stack Exchange API

Emits an event when a new answer is posted in one of the specified questions

 
Try it
New Answers from Specific Users from the Stack Exchange API

Emits an event when a new answer is posted by one of the specified users

 
Try it
New Question for Specific Keywords from the Stack Exchange API

Emits an event when a new question is posted and related to a set of specific keywords

 
Try it
New Question for Specific Keywords from the Stack Exchange API

Emits an event when a new question is posted and related to a set of specific keywords

 
Try it
New or Modified Records from the Airtable API

Emit an event for each new or modified record in a table

 
Try it
Create Single Record with the Airtable API

Adds a record to a table.

 
Try it
Create Multiple Records with the Airtable API

Create one or more records in a table by passing an array of objects containing field names and values as key/value pairs.

 
Try it
List Records with the Airtable API

Retrieve records from a table with automatic pagination. Optionally sort and filter results.

 
Try it
List Records in View with the Airtable API

Retrieve records in a view with automatic pagination. Optionally sort and filter results.

 
Try it
Update Record with the Airtable API

Update a single record in a table by Record ID.

 
Try it

Explore Other Apps

1
-
12
of
1200+
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.
Beta
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.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
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
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
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.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
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.