npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-socialapis

v0.1.5

Published

SocialAPIs Node for n8n. Access public data from major social platforms.

Readme

n8n-nodes-socialapis

n8n.io - Workflow Automation

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:

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-socialapis in Enter npm package name
  4. Agree to the risks of using community nodes
  5. Select Install

Credentials

To use this node, you will need to authenticate with the SocialAPIs API.

  1. Sign up for a SocialAPIs account
  2. Copy API Token
  3. 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.

  1. Add a Manual Trigger node.
  2. Add a SocialAPIs node and connect it after the trigger.
  3. Configure the SocialAPIs node:
    • Credential: select your SocialAPIs credential
    • Resource: Facebook Page
    • Operation: Get Page Posts
    • Page URL: https://www.facebook.com/nike
  4. (Optional) Open Additional Fields and set:
    • Timezone: America/New_York
    • After Time: 2026-01-01T00:00:00Z
  5. Execute the workflow. The node returns an array of posts. To page through more posts, copy end_cursor from 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.

  1. Add a SocialAPIs node to your workflow.
  2. Configure it:
    • Resource: Meta Ads Library
    • Operation: Search Ads
  3. Open Additional Fields and set:
    • Query: running shoes
    • Country: US
    • Active Status: Active
    • Sort Data: Most Recent
  4. Execute the workflow. The node returns up to 10 ads per call along with an end_cursor you 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.

  1. Manual TriggerSocialAPIs (Get Page ID)
    • Resource: Facebook Page
    • Operation: Get Page ID
    • Page URL: https://www.facebook.com/nike
  2. 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)
  3. 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_cursor value in Additional Fields → End Cursor to fetch the next page.
  • Use the Search Locations operation under Facebook Search to find a location_uid you 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.

Resources