API de Facebook: Publicación
Una publicación de Facebook por URL: texto y conteos de interacción (Me gusta, comentarios, veces compartida, vistas).
US$1.20/1k solic., pagas por solicitud, sin suscripción.
Watch live as our crew returns home from the International Space Station.
{"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 campos más}
Precios y proveedores
Precios del endpoint Publicación de la API de Facebook: una API, 3 proveedores intercambiables
El proveedor más barato responde primero. Si falla, el siguiente toma el relevo en la misma llamada.
Pruébalo
Obtén Publicación de Facebook en una sola solicitud
Este ejemplo muestra 8 de 28 campos. Ver todos los campos
{
"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
}
}Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.
Referencia
Una solicitud, un formato de respuesta.
Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.
Verificado por última vez el 2026-11-14 · disponibilidad y latencia medidas en 30d
Cuerpo de la solicitud
JSON, enviado por POST a este endpoint.
- urlstring
https://www.facebook.com/nasa/posts/1204545088344463
URL completa de la publicación de Facebook.
- requireFieldsarray
Opcional; si lo omites, el enrutamiento no cambia y atiende la fuente más barata. Indica los campos de salida que esta solicitud debe poder devolver, por ejemplo `videoId` o `views`, y solo la atenderá una fuente que los devuelva todos. Los campos que no indiques se siguen devolviendo siempre que la fuente que atiende los tenga. Esto puede subir tu precio: cuando la fuente más barata no puede devolver un campo indicado, atiende una fuente más cara, y se te cotiza y cobra su precio. Un campo indicado puede faltar igualmente en una publicación que realmente no lo tenga. Indicar una combinación que ninguna fuente devuelve junta se rechaza como entrada no válida, sin cargo.
Respuesta
JSON, un valor de ejemplo por campo.
- 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.
- authorVerifiedbooleanse puede exigir
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.
- feedbackIdstringse puede exigir
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.
- videoIdstringse puede exigir
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.
- videoUrlstringse puede exigir
Playable video file URL of the post's reel or video. Null when the post carries no video or this source cannot read it.
- viewsintegerse puede exigir
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.
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.
- 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.
¿Vendes esta API? Consulta el esquema completo que debe devolver tu endpoint.
Preguntas frecuentes
Acerca del endpoint Publicación de la API de Facebook
El endpoint Publicación de AnyAPI para Facebook devuelve datos de Facebook como JSON normalizado con una sola llamada POST a /v1/run/facebook.post. Una publicación de Facebook por URL: texto y conteos de interacción (Me gusta, comentarios, veces compartida, vistas). AnyAPI enruta cada solicitud entre 3 fuentes y recurre automáticamente a otra cuando una falla. Cuesta desde US$1.20 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 100.0% de las llamadas al endpoint Publicación de la API de Facebook a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 2.0 segundos en 1.032.069 llamadas medidas.