GET /v1/facebook/post

Facebook post API: get a post, reel or video by URL

Reads one public Facebook post, reel, video or photo live and returns Post: caption, time, kind, media and the page that posted it. Send its URL as url, then send the same URL to the Facebook comments API for its comments.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/facebook/post?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F2574821923003417' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/facebook/post",
    params={
        "url": "https://www.facebook.com/reel/2574821923003417",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
url requiredquerystringA post, reel, video or photo URL on facebook.com. Example https://www.facebook.com/reel/2574821923003417.
cached queryauto | cache_only | liveauto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Facebook (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. Default auto.
get_raw querybooleanNot available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. Default false.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "id": "1703232194507537",
    "shortcode": null,
    "taken_at": "2026-10-27T18:00:00Z",
    "kind": "image",
    "product_type": "post",
    "caption": "Even a moment’s rest on Everest can come with a reminder of just how unpredictable the mountain can be.\n\nFrom Oscar®-winning filmmakers Elizabeth Chai Vasarhelyi and Jimmy Chin, EVEREST: THE OTHER SIDE, only in theaters and IMAX worldwide o…",
    "hashtags": [],
    "mentions": [],
    "accessibility_caption": null,
    "likes": 86,
    "comments": 1,
    "views": null,
    "counts_hidden": null,
    "comments_disabled": null,
    "is_pinned": null,
    "is_paid_partnership": null,
    "owner": null,
    "coauthors": [],
    "sponsors": [],
    "tagged": [],
    "location": null,
    "audio": null,
    "thumbnail_url": null,
    "video_duration": null,
    "media": [],
    "media_urls": [],
    "extra": {
      "group_id": null,
      "feedback_id": "ZmVlZGJhY2s6MTcwMzIzMjE5NDUwNzUzNw==",
      "canonical_url": null,
      "title": null,
      "shares": null,
      "plays_raw": null
    }
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-10-27T20:35:43.664910+00:00",
    "cost": "$0.0005",
    "balance": "$9.9995",
    "request_id": "req_ce091767ee86ba9038d4bd60dc4443b0"
  }
}

How it works

One post, reel, video or photo from its public page. Send its URL to /v1/facebook/post_comments for its comments. Returns Post under data; the upstream document is an HTML page, so get_raw is not available.

A field Facebook does not carry is null, a list it does not carry is [], and Facebook-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the Facebook account or item does not exist (not_found). You are not charged.
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.