curl --request GET \
--url https://api.scraperize.com/v1/facebook/profile \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraperize.com/v1/facebook/profile"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.scraperize.com/v1/facebook/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scraperize.com/v1/facebook/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scraperize.com/v1/facebook/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scraperize.com/v1/facebook/profile")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraperize.com/v1/facebook/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"gated": false,
"profile": {
"id": "100064879894574",
"name": "The Metropolitan Museum of Art, New York",
"url": "https://www.facebook.com/metmuseum",
"username": null,
"alternateName": null,
"gender": "NEUTER",
"verified": true,
"categories": [
"Art Museums"
],
"profilePictureUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s480x480&_nc_cat=103&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=l3DdePnsY5oQ7kNvwG1EYfn&_nc_oc=AdoiFjTFXzYu-uEzrKI55iBVI5nhGKHizVf4vQjdf4X7jiu5YszER0Nuej0eeJVhvj0&_nc_zt=24&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQNRq2fRft2PJNIgNNLwtf_0zC3zOg44Obzv-gTzbirO9A&oe=6AC9A175",
"profilePicture": {
"small": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s200x200&_nc_cat=103&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=l3DdePnsY5oQ7kNvwG1EYfn&_nc_oc=AdoiFjTFXzYu-uEzrKI55iBVI5nhGKHizVf4vQjdf4X7jiu5YszER0Nuej0eeJVhvj0&_nc_zt=24&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQNRq2fRft2PJNIgNNLwtf_0zC3zOg44Obzv-gTzbirO9A&oe=6AC9A175",
"medium": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s320x320&_nc_cat=103&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=l3DdePnsY5oQ7kNvwG1EYfn&_nc_oc=AdoiFjTFXzYu-uEzrKI55iBVI5nhGKHizVf4vQjdf4X7jiu5YszER0Nuej0eeJVhvj0&_nc_zt=24&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQNRq2fRft2PJNIgNNLwtf_0zC3zOg44Obzv-gTzbirO9A&oe=6AC9A175",
"large": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s480x480&_nc_cat=103&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=l3DdePnsY5oQ7kNvwG1EYfn&_nc_oc=AdoiFjTFXzYu-uEzrKI55iBVI5nhGKHizVf4vQjdf4X7jiu5YszER0Nuej0eeJVhvj0&_nc_zt=24&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQNRq2fRft2PJNIgNNLwtf_0zC3zOg44Obzv-gTzbirO9A&oe=6AC9A175"
},
"coverPhotoUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-6/481991954_1056653546507299_950545646890195151_n.jpg?stp=dst-jpg_tt6&cstp=mx2048x1365&ctp=s2048x1365&_nc_cat=106&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=UXKHPEocvgEQ7kNvwHQaDLt&_nc_oc=Adpb_7ngWmA3u4SX1WG00Z_H2Mk79tAduNyECiXRPEgcq4J2I-at60Hhgc_-JozPTSA&_nc_zt=23&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQOvaB7zEAMXKvSRCIvtDC3-8OD0Gs04cCYCFBxFfwMibQ&oe=6AC97980",
"followers": {
"count": 2400000,
"label": "2.4M followers"
},
"following": {
"count": 12,
"label": "12 following"
},
"likes": null,
"intro": null,
"contact": {
"phone": "+1 212-535-7710",
"email": null,
"website": "http://www.metmuseum.org/",
"address": "1000 5th Ave, New York, NY, United States, 10028"
},
"links": [
{
"type": "website",
"label": "Website",
"url": "http://www.metmuseum.org/",
"value": "http://www.metmuseum.org/"
}
],
"rating": "100% recommend (119,584 reviews)",
"isBusinessPage": false,
"otherDetails": [],
"businessHours": {
"status": "Open now"
}
},
"fetchedAt": "2026-10-05T14:43:15.154Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"details": [
{
"path": "url",
"message": "Required"
}
]
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}Profile
Fetches a public Facebook page/profile’s information (from its /about tab): identity (name, id, url, username, verified, profile & cover photos), categories, follower/following counts, contact (phone, email, website, address), rating, and (optionally) the business hours status.
curl --request GET \
--url https://api.scraperize.com/v1/facebook/profile \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraperize.com/v1/facebook/profile"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.scraperize.com/v1/facebook/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scraperize.com/v1/facebook/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scraperize.com/v1/facebook/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scraperize.com/v1/facebook/profile")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraperize.com/v1/facebook/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"gated": false,
"profile": {
"id": "100064879894574",
"name": "The Metropolitan Museum of Art, New York",
"url": "https://www.facebook.com/metmuseum",
"username": null,
"alternateName": null,
"gender": "NEUTER",
"verified": true,
"categories": [
"Art Museums"
],
"profilePictureUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s480x480&_nc_cat=103&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=l3DdePnsY5oQ7kNvwG1EYfn&_nc_oc=AdoiFjTFXzYu-uEzrKI55iBVI5nhGKHizVf4vQjdf4X7jiu5YszER0Nuej0eeJVhvj0&_nc_zt=24&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQNRq2fRft2PJNIgNNLwtf_0zC3zOg44Obzv-gTzbirO9A&oe=6AC9A175",
"profilePicture": {
"small": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s200x200&_nc_cat=103&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=l3DdePnsY5oQ7kNvwG1EYfn&_nc_oc=AdoiFjTFXzYu-uEzrKI55iBVI5nhGKHizVf4vQjdf4X7jiu5YszER0Nuej0eeJVhvj0&_nc_zt=24&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQNRq2fRft2PJNIgNNLwtf_0zC3zOg44Obzv-gTzbirO9A&oe=6AC9A175",
"medium": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s320x320&_nc_cat=103&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=l3DdePnsY5oQ7kNvwG1EYfn&_nc_oc=AdoiFjTFXzYu-uEzrKI55iBVI5nhGKHizVf4vQjdf4X7jiu5YszER0Nuej0eeJVhvj0&_nc_zt=24&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQNRq2fRft2PJNIgNNLwtf_0zC3zOg44Obzv-gTzbirO9A&oe=6AC9A175",
"large": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s480x480&_nc_cat=103&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=l3DdePnsY5oQ7kNvwG1EYfn&_nc_oc=AdoiFjTFXzYu-uEzrKI55iBVI5nhGKHizVf4vQjdf4X7jiu5YszER0Nuej0eeJVhvj0&_nc_zt=24&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQNRq2fRft2PJNIgNNLwtf_0zC3zOg44Obzv-gTzbirO9A&oe=6AC9A175"
},
"coverPhotoUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-6/481991954_1056653546507299_950545646890195151_n.jpg?stp=dst-jpg_tt6&cstp=mx2048x1365&ctp=s2048x1365&_nc_cat=106&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=UXKHPEocvgEQ7kNvwHQaDLt&_nc_oc=Adpb_7ngWmA3u4SX1WG00Z_H2Mk79tAduNyECiXRPEgcq4J2I-at60Hhgc_-JozPTSA&_nc_zt=23&_nc_ht=scontent-los4-1.xx&_nc_gid=Z1OLK1T0d6hrgVZMTpa5AA&_nc_ss=7c289&oh=00_AQOvaB7zEAMXKvSRCIvtDC3-8OD0Gs04cCYCFBxFfwMibQ&oe=6AC97980",
"followers": {
"count": 2400000,
"label": "2.4M followers"
},
"following": {
"count": 12,
"label": "12 following"
},
"likes": null,
"intro": null,
"contact": {
"phone": "+1 212-535-7710",
"email": null,
"website": "http://www.metmuseum.org/",
"address": "1000 5th Ave, New York, NY, United States, 10028"
},
"links": [
{
"type": "website",
"label": "Website",
"url": "http://www.metmuseum.org/",
"value": "http://www.metmuseum.org/"
}
],
"rating": "100% recommend (119,584 reviews)",
"isBusinessPage": false,
"otherDetails": [],
"businessHours": {
"status": "Open now"
}
},
"fetchedAt": "2026-10-05T14:43:15.154Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"details": [
{
"path": "url",
"message": "Required"
}
]
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}cache_max_age) are free.Copy for AI assistant
Copy for AI assistant
I want to make an API call to /v1/facebook/profile. Here are the details:
Endpoint: GET https://api.scraperize.com/v1/facebook/profile
Description: Fetches a public Facebook page/profile's information (from its `/about` tab): identity (name, id, url, username, verified, profile & cover photos), categories, follower/following counts, contact (phone, email, website, address), rating, and (optionally) the business hours status.
Required Headers:
- x-api-key: Your API key
Parameters:
- url (string) [required]: Public Facebook page URL, e.g. https://www.facebook.com/metmuseum
- businessHours (select): Include the business's hours status (e.g. "Open now"/"Closed now"). Default true. (Only the current status is available — not the per-day schedule.)
- includeGatedProfile (select): When true, a gated/age-restricted/unavailable page returns a limited response (`gated: true`) instead of a 404. Ignored for normal public profiles (always full). Default true.
- cache_max_age (select): Optional. Return a cached result if one this age or newer exists — served for **0 credits** with `meta.cached=true` and `meta.cachedAt`. Otherwise a fresh scrape runs (**1 credit**) and refreshes the cache. Omit to always scrape fresh.
Example Response:
{
"data": {
"gated": false,
"profile": {
"id": "100064879894574",
"name": "The Metropolitan Museum of Art, New York",
"url": "https://www.facebook.com/metmuseum",
"username": null,
"alternateName": null,
"gender": "NEUTER",
"verified": true,
"categories": [
"Art Museums"
],
"profilePictureUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s480x480&_nc_cat=103…",
"profilePicture": {
"small": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s200x200&_nc_cat=103…",
"medium": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s320x320&_nc_cat=103…",
"large": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-1/347625751_651532197019438_2073582740604276353_n.jpg?stp=dst-jpg_tt6&cstp=mx1803x1803&ctp=s480x480&_nc_cat=103…"
},
"coverPhotoUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.30808-6/481991954_1056653546507299_950545646890195151_n.jpg?stp=dst-jpg_tt6&cstp=mx2048x1365&ctp=s2048x1365&_nc_cat=1…",
"followers": {
"count": 2400000,
"label": "2.4M followers"
},
"following": {
"count": 12,
"label": "12 following"
},
"likes": null,
"intro": null,
"contact": {
"phone": "+1 212-535-7710",
"email": null,
"website": "http://www.metmuseum.org/",
"address": "1000 5th Ave, New York, NY, United States, 10028"
},
"links": [
{
"type": "website",
"label": "Website",
"url": "http://www.metmuseum.org/",
"value": "http://www.metmuseum.org/"
}
],
"rating": "100% recommend (119,584 reviews)",
"isBusinessPage": false,
"otherDetails": [],
"businessHours": {
"status": "Open now"
}
},
"fetchedAt": "2026-10-05T14:43:15.154Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}
Please help me write code in my preferred programming language to make this API call and handle the response appropriately. Include error handling and best practices.
Authorizations
Your API key. Send it in the x-api-key header (or Authorization: Bearer <key>). Create and manage keys from your dashboard.
Query Parameters
Public Facebook page URL, e.g. https://www.facebook.com/metmuseum
Include the business's hours status (e.g. "Open now"/"Closed now"). Default true. (Only the current status is available — not the per-day schedule.)
When true, a gated/age-restricted/unavailable page returns a limited response (gated: true) instead of a 404. Ignored for normal public profiles (always full). Default true.
Optional. Return a cached result if one this age or newer exists — served for 0 credits with meta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.
1d, 3d, 7d, 14d, 30d