urlstringerforderlich
Full Facebook post URL.
https://api.sandbase.ai/v1/api/facebook/postFetch a single Facebook post by URL with its text and engagement counts (likes, comments, shares, views).
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Returns one Facebook post or reel as JSON, with its text, author, engagement counts, reaction breakdown, and video details. It needs the full post URL in url.
love and angry across competitor posts.curl -X POST "https://api.sandbase.ai/v1/api/facebook/post" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.facebook.com/reel/2166091230582141/"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full Facebook post URL. |
requireFields | array | No | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example videoId or views, and it is served only by a source that returns e |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"authorId": "100044541544829",
"authorImage": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7…",
"authorName": "Nike",
"authorVerified": true,
"comments": 2737,
"createdUtc": 1757952115,
"durationSeconds": 30.025,
"feedbackId": "ZmVlZGJhY2s6cGZiaWQwMzNLUmdTcnd1RWZ0b3p1OU5CU012MW16YXpZTFJzQXBHa2dhUGlGMmZUa0pu…",
"id": "1393461115481927",
"image": "https://scontent-phx1-1.xx.fbcdn.net/v/t51.82787-10/549104239_18565912819020081_…",
"likes": 8541,
"reactions": {
"angry": 36,
"care": 142,
"haha": 32,
"like": 7062,
"love": 1218,
"sad": 5,
"wow": 46
}
},
"found": true
}
| Field | Meaning |
|---|---|
data.text | Caption or body text of the post. |
data.authorName / data.authorId | Display name and numeric ID of the page or profile that posted. |
data.authorVerified | true when the author shows as verified. |
data.likes / data.comments / data.shares / data.views | Engagement counts for the post. |
data.reactions.like / love / care / haha / wow / sad / angry | Count of each reaction type on the post. |
data.createdUtc | Creation time of the post as a Unix timestamp in seconds. |
data.durationSeconds | Length of the video in seconds. |
data.videoId / data.videoUrl | ID of the video and a direct link to the video file. |
data.feedbackId | Identifier for the post's feedback object, which holds its reactions and comments. |
found | true when the post was found. |
url, for example https://www.facebook.com/reel/2166091230582141/.requireFields to names such as views, reactions, videoUrl, or authorVerified when your code needs them. A dearer source may then serve the call.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/post" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.facebook.com/reel/2166091230582141/"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
urlstringerforderlichFull Facebook post URL.
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `videoId` or `views`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Facebook PostDiese API Facebook | Ab $0.0012 pro Aufruf | JSON |
Facebook | Ab $0.0012 pro Aufruf | JSON |
Facebook | Ab $0.00462 pro Aufruf | JSON |
Facebook | Ab $0.0012 pro Aufruf | JSON |
Facebook | Ab $0.0011 pro Aufruf | JSON |
Facebook | Ab $0.0011 pro Aufruf | JSON |
Anleitungen:Best Facebook API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/facebook/post mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.0012 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: url (string). Optional: requireFields (array). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Facebook Post läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Facebook API beantragen.