GET /v1/facebook/profile
Facebook page API: get followers, category and links by page name
Reads one public Facebook page live and returns Profile: name, category, followers and links. extra carries likes, website, location, delegate_page_id and, with get_business_hours=true, business_hours. Send the page username as handle.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/facebook/profile?handle=natgeo' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/facebook/profile",
params={
"handle": "natgeo",
},
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. |
get_business_hours | query | boolean | true also reads the page’s weekly business hours into extra.business_hours. |
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. |
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. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"id": "100044623170418",
"username": "natgeo",
"full_name": "National Geographic",
"biography": null,
"followers": 51000000,
"following": 2,
"posts": null,
"is_verified": true,
"is_private": false,
"avatar_url": "https://scontent.fppb9-1.fna.fbcdn.net/v/t39.30808-1/475979419_1182307929933302_8257114326919725462_n.jpg?stp=dst-jpg_tt6&cstp=mx400x400&ctp=s100x100&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=3Oz3Y5zFgasQ7kNvwH32Bob&_nc_oc=Adr2zp6FrHb41fdimf…",
"external_url": null,
"links": [],
"category": "Media/news company",
"business_category": null,
"is_business": null,
"is_professional": null,
"business_email": null,
"business_phone": null,
"business_address": null,
"pronouns": [],
"highlight_reel_count": null,
"has_clips": null,
"is_recently_joined": null,
"fbid": null,
"extra": {
"followers_raw": "51M",
"following_raw": "2",
"cover_url": null,
"website": null,
"location": null,
"likes": null,
"canonical_url": "https://www.facebook.com/natgeo/",
"delegate_page_id": "23497828950",
"contact": {}
}
},
"meta": {
"source": "live",
"fetched_at": "2026-10-27T20:35:33.849992+00:00",
"cost": "$0.0005",
"balance": "$9.9995",
"request_id": "req_ce091767ee86ba9038d4bd60dc4443b0"
}
}How it works
A page's public profile: name, category, followers and links. extra carries likes, website, location, delegate_page_id and, with get_business_hours=true, business_hours. Returns Profile 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
| 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. |