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
curl 'https://api.virev.ai/v1/facebook/profile?handle=natgeo' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
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

NameInTypeDescription
handle requiredquerystringA page’s vanity name, its numeric id, or its https://www.facebook.com/<page> URL. Example natgeo.
get_business_hours querybooleantrue also reads the page’s weekly business hours into extra.business_hours. Default false.
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": "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

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.