GET /v1/facebook/profile_reels
Facebook reels API: a page's reels with views and likes by page name
Returns the reels of one public Facebook page as Page[Post], 10 a page, with caption, time, views, likes and comments. Send the page username as handle; max_pages=1 answers one page at once, and any other value starts a job you poll.
- Price
- $0.0005 per 10 results
- Billing
- $0.0005/10
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/facebook/profile_reels?handle=natgeo&max_pages=1' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/facebook/profile_reels",
params={
"handle": "natgeo",
"max_pages": "1",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
handle required | query | string | A page’s vanity name, its numeric id, or its https://www.facebook.com/<page> URL. |
since | query | string | Stop at this date. 2025-09-21 means midnight UTC (2025-09-21T00:00:00Z). Datetimes must use RFC3339 with a timezone, for example 2025-09-21T09:00:00+09:00. 365d means 365 days before submission. Invalid calendar dates return 400. With max_pages, the first boundary reached stops the walk. since alone creates a job. |
max_pages | query | integer | Maximum pages to fetch. -1 walks until exhaustion or since with no page cap, and must be written. Omitted, since alone bounds the walk; with neither, the job stops after 10 pages. Any positive integer is accepted. 1 returns one page synchronously with HTTP 200; any other value creates a durable job with HTTP 202. |
cursor | query | string | Opaque next_cursor from an earlier answer of this operation, also with get_raw=true. A native Facebook cursor from a raw page answers 400. Result download cursors belong to the results route. |
cached | query | auto | cache_only | live | auto (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. cache_only reads one saved page per request: omit max_pages or pass 1, and continue with next_cursor. |
get_raw | query | boolean | Not available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. |
Idempotency-Key | header | string | Reuse this key with the same inputs to recover a lost job submission. A different input with the same key returns 409. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"items": [
{
"id": "1703232194507537",
"shortcode": null,
"taken_at": "2026-10-27T18:00:00Z",
"kind": "video",
"product_type": "reel",
"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": 14000,
"counts_hidden": null,
"comments_disabled": null,
"is_pinned": null,
"is_paid_partnership": null,
"owner": {
"id": "100044623170418",
"username": null,
"full_name": null,
"is_verified": null,
"is_private": null,
"avatar_url": null,
"latest_story_at": null,
"extra": {}
},
"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": "https://www.facebook.com/reel/2574821923003417",
"title": null,
"shares": null,
"plays_raw": "14K"
}
},
{
"id": "1703133444517412",
"shortcode": null,
"taken_at": "2026-10-27T16:00:00Z",
"kind": "video",
"product_type": "reel",
"caption": "Friendship is important, especially for bonobos. This primate quickly learns that grooming can help break the ice and build new bonds.\n\n#NatGeoQueens is streaming on Disney+ and Hulu.",
"hashtags": [
"NatGeoQueens"
],
"mentions": [],
"accessibility_caption": null,
"likes": 276,
"comments": 7,
"views": 25000,
"counts_hidden": null,
"comments_disabled": null,
"is_pinned": null,
"is_paid_partnership": null,
"owner": {
"id": "100044623170418",
"username": null,
"full_name": null,
"is_verified": null,
"is_private": null,
"avatar_url": null,
"latest_story_at": null,
"extra": {}
},
"coauthors": [],
"sponsors": [],
"tagged": [],
"location": null,
"audio": null,
"thumbnail_url": null,
"video_duration": null,
"media": [],
"media_urls": [],
"extra": {
"group_id": null,
"feedback_id": "ZmVlZGJhY2s6cGZiaWQweW5EYWk5d2RocVdOeEhETGFDeVI4OUU2RVg1Z1FENUdQYXJCRVpZWkRwaGRaTkVUSFhhcDN2R0xRYjFLUFZBbWw=",
"canonical_url": "https://www.facebook.com/reel/2613977089029646",
"title": null,
"shares": null,
"plays_raw": "25K"
}
}
],
"pages": [
{
"cursor": null,
"fetched_at": "2026-10-27T20:35:38.118869+00:00",
"count": 2
}
],
"next_cursor": "eyJhZnRlciI6IkFRSFRmb2lvUDhxbWEzcWtual9feUlLZm12LUVKOUJkX0V3Q09xSzFUZ0ViWlRRWjZoSG0xLUNpa1BEVmhMd1Vqc2hJMElRUm9MR3N4SUVjbkFvbEhhRXZGQSIsIm9wIjoicHJvZmlsZV9yZWVscyJ9",
"has_more": true,
"stop_reason": "pages",
"coverage": {
"since": null,
"oldest_at": "2026-10-24T13:00:08+00:00",
"since_reached": false
}
},
"meta": {
"source": "live",
"fetched_at": "2026-10-27T20:35:38.118869+00:00",
"cost": "$0.0005",
"balance": "$9.9995",
"request_id": "req_b223fc6eef3c216c10386c302ae3d2a9"
}
}How it works
A page's reels, 10 a page, with views, likes and comments. Returns Page[Post] under data; the upstream document is an HTML page, so get_raw is not available.
The default request creates a durable job (202). Use max_pages=1 for one synchronous Page response (200). Poll status_url, then read results_url with its opaque cursor. Acquisition stops at the first of since, max_pages, or exhaustion. Jobs continue after disconnects. Result responses are bounded to 3 MiB; this does not limit the crawl. Supply Idempotency-Key to recover a lost submission response; reuse it with the same inputs. Facebook sets every page’s size, so there is no page_size.
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.
Billing: $0.0005 per 10 unique returned items (one native page), rounded up to a minimum of one billing unit; a get_raw=true page bills one unit. Jobs settle once after successful completion. Submission, polling and repeat downloads are free.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=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. |
429 | Over 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. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |