GET /v1/facebook/stored/profile/posts

Facebook stored page posts API: a page's saved posts by page name

Returns the posts stored for one Facebook page, newest first: caption, counts, time and URL, with an opaque next_cursor while more are stored. Send the page's vanity name, numeric id or URL as q. This is a stored read: a miss is a 404 and never a crawl.

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

Example request

curl
curl 'https://api.virev.ai/v1/facebook/stored/profile/posts?q=natgeo' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/facebook/stored/profile/posts",
    params={
        "q": "natgeo",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
q requiredquerystringA page’s vanity name or numeric id, or its facebook.com page URL. Example natgeo.
limit queryintegerPosts per page. Default 30.
cursor querystringnext_cursor from the previous page.

Example response

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

json
{
  "data": {
    "posts": [
      {
        "facebook_content_id": "1687661559397934",
        "content_type": "post",
        "canonical_url": "https://www.facebook.com/reel/942459548952900",
        "title": null,
        "caption": "Presented by ROLEX. A lion can be difficult to track across Zambia’s vast wetlands, even with a radio collar. When the Busanga pride’s matriarch, Princess, hadn’t been seen for six months, conservationists set out to find her across a terri…",
        "likes": 1170,
        "comments": 14,
        "shares": null,
        "views": 92000,
        "duration_ms": null,
        "posted_at": "2026-10-11T22:00:12Z",
        "image_url": null,
        "video_url": null,
        "is_video": false,
        "metric_precision": {
          "views": "approximate"
        }
      },
      {
        "facebook_content_id": "1687552099408880",
        "content_type": "post",
        "canonical_url": "https://www.facebook.com/reel/1068261349577561",
        "title": null,
        "caption": "It’s snack time for these humpback whales. They use rings of bubbles like nets to concentrate fish and krill before surging through for a feast. \n\n#EuropeFromAbove is streaming on Disney+",
        "likes": 2183,
        "comments": 20,
        "shares": null,
        "views": 151000,
        "duration_ms": null,
        "posted_at": "2026-10-11T19:00:08Z",
        "image_url": null,
        "video_url": null,
        "is_video": false,
        "metric_precision": {
          "views": "approximate"
        }
      }
    ],
    "next_cursor": "WzQwMzUsIjIwMjYtMTAtMTFUMTk6MDA6MDgrMDA6MDAiXQ",
    "has_more": true
  },
  "meta": {
    "cost": "$0.0005",
    "balance": "$9.9990",
    "request_id": "req_f2f47fb1c518e233eb1c4ee26f6d538f"
  }
}

How it works

The posts stored for one page, newest first, with an opaque next_cursor while more are stored.

Strictly DB: this reads what the crawler already stored and never crawls. A miss is a 404 and is not billed. Collect more with /v1/facebook/profile_reels or /v1/facebook/profile_photos.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404The page is not stored. 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.