Automation integration guide
Social Media API for n8n Workflows
Connect Social Media Scraper to n8n with a standard HTTP Request node. Import the starter workflow, set your API key, and inspect public profile JSON before adding a spreadsheet, database, or another destination.
- Manual Trigger
Starts a single test run on demand so you can pass a handle and check the raw output.
- HTTP Request GET
Calls the Social Media Scraper endpoint using your saved x-api-key credential.
- JSON Output Tray
Displays returned public fields in n8n's output panel for drag-and-drop mapping.
What You Can Collect with n8n and a Social Media API
An n8n social media integration can start with one GET request. Use the free two-node template to build an n8n API workflow for public data collection, then choose the documented endpoint for your research task.
Public Profile Details
Select the public profile operation for available handle, display name, bio, profile URL, avatar URL, and counters. Optional values can be null or absent.
Public Post Snapshots
Choose a documented post operation for available text, source links, and public counters. Inspect the returned fields before mapping them into your content log.
Public Ad Records
Use the documented ad-library search operation to inspect available public titles, text, source links, and author context.
{
"id": "string",
"handle": "string",
"display_name": "string | null",
"bio": "string | null",
"profile_url": "string | null",
"metrics": {
"followers": "number | null",
"posts": "number | null"
}
}How to Connect an HTTP Request Node
Import the starter JSON into n8n, attach a Header Auth credential, and run a single GET request to verify the output in the node's JSON panel.
Import the Starter JSON
Paste the downloadable workflow JSON onto your n8n canvas to create the Manual Trigger and n8n HTTP Request node.
Save Header Auth Credentials
Create an n8n Header Auth credential with the header name x-api-key and paste your API key there rather than in the URL.
Configure GET Endpoint and Query
Set the method to GET, enter the exact endpoint URL, add the target handle or query parameter, and click Execute Step to inspect the JSON.
How to Use the Starter n8n Workflow JSON
Downloadable n8n workflow JSON containing a Manual Trigger and a GET HTTP Request node configured for Header Auth.
{
"name": "Social Media API for n8n",
"nodes": [
{
"parameters": {},
"id": "manual",
"name": "Manual Trigger",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"url": "https://socialmediascraper.org/v1/instagram/profile",
"method": "GET",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "handle",
"value": "jane"
}
]
},
"options": {
"timeout": 40000
}
},
"id": "request",
"name": "Fetch public data",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
500,
300
]
}
],
"connections": {
"Manual Trigger": {
"main": [
[
{
"node": "Fetch public data",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"active": false,
"pinData": {}
}
Copy or download the request, Python script, or n8n workflow, then run it in your own environment with an active API key and balance.
How Do You Configure the Starter n8n Social Media API Workflow?
Follow these four steps to run an authenticated GET request against the sample instagram.profile endpoint in n8n and inspect the returned public profile JSON.
Import the two-node workflow JSON
Import the starter file into your n8n workspace to create a Manual Trigger wired directly to an HTTP Request node.
Configure Header Auth with header name x-api-key
In the HTTP Request node, set Authentication to Generic Credential Type, select Header Auth, and configure the credential with Header Name set to x-api-key and your Social Media Scraper API key as the value.
Set GET and query parameters for instagram.profile
Keep the HTTP method set to GET on the sample instagram.profile endpoint, enable Send Query Parameters, and pass a documented public Instagram handle parameter instead of placing keys in the URL.
Execute manually and inspect Output JSON
Run the workflow manually from the trigger and review the available identity, bio, profile_url, and metric fields in the HTTP Request node's Output JSON panel.
What Profile Fields Can You Map into Downstream n8n Nodes?
The downloadable two-node starter ends at the HTTP Request node. After you add your own optional Edit Fields or Google Sheets node, you can map these response fields:
| Response Field | Optional Destination |
|---|---|
data.handle | Account handle field in a user-added Edit Fields or Google Sheets node |
data.profile_url | Public profile URL column for manual creator review |
data.metrics.followers | Optional follower count column (may be null when unavailable) |
How Should You Handle HTTP Errors and Null Profile Fields?
400 Bad Request on invalid input
Confirm Send Query Parameters is enabled and check that the handle parameter matches the documented instagram.profile format.
401 Unauthorized or 402 Payment Required
Verify that your Header Auth credential sets Header Name to x-api-key with an active API key and that your Social Media Scraper account has available balance.
429 Rate Limit or null optional metrics
Space out workflow runs if you receive a 429 status, and allow downstream expressions to accept null values when optional metrics are omitted.
This starter download includes two nodes only (Manual Trigger -> HTTP Request) with active set to false. Scheduling, Edit Fields, Google Sheets, and database nodes are not included and must be added by you.
Why Start with One Request Before Adding a Loop
Running a batch loop against an untested endpoint often breaks field mappings midway or burns balance on malformed query parameters. One manual test run lets you verify the exact response structure before scaling up.
Verify Exact Key Names
Confirm the exact JSON property paths in n8n's output tree so downstream nodes reference real fields on the first try.
Spot Empty or Null Values
See which optional fields return null when an account hides public details, preventing expression errors later.
Prevent Duplicate Paid Calls
Catch typos in handle formatting during a single test execution before adding a loop or schedule trigger.

What You Can Send to a Sheet or Another Node
Add destination nodes after the tested HTTP Request node to build Google Sheets workflows or creator research automation. The starter JSON includes only a Manual Trigger and the request; storage, schedules, and analysis are steps you add.
Creator Research Automation
Fetch public bio details and available counters for selected handles, then add a sheet or database node to organize candidates for manual review.
Competitor Post Logs
Append post permalinks, captions, and public engagement counts to a tracking table for weekly content reviews.
Ad Creative Archives
Store available ad text, titles, source links, and your collection time in a research table you add after the request.
What to Check Before You Activate the Workflow
Verify your account balance, endpoint scope, and error handling before turning on a schedule trigger. The API reads public data only—it does not publish posts, moderate comments, or return private reach and demographic metrics.
Account Balance and Key Status
Confirm your API key is active and your account holds enough balance to cover scheduled runs, as REST calls are billed per request.
Retry and Pacing Settings
Inspect a failed run’s status and account usage before retrying. Configure bounded attempts and delays only for cases your workflow can safely repeat.
Null-Safe Field Expressions
Use fallback expressions in downstream nodes so missing public fields do not halt multi-item workflow runs.
What Should You Check Before Connecting n8n?
Import the starter workflow JSON, configure a Header Auth credential with your x-api-key, and send a GET request to the desired endpoint.
You can download the starter template containing the Manual Trigger and HTTP Request node directly from this guide.
After configuring the HTTP Request node and testing a successful response, add a Google Sheets node downstream and map your returned JSON fields to sheet columns.
Reading this guide is free, while each live REST request executed by your n8n workflow is billed against your Social Media Scraper account balance.
This integration supports public read-only requests only. It cannot publish content, manage campaigns, or access private analytics such as reach, impressions, or audience demographics.
Inspect the actual response paths before mapping them. For the profile response envelope, an expression such as {{ $json.data?.bio ?? '' }} keeps a missing bio from breaking the destination row.
How to Check a Public Profile Before Building Your Workflow
Try a public profile lookup in the browser to inspect its available fields, then configure the HTTP Request node with the endpoint parameters.