API di Facebook

Facebook Post del profilo API

Elenca i post recenti di una pagina tramite URL o id pagina con paginazione a cursore: testo, autore e permalink.

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

fNASA | Facebook
facebook.com/nasa

NASA

PostsAboutPhotosReels

NASA

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

Cosa ha restituito l'APIposts[0]
{
"id": "1204545088344463",
"text": "Watch live as our crew returns home from the International Space Station.",
"url": "https://www.facebook.com/nasa/posts/1204545088344463",
"author": "NASA",
"authorId": string,
"comments": integer,
"createdUtc": number,
"image": string,
... 4 campi in più
}
Disponibilità
99,95%
30d · 117.620 chiamate
Richieste
118.011
30 g · settimanale, ultime 12 sett.
Risposta
4,5s
mediana · 30d

Prezzi e provider

Prezzi dell'API Facebook Post del profilo: una sola API, 5 provider intercambiabili

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

Paghi
11,50 USD
1,15 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 86 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni Facebook Post del profilo 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 `shares`, 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 7 campi su 29. Vedi tutti i campi

{
  "found": true,
  "data": {
    "posts": [
      {
        "id": "1204545088344463",
        "text": "Watch live as our crew returns home from the International Space Station.",
        "url": "https://www.facebook.com/nasa/posts/1204545088344463",
        "author": "NASA"
      }
    ]
  }
}

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.

  • cursorstring

    Cursore di paginazione da una risposta precedente.

  • pageIdstring

    ID della pagina 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 `shares`, 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.

  • urlstring

    https://www.facebook.com/nasa

    Facebook page or profile link, e.g. https://www.facebook.com/nike. Accepted: facebook.com/<name>, /p/<name>-<id>, /pages/<name>/<id>, /pg/<name>, /people/<name>/<id>, profile.php?id=<id>, and share links to a page (/share/<id> or /share/p/<id>), on facebook.com or fb.com with or without www, m, mbasic, web, business or a language subdomain. Anything after the page, such as a tab, is fine. Any other Facebook link, such as a single event, group, reel, video, video or reel share link (/share/v/ or /share/r/), hashtag, search, login, about or fb-answers page, is refused as invalid input, with no charge; facebook.event_details reads one event and facebook.post reads one post.

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

    Opaque cursor for the next page of posts, or null when this lane has no more. Pass it back as cursor to continue.

each postdata.posts[]

Populated whenever the provider has data for the entity.

  • authorstring

    NASA

    Populated whenever the provider has data for the entity.

  • authorIdstring

    Numeric Facebook id of the page or profile that posted, as a string.

  • commentsinteger

    Comment count on the post.

  • createdUtcnumber

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.

  • idstring

    1204545088344463

    Populated whenever the provider has data for the entity.

  • imagestring

    Preview image or video thumbnail URL for the post.

  • likesinteger

    Total reaction count on the post.

  • sharesintegerpuò richiedere

    Number of times the post was shared. Null when this source does not report it.

  • textstring

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

    Populated whenever the provider has data for the entity.

  • urlstring

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

    Populated whenever the provider has data for the entity.

each mediadata.posts[].media[]

Photo, video, and GIF attachments on the post. Empty when the post has none.

  • heightinteger

    Pixel height of the media item, when the lane reports it.

  • typestring

    One of photo, video, or gif.

  • urlstring

    Image URL. For a video or GIF this is the poster/thumbnail frame.

  • videoUrlstring

    Playable video file URL. Present only for video and gif items.

  • widthinteger

    Pixel width of the media item, when the lane reports it.

reactionsdata.posts[].reactions

Reaction counts on the post, broken down by reaction type.

  • 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 del profilo

L'API Facebook Post del profilo di AnyAPI restituisce dati Facebook come JSON normalizzato da una sola chiamata POST a /v1/run/facebook.profile_posts. Elenca i post recenti di una pagina tramite URL o id pagina con paginazione a cursore: testo, autore e permalink. AnyAPI instrada ogni richiesta su 5 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 1,15 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 99,9% delle chiamate Facebook Post del profilo tramite AnyAPI è riuscito, con un tempo di risposta mediano di 4,5 secondi su 117.620 chiamate misurate.

Costa da 1,15 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.

Elenca i post recenti di una pagina tramite URL o id pagina con paginazione a cursore: testo, autore e permalink. 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 99,9% delle chiamate Facebook Post del profilo tramite AnyAPI è riuscito, con un tempo di risposta mediano di 4,5 secondi su 117.620 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 86 chiamate Facebook Post del profilo a 0,00115 USD ciascuna.

AnyAPI interroga la successiva delle sue 5 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.profile_posts 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.