Pipedream

Use Social Fetch in Pipedream workflows: connect your API key, look up profiles, posts, feeds and transcripts, search and trending feeds, and a trigger that fires when a profile changes.

Social Fetch is an app in Pipedream, so you can add it to a workflow like any other step. Each Social Fetch step looks up public data with your API key and returns the same { data, meta } response as the REST API. Use the steps to fetch profiles, posts, feeds and transcripts, search several platforms, read Reddit, check trending feeds and check your credit balance. A trigger, New Profile Update, starts a workflow when a profile changes.

Pipedream's public Social Fetch app page, Build with Social Fetch. The API KEY badge is labelled Connects with your Social Fetch API key, and the Actions and Triggers tabs are boxed and labelled Every action and trigger you can add
Social Fetch's page on Pipedream lists every action and trigger. It connects with an API key.

What you need

  • A Pipedream account.
  • A Social Fetch API key. It starts with sfk_.
  • Credits in your Social Fetch workspace. Each lookup a step makes costs credits, the same as calling the API yourself. See Credits.

Create an API key for Pipedream

  1. In the Social Fetch app, open API Keys.
  2. Type a name you'll recognise, such as Pipedream, and click Create key.
  3. Copy the key. It's shown once, so paste it somewhere safe until you've connected it.
The API Keys page of the Social Fetch app, with the new key form spotlit, Pipedream typed in the name field and the Create key button labelled Name it, then Create key
A key of its own makes Pipedream's spending easy to find on Usage, and easy to limit.

Run your first lookup

This workflow fetches one TikTok profile when you click a button. Once it works, swap the trigger for a schedule, a webhook or New Profile Update.

  1. In Pipedream, create a workflow and add a trigger. To try things out, any trigger will do, such as an HTTP webhook.
  2. Click + under the trigger to add a step, search for Social Fetch and choose Get Profile.
Pipedream's Add action picker with the Social Fetch app chosen, listing its pre-built actions (Get Credit Balance, Get Post, Get Profile, Get Reddit Post Transcript and more). The search box is labelled Search for Social Fetch, and the Get Profile row is boxed and labelled Pick an action
Pipedream's step picker, with the Social Fetch actions listed.
  1. Connect your Social Fetch account: Pipedream asks for the API key. Paste your sfk_ key and save. Pipedream checks the key before it saves it, so a key that's wrong or revoked fails here rather than in a later run.
Pipedream's Create a new connection to Social Fetch window over a Get Profile step: an optional Connection Name and an empty API Key field, labelled Paste your sfk_ key, with Save labelled Then save
You connect the key once. Every Social Fetch step and trigger in your Pipedream account can use it.
  1. Set Platform to tiktok and Handle to mrbeast, without the @.
  2. Click Test. The step makes a real lookup, so it costs credits like any other request.
The Get Profile step's results in Pipedream after Test: $summary reads Successfully fetched profile for mrbeast, data has lookupStatus found, and data.metrics shows followers 146616307 with following, likes, posts, friends and diggs. followers is boxed and labelled The follower count, and meta.creditsCharged 1 is underlined and labelled What the test cost
The step returns the API's response. The TikTok follower count is in data.metrics.followers.

The step returns the full response. data holds the result and meta says what the request cost. This shortened saved API response is for mrbeast; your test returns the values at the time of your lookup:

{
  "data": {
    "lookupStatus": "found",
    "profile": {
      "platform": "tiktok",
      "handle": "mrbeast",
      "displayName": "MrBeast"
    },
    "metrics": { "followers": 127352270 }
  },
  "meta": {
    "requestId": "req_f05c55ed-d134-4f26-9c23-8a49df4810ba",
    "creditsCharged": 1,
    "version": "v1"
  }
}

Later steps read fields from it with Pipedream's step references, for example {{steps.get_profile.$return_value.data.metrics.followers}}. The step name in the reference is whatever your step is called.

A finished lookup can still find nothing. A private, missing or restricted profile or post comes back as a successful step with data.lookupStatus set to private, not_found or restricted, and it's charged like any other lookup. Check lookupStatus before you use the result. See Errors and outcomes.

Handle or profile URL

Get Profile, List Profile Posts and the New Profile Update trigger take a Handle for some platforms and a Profile URL for others. Fill in the one your platform needs and leave the other empty:

  • TikTok, Instagram, X and Threads: the username, without @.
  • Facebook and LinkedIn: the full profile URL, starting with https://.
The Inputs table on Pipedream's public Get Profile page, with the handle and profileUrl rows spotlit. Required for tiktok, instagram, twitter, and threads is labelled TikTok, Instagram, X, Threads: the username, no @, and Required for facebook and linkedin is labelled Facebook, LinkedIn: the full profile URL
Each action's page on Pipedream lists its inputs. Get Profile needs a handle or a profile URL, depending on the platform.

The post and transcript actions take the full URL of the post or video instead.

Actions

ActionWhat it does
Get ProfileA public profile, by handle or profile URL
Get PostA post, video or tweet, from its URL
List Profile PostsA profile's recent posts, videos, reels or tweets, a page at a time
Get TranscriptThe transcript of a video or post, from its URL
Get Credit BalanceYour workspace's credit balance
Search TikTok Content, Users, Hashtags and Shop ProductsTikTok search
Search Instagram ReelsInstagram Reels search
Search YouTube Content and HashtagsYouTube search
Search Twitter Content and HashtagsX search
Search Threads Content and UsersThreads search
Search LinkedIn PeoplePeople search by first or last name, or both
Search Reddit Content and SubredditsReddit search, site-wide or within one subreddit
Get Subreddit, List Subreddit Posts, List Reddit Post Comments, Get Reddit Post TranscriptReddit communities, their posts, comment threads and video captions
Get TikTok Trending Feed, Get YouTube Trending ShortsTrending feeds

Each action calls the matching route in the API reference, which lists what every field means and what each lookup costs.

Which platforms the general actions cover:

  • Get Profile: TikTok, Instagram, X and Threads by handle; Facebook and LinkedIn by profile URL.
  • Get Post: TikTok, Instagram, X, Threads, Facebook, YouTube and LinkedIn.
  • List Profile Posts: TikTok (Videos), Instagram (Posts or Reels), X (Tweets), and Threads and Facebook (Posts). To get the next page, pass data.page.nextCursor from the previous response as Cursor.
  • Get Transcript: TikTok, Instagram, Facebook and YouTube.
  • Get Credit Balance: no inputs. It's free.

Start a workflow when a profile changes

New Profile Update is a trigger. It looks up one profile on a timer, compares the result with the last one it saw, and starts your workflow when anything is different.

  1. In a new workflow, add a trigger, search for Social Fetch and choose New Profile Update.
  2. Pick your connected Social Fetch account.
  3. Set Platform, then Handle or Profile URL as above.
  4. Choose how often it checks. Each check is a profile lookup and is charged like one: checking every 15 minutes is 96 lookups a day for one profile. Check less often if you don't need to know straight away.
  5. Save the trigger. Pipedream starts checking on the timer.
Pipedream's New Profile Update trigger being set up with a connected Social Fetch account, Timer Every 15 minutes, Platform tiktok and Handle mrbeast. The timer is labelled Each check costs one lookup, and Platform and Handle are boxed together and labelled The profile to watch
The trigger checks one profile on a timer.

Each event has two parts:

  • profile is the latest result: the data part of the API response.
  • diff lists what changed since the last check. Each changed field has oldValue, newValue and status (added, modified or deleted), and nested objects list their changes under changes.

For TikTok, the event's latest follower count is profile.metrics.followers. After the first check, a changed follower count appears at diff.metrics.changes.followers, with oldValue, newValue and status. In later steps, read it with {{steps.trigger.event.diff.metrics.changes.followers}}. Replace trigger with your trigger's step name. Check that the field exists before using it: a check can find changes elsewhere without a follower change.

Two things to expect:

  • The first check always fires. There's nothing to compare it with yet, so each top-level field shows as added. For example, diff.metrics.newValue holds the initial metrics; there is no diff.metrics.changes on this first event.
  • Any change fires it. That includes follower and like counts, which change on most checks for a busy account. To react only to the changes you care about, such as a new bio, add a filter step that ends the workflow unless the field you want is in diff.

Credits

Every Social Fetch step and every trigger check is a real lookup, including test runs, and costs what the same API request costs. meta.creditsCharged in each response says how much. Get Credit Balance is free, so a workflow can check the balance before a large batch.

Lookups that fail on our side aren't charged. When your workspace runs out, steps fail with Not enough credits to complete this request. until you top up. See Credits.

A trigger keeps spending while it's switched on, even when nobody is watching. To cap what Pipedream can spend, give it its own key and set a monthly limit. Owners and admins can do this on API Keys: click Limit on the key's row and fill in Credits per month.

The Monthly limit window for an API key named Pipedream (docs-pipedream), with 2000 typed in Credits per month, labelled Most Pipedream can spend a month. The keys list behind the window is dimmed
A key at its limit is refused until the next month. The rest of your workspace keeps working.

Every request a step makes also shows in Request history, with what it cost.

Troubleshooting

When a step fails, Pipedream shows our error message, with the request ID in brackets. Include the request ID if you contact support.

Handle is required for this platform. or Profile URL is required for this platform. The platform needs the other field. See Handle or profile URL.

Invalid API key. The key was revoked or mistyped. Create a new key and reconnect the account in Pipedream.

Not enough credits to complete this request. Your workspace is out of credits, or the key has reached its monthly limit, in which case the message says so. Top up on Billing or raise the key's limit. Retrying doesn't help until then.

The step succeeded but there's no profile. Check data.lookupStatus. The profile may be private, missing or mistyped. A handle with @ in front, or a display name instead of a handle, is the usual cause.

New Profile Update fires on almost every check. The account's counts are changing. Filter on the fields you care about in diff, as described above.

Building on Pipedream Connect

If you build your own product on Pipedream Connect, your users can connect their own Social Fetch keys. The same actions are available to your agents as MCP tools on Pipedream's MCP server, and Pipedream's API proxy can call any other Social Fetch route with the user's key. Pipedream's Social Fetch page has code for each.

Routes Pipedream doesn't cover

The Pipedream app covers the lookups people use most. For anything else, such as web pages, monitors or other platforms, use the REST API from a Pipedream code step, the TypeScript SDK, or the n8n node.

Next steps

On this page