Collecte une publication Facebook directement sur la plateforme et renvoie son contenu et ses compteurs d'engagement à l'instant de l'appel.
GET
/api/v1/facebook/realtime/post/detailConsommation de quota: Chaque requête réussie vers ce point de terminaison déduit 100 unités de quota de votre forfait.
Paramètres de requête
Paramètres obligatoires
| Nom | Emplacement | Type | Description |
|---|---|---|---|
post_url | query | string | post url example: https://www.facebook.com/nike/posts/pfbid0Z2KUg35AkAJeQJ6NRMyZViPnZD1b6wDMNP8L1UUNUFuYryVnw5DJUZGskYSWue4kl |
Champs de réponse
| Nom | Type | Description |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | object | - |
data.post_id | string | Post ID |
data.post_url | string | Post URL |
data.description | string | Post text |
data.cover_url | string | Cover image URL |
data.publish_at | string | Publish time |
data.like_count | integer | Like count |
data.comment_count | integer | Comment count |
data.share_count | integer | Share count |
data.view_count | integer | Play count |
data.media_type | string | Media type |
data.resources | array<string> | Resource URLs |
data.author_id | string | Author ID |
data.author_name | string | Author name |
data.author_url | string | Author URL |
data.caption_text | string | Caption text |
data.duration_seconds | number | Duration (seconds) |
data.video_sd_url | string | SD video URL |
data.video_hd_url | string | HD video URL |
data.caption_urls | array<string> | Subtitle URLs |
Tester
https://openapi.scdata.cc/api/v1/facebook/realtime/post/detail
Sélectionnez une clé API du tableau de bord
Ajoutez une clé API avant d'envoyer une requête.Ouvrir le tableau de bord
Paramètres de requête
post_url*Exemple cURL
bash
curl -X GET "https://openapi.scdata.cc/api/v1/facebook/realtime/post/detail?post_url=https%3A%2F%2Fwww.facebook.com%2Fnike%2Fposts%2Fpfbid0Z2KUg35AkAJeQJ6NRMyZViPnZD1b6wDMNP8L1UUNUFuYryVnw5DJUZGskYSWue4kl" \-H "Authorization: YOUR_API_KEY"
Exemple de réponse (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": {"post_id": "string","post_url": "string","description": "string","cover_url": "string","publish_at": "string","like_count": 0,"comment_count": 0,"share_count": 0,"view_count": 0,"media_type": "string","resources": ["string"],"author_id": "string","author_name": "string","author_url": "string","caption_text": "string","duration_seconds": 0,"video_sd_url": "string","video_hd_url": "string","caption_urls": ["string"]}}
Cas d'usage
- Reporting de publication sponsorisée — Relevez les chiffres d'engagement finaux d'une publication payante.
- Suivi de publication virale — Réinterrogez régulièrement une publication en forte croissance pour mesurer sa diffusion.