Profile photos
curl --request GET \
--url https://api.scraperize.com/v1/facebook/profile/photos \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraperize.com/v1/facebook/profile/photos"
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/photos', 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/photos",
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/photos"
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/photos")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraperize.com/v1/facebook/profile/photos")
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": {
"photos": [
{
"photoId": "1757191975767335",
"id": "YXBwX2l0ZW06MTAwMDQ0Mjk2NDg2MzgyOjIzMDUyNzI3MzI6NTo6MTc1NzE5MTk3NTc2NzMzNQ==",
"url": "https://www.facebook.com/photo.php?fbid=1757191975767335&set=pb.100044296486382.-2207520000&type=3",
"imageUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/829136203_1608902097576513_7516733035385102623_n.png?stp=dst-jpg_tt6&cstp=mx1332x1666&ctp=s1332x1666&_nc_cat=108&ccb=1-7&_nc_sid=127cfc&_nc_ohc=brEMrIn3F6cQ7kNvwE-St8X&_nc_oc=Adp48Ccw1u9OFN2TUxPeIbyWf_hSkNlZdRDn9R1e1nhhHy6DaQ4rn5upYwyPEdvK4Cc&_nc_zt=14&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQMykKJPMtwuIogw62LcmWIOoh7LvHitOiECMbnd9ISTrA&oe=6AC97B15",
"thumbnailUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/829136203_1608902097576513_7516733035385102623_n.png?stp=c0.110.1332.1332a_dst-jpg_tt6&cstp=mx1332x1332&ctp=s552x414&_nc_cat=108&ccb=1-7&_nc_sid=714c7a&_nc_ohc=brEMrIn3F6cQ7kNvwE-St8X&_nc_oc=Adp48Ccw1u9OFN2TUxPeIbyWf_hSkNlZdRDn9R1e1nhhHy6DaQ4rn5upYwyPEdvK4Cc&_nc_zt=14&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQNMSXSfzh21QqkfcKl_FRSsWCjj76eMb8Y8Uwn0kbzrrg&oe=6AC97B15",
"caption": "May be an image of American football and football",
"width": 1332,
"height": 1666,
"immersivePhotoEncodings": []
},
{
"photoId": "1756147572538442",
"id": "YXBwX2l0ZW06MTAwMDQ0Mjk2NDg2MzgyOjIzMDUyNzI3MzI6NTo6MTc1NjE0NzU3MjUzODQ0Mg==",
"url": "https://www.facebook.com/photo.php?fbid=1756147572538442&set=pb.100044296486382.-2207520000&type=3",
"imageUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/825292799_2398776584216276_169291896869886441_n.png?stp=dst-jpg_tt6&cstp=mx1330x1664&ctp=s1330x1664&_nc_cat=107&ccb=1-7&_nc_sid=127cfc&_nc_ohc=8kfZoLbdzeIQ7kNvwE7vvlB&_nc_oc=AdqcfLuGPQ2VplNk2O_smW0WH1dFmFhHrL9e2Q7xYRJRbh5XwO-PdSbwwJ70oJcg5Zs&_nc_zt=14&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQNcUIT1N9LjIedhGbjc6SdZQDbyI3XQUrZL8lqOQbt_Mw&oe=6AC973DE",
"thumbnailUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/825292799_2398776584216276_169291896869886441_n.png?stp=c0.110.1330.1330a_dst-jpg_tt6&cstp=mx1330x1330&ctp=s552x414&_nc_cat=107&ccb=1-7&_nc_sid=714c7a&_nc_ohc=8kfZoLbdzeIQ7kNvwE7vvlB&_nc_oc=AdqcfLuGPQ2VplNk2O_smW0WH1dFmFhHrL9e2Q7xYRJRbh5XwO-PdSbwwJ70oJcg5Zs&_nc_zt=14&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQPSrk-yetV-Tn2JHFuCt4El_4ZtGN4j9ectwwa4MnGhaA&oe=6AC973DE",
"caption": "May be an image of text",
"width": 1330,
"height": 1664,
"immersivePhotoEncodings": []
},
{
"photoId": "1751351019684764",
"id": "YXBwX2l0ZW06MTAwMDQ0Mjk2NDg2MzgyOjIzMDUyNzI3MzI6NTo6MTc1MTM1MTAxOTY4NDc2NA==",
"url": "https://www.facebook.com/photo.php?fbid=1751351019684764&set=pb.100044296486382.-2207520000&type=3",
"imageUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t51.82787-15/823964759_18776515597056421_2004768802209950397_n.jpg?stp=dst-jpg_tt6&cstp=mx1066x1331&ctp=s1066x1331&_nc_cat=1&ccb=1-7&_nc_sid=127cfc&_nc_ohc=q0dAS7IEm1QQ7kNvwGNkumT&_nc_oc=Adq0tjjlvEEkaFxBCs0mTHMvAXLlkao9KXYzd5TfNrpPwx9lQS4CYkwFhZBIPd7v05M&_nc_zt=23&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQP-MzuXcUKOaY1zkEqbbmkgBnaG5zo9dhqjMYoAeFUiNA&oe=6AC9A239",
"thumbnailUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t51.82787-15/823964759_18776515597056421_2004768802209950397_n.jpg?stp=c0.87.1066.1066a_dst-jpg_tt6&cstp=mx1066x1066&ctp=s552x414&_nc_cat=1&ccb=1-7&_nc_sid=714c7a&_nc_ohc=q0dAS7IEm1QQ7kNvwGNkumT&_nc_oc=Adq0tjjlvEEkaFxBCs0mTHMvAXLlkao9KXYzd5TfNrpPwx9lQS4CYkwFhZBIPd7v05M&_nc_zt=23&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQOQWFyEW5g54W9WYAev9ThWFOHXqGZ7ud9mOnc7IvlW-A&oe=6AC9A239",
"caption": "May be an image of American football, football and text",
"width": 1066,
"height": 1331,
"immersivePhotoEncodings": []
}
],
"photoCount": 8,
"paging": {
"cursor": "AQHTRjC48UiFn4TeEPBQiN4izjRExJM4D6Mj5LmhWoyebqFUEqr5UUsbObY6TyDWHmVIiI9cbHYjm9G9xC3-qHF83w",
"hasNextPage": true
},
"fetchedAt": "2026-10-05T14:42:43.026Z"
},
"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"
}
}Facebook
Profile photos
Fetches a public Facebook page’s photos (from its /photos tab). Returns the first page plus a paging.cursor / paging.hasNextPage for the next page.
GET
/
v1
/
facebook
/
profile
/
photos
Profile photos
curl --request GET \
--url https://api.scraperize.com/v1/facebook/profile/photos \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraperize.com/v1/facebook/profile/photos"
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/photos', 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/photos",
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/photos"
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/photos")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraperize.com/v1/facebook/profile/photos")
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": {
"photos": [
{
"photoId": "1757191975767335",
"id": "YXBwX2l0ZW06MTAwMDQ0Mjk2NDg2MzgyOjIzMDUyNzI3MzI6NTo6MTc1NzE5MTk3NTc2NzMzNQ==",
"url": "https://www.facebook.com/photo.php?fbid=1757191975767335&set=pb.100044296486382.-2207520000&type=3",
"imageUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/829136203_1608902097576513_7516733035385102623_n.png?stp=dst-jpg_tt6&cstp=mx1332x1666&ctp=s1332x1666&_nc_cat=108&ccb=1-7&_nc_sid=127cfc&_nc_ohc=brEMrIn3F6cQ7kNvwE-St8X&_nc_oc=Adp48Ccw1u9OFN2TUxPeIbyWf_hSkNlZdRDn9R1e1nhhHy6DaQ4rn5upYwyPEdvK4Cc&_nc_zt=14&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQMykKJPMtwuIogw62LcmWIOoh7LvHitOiECMbnd9ISTrA&oe=6AC97B15",
"thumbnailUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/829136203_1608902097576513_7516733035385102623_n.png?stp=c0.110.1332.1332a_dst-jpg_tt6&cstp=mx1332x1332&ctp=s552x414&_nc_cat=108&ccb=1-7&_nc_sid=714c7a&_nc_ohc=brEMrIn3F6cQ7kNvwE-St8X&_nc_oc=Adp48Ccw1u9OFN2TUxPeIbyWf_hSkNlZdRDn9R1e1nhhHy6DaQ4rn5upYwyPEdvK4Cc&_nc_zt=14&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQNMSXSfzh21QqkfcKl_FRSsWCjj76eMb8Y8Uwn0kbzrrg&oe=6AC97B15",
"caption": "May be an image of American football and football",
"width": 1332,
"height": 1666,
"immersivePhotoEncodings": []
},
{
"photoId": "1756147572538442",
"id": "YXBwX2l0ZW06MTAwMDQ0Mjk2NDg2MzgyOjIzMDUyNzI3MzI6NTo6MTc1NjE0NzU3MjUzODQ0Mg==",
"url": "https://www.facebook.com/photo.php?fbid=1756147572538442&set=pb.100044296486382.-2207520000&type=3",
"imageUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/825292799_2398776584216276_169291896869886441_n.png?stp=dst-jpg_tt6&cstp=mx1330x1664&ctp=s1330x1664&_nc_cat=107&ccb=1-7&_nc_sid=127cfc&_nc_ohc=8kfZoLbdzeIQ7kNvwE7vvlB&_nc_oc=AdqcfLuGPQ2VplNk2O_smW0WH1dFmFhHrL9e2Q7xYRJRbh5XwO-PdSbwwJ70oJcg5Zs&_nc_zt=14&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQNcUIT1N9LjIedhGbjc6SdZQDbyI3XQUrZL8lqOQbt_Mw&oe=6AC973DE",
"thumbnailUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/825292799_2398776584216276_169291896869886441_n.png?stp=c0.110.1330.1330a_dst-jpg_tt6&cstp=mx1330x1330&ctp=s552x414&_nc_cat=107&ccb=1-7&_nc_sid=714c7a&_nc_ohc=8kfZoLbdzeIQ7kNvwE7vvlB&_nc_oc=AdqcfLuGPQ2VplNk2O_smW0WH1dFmFhHrL9e2Q7xYRJRbh5XwO-PdSbwwJ70oJcg5Zs&_nc_zt=14&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQPSrk-yetV-Tn2JHFuCt4El_4ZtGN4j9ectwwa4MnGhaA&oe=6AC973DE",
"caption": "May be an image of text",
"width": 1330,
"height": 1664,
"immersivePhotoEncodings": []
},
{
"photoId": "1751351019684764",
"id": "YXBwX2l0ZW06MTAwMDQ0Mjk2NDg2MzgyOjIzMDUyNzI3MzI6NTo6MTc1MTM1MTAxOTY4NDc2NA==",
"url": "https://www.facebook.com/photo.php?fbid=1751351019684764&set=pb.100044296486382.-2207520000&type=3",
"imageUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t51.82787-15/823964759_18776515597056421_2004768802209950397_n.jpg?stp=dst-jpg_tt6&cstp=mx1066x1331&ctp=s1066x1331&_nc_cat=1&ccb=1-7&_nc_sid=127cfc&_nc_ohc=q0dAS7IEm1QQ7kNvwGNkumT&_nc_oc=Adq0tjjlvEEkaFxBCs0mTHMvAXLlkao9KXYzd5TfNrpPwx9lQS4CYkwFhZBIPd7v05M&_nc_zt=23&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQP-MzuXcUKOaY1zkEqbbmkgBnaG5zo9dhqjMYoAeFUiNA&oe=6AC9A239",
"thumbnailUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t51.82787-15/823964759_18776515597056421_2004768802209950397_n.jpg?stp=c0.87.1066.1066a_dst-jpg_tt6&cstp=mx1066x1066&ctp=s552x414&_nc_cat=1&ccb=1-7&_nc_sid=714c7a&_nc_ohc=q0dAS7IEm1QQ7kNvwGNkumT&_nc_oc=Adq0tjjlvEEkaFxBCs0mTHMvAXLlkao9KXYzd5TfNrpPwx9lQS4CYkwFhZBIPd7v05M&_nc_zt=23&_nc_ht=scontent-los4-1.xx&_nc_gid=CLv-XRr6wBQXdDa5RgOchg&_nc_ss=7c289&oh=00_AQOQWFyEW5g54W9WYAev9ThWFOHXqGZ7ud9mOnc7IvlW-A&oe=6AC9A239",
"caption": "May be an image of American football, football and text",
"width": 1066,
"height": 1331,
"immersivePhotoEncodings": []
}
],
"photoCount": 8,
"paging": {
"cursor": "AQHTRjC48UiFn4TeEPBQiN4izjRExJM4D6Mj5LmhWoyebqFUEqr5UUsbObY6TyDWHmVIiI9cbHYjm9G9xC3-qHF83w",
"hasNextPage": true
},
"fetchedAt": "2026-10-05T14:42:43.026Z"
},
"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"
}
}Cost: 1 credit per successful request. Errors and cache hits (
cache_max_age) are free.Copy for AI assistant
Copy for AI assistant
Paste this into ChatGPT, Claude or your coding assistant to generate working code for this endpoint (use the copy button).
Prompt
I want to make an API call to /v1/facebook/profile/photos. Here are the details:
Endpoint: GET https://api.scraperize.com/v1/facebook/profile/photos
Description: Fetches a public Facebook page's photos (from its `/photos` tab). Returns the first page plus a `paging.cursor` / `paging.hasNextPage` for the next page.
Required Headers:
- x-api-key: Your API key
Parameters:
- url (string) [required]: Public Facebook page URL, e.g. https://www.facebook.com/Cristiano
- cursor (string): The `paging.cursor` from a previous call, to fetch the next page.
- 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": {
"photos": [
{
"photoId": "1757191975767335",
"id": "YXBwX2l0ZW06MTAwMDQ0Mjk2NDg2MzgyOjIzMDUyNzI3MzI6NTo6MTc1NzE5MTk3NTc2NzMzNQ==",
"url": "https://www.facebook.com/photo.php?fbid=1757191975767335&set=pb.100044296486382.-2207520000&type=3",
"imageUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/829136203_1608902097576513_7516733035385102623_n.png?stp=dst-jpg_tt6&cstp=mx1332x1666&ctp=s1332x1666&_nc_cat=…",
"thumbnailUrl": "https://scontent-los4-1.xx.fbcdn.net/v/t39.99422-6/829136203_1608902097576513_7516733035385102623_n.png?stp=c0.110.1332.1332a_dst-jpg_tt6&cstp=mx1332x1332&ctp=s…",
"caption": "May be an image of American football and football",
"width": 1332,
"height": 1666,
"immersivePhotoEncodings": []
}
],
"photoCount": 8,
"paging": {
"cursor": "AQHTRjC48UiFn4TeEPBQiN4izjRExJM4D6Mj5LmhWoyebqFUEqr5UUsbObY6TyDWHmVIiI9cbHYjm9G9xC3-qHF83w",
"hasNextPage": true
},
"fetchedAt": "2026-10-05T14:42:43.026Z"
},
"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/Cristiano
The paging.cursor from a previous call, to fetch the next page.
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.
Available options:
1d, 3d, 7d, 14d, 30d