Facebook-API

Facebook-Beitrag-API

Ein einzelner Facebook-Beitrag per URL: Text und Interaktionszahlen (Likes, Kommentare, Shares, Aufrufe).

0,72 USD/1k Anfr., Zahlung pro Anfrage, kein Abo.

fFacebook
facebook.com/nasa/posts/1204545088344463

Watch live as our crew returns home from the International Space Station.

video
2,09548 comments133 shares
LikeCommentShare
Was die API zurückgegeben hat
{
"id": "25118307061088489",
"text": "Watch live as our crew returns home from the International Space Station.",
"likes": 2095,
"comments": 48,
"shares": 133,
"views": 133000,
"authorId": string,
"authorImage": string,
... 10 weitere Felder
}
Verfügbarkeit
99,99%
30d · 1.092.490 Aufrufe
Anfragen
1.1M
30 T · wöchentlich, letzte 12 Wochen
Antwort
2,1s
Median · 30d

Preise und Anbieter

Preise der Facebook-Beitrag-API: eine API, 4 austauschbare Anbieter

Der günstigste Anbieter bedient zuerst. Fällt er aus, übernimmt der nächste im selben Aufruf.

Du zahlst
7,20 USD
0,72 USD/1k Anfr., nur für das, was du nutzt. Kein Monatstarif.
Deine ersten 138 Anfragen sind mit dem Startguthaben von 0,10 USD kostenlos.

Ausprobieren

Facebook Beitrag mit einer Anfrage abrufen

requireFieldsarray
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 `videoUrl` 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.
Öffnen in
Beispielantwort
Kostenlose Läufe liefern nur die ersten 3 Ergebnisse. Lade einen Schlüssel auf, um die vollständige Antwort zu bekommen.

Dieses Beispiel zeigt 8 von 28 Feldern. Alle Felder ansehen

{
  "found": true,
  "data": {
    "id": "25118307061088489",
    "text": "Watch live as our crew returns home from the International Space Station.",
    "likes": 2095,
    "comments": 48,
    "shares": 133,
    "views": 133000
  }
}

Vollständige Parameter- und Antwortreferenz: jedes Feld, jeder Typ und jedes Beispiel für diesen Endpoint.

Referenz

Eine Anfrage, eine Antwortstruktur.

Jedes Feld, das du sendest, und jedes Feld, das du zurückbekommst, jeweils mit einem echten Beispiel.

Zuletzt geprüft 2026-11-21 · Verfügbarkeit und Latenz gemessen über 30d

Request-Body

JSON, per POST an diesen Endpoint gesendet.

  • urlstring

    https://www.facebook.com/nasa/posts/1204545088344463

    Vollständige URL des Facebook-Beitrags.

  • requireFieldsarray

    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 `videoUrl` 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.

Du sendest. Ein kleiner JSON-Body. Die gezeigten Werte sind Beispiele, die du durch deine eigenen ersetzt.

Antwort

JSON, ein Beispielwert pro Feld.

datadata
  • authorIdstring

    Numeric Facebook id of the page or profile that posted.

  • authorImagestring

    Profile picture URL of the page or profile that posted.

  • authorNamestring

    Display name of the page or profile that posted.

  • authorVerifiedbooleankann erfordern

    Whether the posting page or profile carries a Facebook verification badge.

  • commentsinteger

    48

  • createdUtcnumber

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • durationSecondsnumber

    Length of the post's video in seconds, 0 when the post carries no video.

  • feedbackIdstringkann erfordern

    Facebook feedback id of the post; pass it to facebook.post_comments as feedbackId to fetch its comments. Null when this source cannot read it.

  • idstring

    25118307061088489

    Facebook post id. For a reel or video post this is NOT the id in the /reel/ URL; that one is videoId. Populated whenever the provider has data for the entity.

  • imagestring

    Preview image or video thumbnail URL for the post.

  • likesinteger

    2095

  • sharesinteger

    133

  • textstring

    Watch live as our crew returns home from the International Space Station.

    Populated whenever the provider has data for the entity.

  • urlstring

    Canonical Facebook URL of the post.

  • videoIdstring

    Facebook video id of the post's reel or video, the id that appears in its /reel/<id> URL. Null when the post carries no video or this lane cannot read it.

  • videoUrlstringkann erfordern

    Playable video file URL of the post's reel or video. Null when the post carries no video or this source cannot read it.

  • viewsintegerkann erfordern

    133000

    Number of views on the post's video. Null when the source cannot report an exact count, for example when it gives only a rounded figure such as 14K.

reactionsdata.reactions

Reaction counts on the post, broken down by reaction type. Null when this source reports only the total.

  • angryinteger

    Angry reactions.

  • careinteger

    Care reactions.

  • hahainteger

    Haha reactions.

  • likeinteger

    Like reactions.

  • loveinteger

    Love reactions.

  • sadinteger

    Sad reactions.

  • wowinteger

    Wow reactions.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Du bekommst zurück. Benannte, typisierte Felder in derselben Struktur, egal welche Quelle antwortet.

Du verkaufst diese API? Hier ist das vollständige Schema, das dein Endpoint zurückgeben muss.

FAQ

Über die Facebook-Beitrag-API

Die AnyAPI-Facebook-Beitrag-API liefert Facebook-Daten als normalisiertes JSON aus einem POST-Aufruf an /v1/run/facebook.post. Ein einzelner Facebook-Beitrag per URL: Text und Interaktionszahlen (Likes, Kommentare, Shares, Aufrufe). AnyAPI routet jede Anfrage über 4 Quellen und weicht automatisch aus, wenn eine ausfällt. Sie kostet ab 0,72 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. In den letzten 30 Tagen waren 100,0% der Facebook Beitrag-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 2,1 Sekunden über 1.092.490 gemessene Aufrufe.

Sie kostet ab 0,72 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. Du lädst ein USD-Guthabenkonto auf, und jeder Aufruf bucht davon ab. Bei manchen fehlgeschlagenen, vom Guthabenkonto bezahlten Anfragen fallen Bearbeitungsgebühren an, die wir zum Selbstkostenpreis ohne Aufschlag weitergeben. Die Fehlerantwort zeigt den berechneten Betrag.

Ein einzelner Facebook-Beitrag per URL: Text und Interaktionszahlen (Likes, Kommentare, Shares, Aufrufe). Die Antwort ist normalisiertes JSON mit demselben Envelope, den jeder AnyAPI-Endpoint liefert, sodass das Parsen eines zweiten Endpoints nur eine geänderte URL bedeutet.

In den letzten 30 Tagen waren 100,0% der Facebook Beitrag-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 2,1 Sekunden über 1.092.490 gemessene Aufrufe. Das sind AnyAPIs eigene Messungen des Traffics durch das Gateway, laufend neu berechnet, kein veröffentlichtes Service-Level-Ziel.

Ja. Ein neues AnyAPI-Konto startet mit 0,10 USD Gratis-Guthaben, ohne Karte. Das deckt 138 Facebook-Beitrag-Aufrufe zu je 0,00072 USD.

AnyAPI fragt in derselben Anfrage die nächste seiner 4 Quellen, die günstigste zuerst, sodass der Ausfall einer Quelle deinen Aufruf nicht scheitern lässt.

Sende eine POST-Anfrage an https://api.getanyapi.com/v1/run/facebook.post mit deinem AnyAPI-Schlüssel in einem Header „Authorization: Bearer“ und der Eingabe als JSON-Body. Derselbe Schlüssel und dasselbe Guthabenkonto funktionieren bei jedem AnyAPI-Endpoint.

Nein. Du lädst US-Dollar auf ein Prepaid-AnyAPI-Guthaben, und jede Anfrage bucht davon ab. Es gibt keinen Monatstarif und kein Minimum, und dasselbe Guthaben bezahlt jeden AnyAPI-Endpoint.

Ja. Installiere @getanyapi/sdk von npm für TypeScript oder getanyapi von pip für Python. Beide rufen jeden AnyAPI-Endpoint mit demselben Schlüssel auf, und jeder HTTP-Client funktioniert ebenfalls.

Ja. Ein Agent kann sich mit dem AnyAPI-MCP-Server unter https://api.getanyapi.com/mcp verbinden oder mit einem unauthentifizierten POST an https://api.getanyapi.com/agent/signup einen eigenen kostenlosen Test-Schlüssel erstellen und diesen Endpoint über HTTP aufrufen.