n8n-nodes-socialapis
v0.1.5
Published
SocialAPIs Node for n8n. Access public data from major social platforms.
Maintainers
Readme
n8n-nodes-socialapis

This is an n8n community node. It lets you access public social media data with SocialAPIs
n8n is a fair-code licensed workflow automation platform.
How to install
Community Nodes
For n8n version 0.187 and later, you can install this node through the Community Nodes panel:
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-socialapisin Enter npm package name - Agree to the risks of using community nodes
- Select Install
Credentials
To use this node, you will need to authenticate with the SocialAPIs API.
- Sign up for a SocialAPIs account
- Copy API Token
- Create new credential in n8n
- Use the SocialAPIs node
- Under Credential to connect with, click Create New Credential
- Paste API Token
Supported resources and operations
| Resource | Operations | | --- | --- | | Facebook Page | Get Page ID, Get Page Details, Get Page Posts, Get Page Reels | | Facebook Post | Get Post Details, Get Post Comments, Get Post Reactions | | Facebook Group | Get Group Details, Get Group Posts | | Facebook Media | Get Media Details | | Facebook Search | Search Pages, Search People, Search Posts, Search Videos, Search Locations | | Meta Ads Library | Search Ads, Search by Keyword, Get Ad Details, Get Page Ad Details, Get Supported Countries | | Facebook Marketplace | Browse listings, item details, categories, locations |
Usage examples
The examples below show how to wire the node into a workflow. Each example assumes you have already created a SocialAPIs API credential as described above.
Example 1 — Fetch the latest posts from a Facebook Page
Get the three most recent posts from the Nike Facebook Page, including reactions, media, and comment counts.
- Add a Manual Trigger node.
- Add a SocialAPIs node and connect it after the trigger.
- Configure the SocialAPIs node:
- Credential: select your SocialAPIs credential
- Resource:
Facebook Page - Operation:
Get Page Posts - Page URL:
https://www.facebook.com/nike
- (Optional) Open Additional Fields and set:
- Timezone:
America/New_York - After Time:
2026-01-01T00:00:00Z
- Timezone:
- Execute the workflow. The node returns an array of posts. To page through more posts, copy
end_cursorfrom the response into Additional Fields → End Cursor and run again, or feed it back in a loop using an IF + Set node.
Equivalent node JSON (paste into n8n via Import from clipboard):
{
"parameters": {
"resource": "facebookPage",
"operation": "getPagePosts",
"link": "https://www.facebook.com/nike",
"additionalFields": {
"timezone": "America/New_York"
}
},
"name": "SocialAPIs",
"type": "n8n-nodes-socialapis.socialApis",
"typeVersion": 1,
"credentials": {
"socialApisApi": {
"name": "SocialAPIs account"
}
}
}Example 2 — Search the Meta Ads Library by keyword
Find active ads in the US that mention "running shoes", sorted by most recent.
- Add a SocialAPIs node to your workflow.
- Configure it:
- Resource:
Meta Ads Library - Operation:
Search Ads
- Resource:
- Open Additional Fields and set:
- Query:
running shoes - Country:
US - Active Status:
Active - Sort Data:
Most Recent
- Query:
- Execute the workflow. The node returns up to 10 ads per call along with an
end_cursoryou can use for pagination.
Equivalent node JSON:
{
"parameters": {
"resource": "metaAds",
"operation": "searchAds",
"additionalFields": {
"query": "running shoes",
"country": "US",
"activeStatus": "Active",
"sort_data": "recent"
}
},
"name": "SocialAPIs",
"type": "n8n-nodes-socialapis.socialApis",
"typeVersion": 1,
"credentials": {
"socialApisApi": {
"name": "SocialAPIs account"
}
}
}Example 3 — Resolve a Page URL to a Page ID, then drill into its ads
Two-step workflow: take a Facebook page link, resolve it to a numeric Page ID, then pull the page's ad-library record.
- Manual Trigger → SocialAPIs (Get Page ID)
- Resource:
Facebook Page - Operation:
Get Page ID - Page URL:
https://www.facebook.com/nike
- Resource:
- SocialAPIs (Get Page Ad Details) connected after step 1
- Resource:
Meta Ads Library - Operation:
Get Page Ad Details - Page ID:
={{ $json.page_id }}(an n8n expression that reads the ID from the previous node's output)
- Resource:
- Execute. The first node returns the Page ID, and the second uses that ID to fetch the page's Meta Ads Library profile.
Tips
- All "list" operations (page posts, reels, ads search, search pages, etc.) are cursor-paginated. Use the returned
end_cursorvalue in Additional Fields → End Cursor to fetch the next page. - Use the Search Locations operation under Facebook Search to find a
location_uidyou can then pass into Search Pages, Search People or Search Posts to scope results geographically. - See the full list of endpoints, parameters and response shapes in the SocialAPIs documentation.
