API di Facebook

Facebook Post API

Un singolo post Facebook tramite URL: testo e dati di coinvolgimento (mi piace, commenti, condivisioni, visualizzazioni).

0,72 USD/1k richieste, paghi a richiesta, nessun abbonamento.

fFacebook
facebook.com/nasa/posts/1204545088344463

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

video
2,09548 comments133 shares
LikeCommentShare
Cosa ha restituito l'API
{
"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 campi in più
}
Disponibilità
99,99%
30d · 1.092.490 chiamate
Richieste
1.1M
30 g · settimanale, ultime 12 sett.
Risposta
2,1s
mediana · 30d

Prezzi e provider

Prezzi dell'API Facebook Post: una sola API, 4 provider intercambiabili

Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.

Paghi
7,20 USD
0,72 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 138 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni Facebook Post in una sola richiesta

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.
Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta completa.

Questo esempio mostra 8 campi su 28. Vedi tutti i campi

{
  "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
  }
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-11-21 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • urlstring

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

    URL completo del post Facebook.

  • 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.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

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.

  • authorVerifiedbooleanpuò richiedere

    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.

  • feedbackIdstringpuò richiedere

    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.

  • videoUrlstringpuò richiedere

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

  • viewsintegerpuò richiedere

    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.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

Vendi questa API? Consulta lo schema completo che il tuo endpoint deve restituire.

FAQ

Sull'API Facebook Post

L'API Facebook Post di AnyAPI restituisce dati Facebook come JSON normalizzato da una sola chiamata POST a /v1/run/facebook.post. Un singolo post Facebook tramite URL: testo e dati di coinvolgimento (mi piace, commenti, condivisioni, visualizzazioni). AnyAPI instrada ogni richiesta su 4 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 0,72 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 100,0% delle chiamate Facebook Post tramite AnyAPI è riuscito, con un tempo di risposta mediano di 2,1 secondi su 1.092.490 chiamate misurate.

Costa da 0,72 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

Un singolo post Facebook tramite URL: testo e dati di coinvolgimento (mi piace, commenti, condivisioni, visualizzazioni). La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 100,0% delle chiamate Facebook Post tramite AnyAPI è riuscito, con un tempo di risposta mediano di 2,1 secondi su 1.092.490 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 138 chiamate Facebook Post a 0,00072 USD ciascuna.

AnyAPI interroga la successiva delle sue 4 fonti nella stessa richiesta, partendo dalla più economica, quindi una fonte che cade non fa fallire la tua chiamata.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/facebook.post con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.