Facebook Page & Profile API
Send a Facebook profile link, page link, username or numeric id and get structured profile data as JSON: display name, verified flag, category, public details, follower and following counts, avatar and cover photo.
Request
GET /v1/facebook/profiles ·
1 credit per successful call
curl "https://api.igramapi.com/v1/facebook/profiles?url=https%3A%2F%2Fwww.facebook.com%2Fexamplestudio" \
-H "Authorization: Bearer YOUR_API_KEY" import requests
response = requests.get(
"https://api.igramapi.com/v1/facebook/profiles?url=https%3A%2F%2Fwww.facebook.com%2Fexamplestudio",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
response.raise_for_status()
print(response.json()) const response = await fetch("https://api.igramapi.com/v1/facebook/profiles?url=https%3A%2F%2Fwww.facebook.com%2Fexamplestudio", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
});
if (!response.ok) throw new Error((await response.json()).error.message);
console.log(await response.json()); <?php
$ch = curl_init("https://api.igramapi.com/v1/facebook/profiles?url=https%3A%2F%2Fwww.facebook.com%2Fexamplestudio");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data); Response
{
"id": "100012345678901",
"username": "examplestudio",
"name": "Example Studio",
"url": "https://www.facebook.com/examplestudio",
"is_verified": true,
"category": "Creative studio",
"bio": null,
"details": [
"Creative studio"
],
"followers": 2800000,
"followers_str": "2.8M",
"following": 48,
"following_str": "48",
"avatar_url": "https://scontent.xx.fbcdn.net/v/example/avatar.jpg",
"cover_url": "https://scontent.xx.fbcdn.net/v/example/cover.jpg",
"is_live": false,
"cached": false
} All values above are made-up examples. Media links are temporary Facebook CDN addresses.
Parameters
| Name | In | Description |
|---|---|---|
urlrequired | query | A profile or page URL (facebook.com/{name}), profile.php?id=..., username, or numeric id. |
Response fields
| Field | Type | Description |
|---|---|---|
id / username / name | string / string | null | Numeric Facebook id, vanity username, and display name. |
url / is_verified / is_live | string | null / boolean | Canonical URL, verification badge flag, and live broadcast flag. |
category / bio / details[] | string | null / string[] | Page category, bio text, and public About entries. |
followers / followers_str | integer | null / string | null | Parsed follower count and formatted text. |
following / following_str | integer | null / string | null | Parsed following count and formatted text. |
avatar_url / cover_url | string | null | Profile picture and cover photo URLs (temporary CDN links). |
cached | boolean | True when served from cache. |
URL, username or numeric id
Pass a full page URL, a profile.php?id= link, a handle like @examplestudio, or a bare numeric id.
Followers and category
Returns both formatted counts (followers_str) and parsed integers (followers), plus the page category and About details.
Avatar and cover photo
Includes avatar_url and cover_url alongside verification status and is_live.
1 credit per call
Available on every plan, including the 100 free monthly credits.
What the Facebook profile endpoint returns
The endpoint resolves the page or profile and returns its public identity fields: id, username, name, is_verified, category, details[], followers, following, avatar_url, cover_url and is_live.
When Facebook displays compact counts like 2.8M followers, both followers_str ("2.8M") and the approximate integer followers (2800000) are returned.
Frequently asked questions
Does it work for both Pages and personal profiles?
Yes, as long as the page or profile is public. Private or missing profiles return HTTP 404 with profile_not_found.
Can I pass a username instead of a URL?
Yes. examplestudio, @examplestudio, https://www.facebook.com/examplestudio, and numeric IDs all work.
Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.
Try the Facebook Profile API free
Create a key and make your first request in minutes. 100 free credits every month.