SocialToAIStart freeConsole

Facebook API

Posts, comments, accounts.

The Facebook API lets you read post details, comments, account profiles and an account's posts, with no Facebook account or login. Each call costs 2 credits ($0.004 to $0.0067); failed calls are free. Facebook does not give the author's follower count with a post, so that field is returned as null. Use it over HTTP with an API key, or through MCP from your AI client. Last tested 2026-10-17.

4 of 6actions available
From 2 creditsper call
Same formatas every other call

Last tested: Last updated:

POST/v1/detail200 OK2 credits
platform: "facebook" · url: "https://www.facebook.com/reel/2166091230582141"
@…·
likes 8,287comments 2,668shares 1,100collects nullviews 3,601,010
Always null here:titleauthor.followersmetrics.collectsmetrics.reposts+2
itemsOne object
billingThis call2 credits
Sample dataFull response

4 actions.
One response format.

Open a row to see its request. Its full parameters and response fields are on its own page.

ActionsCredits per call
DetailOne post by link: text, author, likes, comment count, views and publish time./v1/detail2 credits
You send
platformurl
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/detail \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "platform": "facebook",    "url": "https://www.facebook.com/reel/2166091230582141"  }'
POST /v1/detailYour key goes in the Authorization header
CommentsThe comments under one post: text, likes, reply count and time./v1/comments2 credits
You send
platformid
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/comments \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "platform": "facebook",    "id": "1650176549811048"  }'
POST /v1/commentsYour key goes in the Authorization header
User ProfileOne account: name, bio and followers./v1/user_profile2 credits
You send
platformid or username or url
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/user_profile \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "platform": "facebook",    "id": "100044561550831"  }'
POST /v1/user_profileYour key goes in the Authorization header
User PostsThe recent posts of one account./v1/user_posts2 credits
You send
platformid or username or url
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/user_posts \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "platform": "facebook",    "id": "100044561550831"  }'
POST /v1/user_postsYour key goes in the Authorization header

Not offered on Facebook: search and trending.

Or skip the parameters.
Just ask.

Connect SocialToAI once over MCP. Your AI picks the calls, and you see what each one cost.

You ask01

Read the comments on this Facebook post and tell me what people complain about.

Your AI calls
  • detailthe post you pasted2 credits
  • commentsfirst 3 pages6 credits
Total8 credits
You ask02

How big is this Facebook account, and what has it posted lately?

Your AI calls
  • user_profilethe account you named2 credits
  • user_postsits latest page2 credits
Total4 credits
You ask03

Look up this Facebook account and tell me who it is.

Your AI calls
  • user_profilethe account you named2 credits
Total2 credits

Same shape on every platform.
Learn it once.

A Facebook post and a Xiaohongshu note come back with the same field names. What a platform cannot give comes back as null.

Facebookdetail · 2 credits
{  "platform": "facebook",  "id": "…",  "ref": "…",  "approx": [],  "type": "content",  "url": "https://example.com/…",  "format": "video",  "title": null,  "text": "…",  "published_at": "2025-09-15T16:01:55.000Z",  "author": {    "id": "…",    "username": "…",    "name": "…",    "verified": true,    "followers": null  },  "metrics": {    "likes": 8287,    "comments": 2668,    "shares": 1100,    "collects": null,    "views": 3601010,    "reposts": null  },  "images": [],  "hashtags": null,  "is_pinned": null}
Null on Facebook:titleauthor.followersmetrics.collectsmetrics.repostshashtagsis_pinned
Xiaohongshudetail · 12 credits
{  "platform": "xiaohongshu",  "id": "…",  "ref": "…",  "approx": [],  "type": "content",  "url": "https://example.com/…",  "format": "image",  "title": "…",  "text": "…",  "published_at": "2026-10-09T01:00:34.000Z",  "author": {    "id": "…",    "username": "…",    "name": "…",    "verified": null,    "followers": null  },  "metrics": {    "likes": 927,    "comments": 122,    "shares": 256,    "collects": 59,    "views": null,    "reposts": null  },  "images": ["https://example.com/…", "https://example.com/…"],  "hashtags": ["…", "…"],  "is_pinned": false}
Null on Xiaohongshu:author.verifiedauthor.followersmetrics.viewsmetrics.reposts
Sample dataThe fields are always there; only the values differ.

4 tools read Facebook.

All tools

Does Facebook have an official API?

Facebook's Graph API can read public Page posts, comments and metadata only through the Page Public Content Access feature, which requires App Review and business verification and may require additional contracts.

Source: Facebook's developer documentation, checked 2026-10-17.

The same calls work on 17 more.

All platforms and prices

Your AI is one URL away
from all of social media.

100 credits on sign-up, no card needed