n8n
Pull live social and web data into your n8n workflows — and AI agents — with a single community node. No custom HTTP nodes, no glue code.
Add Social Fetch to n8n and every platform we support becomes a drag-and-drop step: pull profiles, posts, and metrics into a workflow, or attach the node to an AI agent as a live data tool. Each operation maps 1:1 to a public API endpoint, so anything in the API reference works as a no-code step — via the n8n-nodes-socialfetch community node.
What you'll need
- An n8n instance — n8n Cloud, or self-hosted with community nodes enabled.
- A Social Fetch API key (starts with
sfk_) — create one in your API Keys dashboard. - Credits on your account for metered routes — see Credits & billing.
Install
Follow n8n's community nodes installation guide and install the package n8n-nodes-socialfetch.
- Open your n8n instance and go to Settings.
- Select Community nodes.
- Click Install.
- Enter the package name:
n8n-nodes-socialfetch - Read the risk acknowledgement, tick the checkbox, and click Install.


After installation, the Social Fetch node appears in the node picker when you add a step to a workflow.

Credentials
You need a Social Fetch API key (it starts with sfk_). Create one in your API Keys dashboard.
In n8n:
- Go to Credentials and click Add credential.
- Search for Social Fetch API.
- Paste your API key and save.
The credential is validated against GET /v1/whoami when you save it — if the key is invalid, n8n will show an error immediately.

Using the node
Add a Social Fetch node to your workflow and configure:
- Credential — select your Social Fetch API credential.
- Resource — pick the platform (e.g. TikTok, Instagram, Web) or Account for whoami/balance.
- Operation — choose the endpoint (e.g. Profile videos, Search, Markdown).
- Required fields — shown as direct inputs on the node.
- Additional Fields — optional query parameters (sort order, limits, etc.).

The node is marked usable as tool, so you can also attach it to n8n AI agents that need live social or web data.
Pagination and Return All
Only list endpoints that use Social Fetch's cursor query parameter show a Return All toggle. When enabled, the node follows data.page.nextCursor until data.page.hasMore is false. Each page is a separate output item containing the full API JSON body (data, meta, etc.). Use n8n's Item Lists or Code node if you need a single merged array.
List endpoints that return everything in one response (no cursor), or that paginate with other parameters such as page, do not show Return All — you get the first response only unless you pass those parameters under Additional Fields.
Credits
Every request consumes credits from your Social Fetch balance (most endpoints cost 1 credit; some search and media-download options cost more). The credits charged for each call are returned in meta.creditsCharged. See Credits & billing for details.
Example workflow
This example fetches a TikTok creator's recent videos and keeps only the high-performing ones.
- Manual Trigger — start the workflow manually for testing.
- Social Fetch — set Resource to
TikTokand Operation toProfile videos.- Handle:
n8n - Turn on Return All to page through every video, or leave it off to fetch the first page.
- Under Additional Fields, set Sort By to
Popular.
- Handle:
- Split Out — field to split out:
data.videos(one item per video). - Filter — keep videos above a view threshold:
- Condition:
{{ $json.stats.views }}is greater than100000.
- Condition:
Each Social Fetch item is one API page. With Return All off you get a single page; with it on you get one item per page, each containing data.videos, data.page, and meta. Split Out turns the videos array into individual items so the Filter node can evaluate stats.views on each video.
Example response shape (first video on a page):
{
"data": {
"videos": [
{
"id": "7639528062975053069",
"caption": "…",
"url": "https://www.tiktok.com/@handle/video/7639528062975053069",
"stats": {
"views": 302447,
"likes": 19880,
"comments": 339,
"shares": 2232,
"saves": 389
}
}
],
"page": { "nextCursor": "…", "hasMore": true }
},
"meta": { "creditsCharged": 1, "requestId": "…", "version": "v1" }
}Enrichment pattern
A second common pattern is enrichment: use TikTok → User search (or Search videos) to discover handles, then loop those results back into Profile videos or Profile to pull full details for each match.
Next steps
MCP
Connect Cursor, VS Code, Claude, and other MCP clients to Social Fetch. Sign in with OAuth, call every endpoint as a tool, and let your agent read the docs as it builds.
API reference
Browse Social Fetch endpoints by platform and task, with direct links to generated schema pages and the raw OpenAPI spec