Page details
The public details of a Facebook Page: category, followers, email, phone, website, address, social links and pictures.
Try it in the dashboard 100 free credits when you sign up, no card.
GET/v1/facebook/page
Costs 2 credits per request. Only requests that return data are charged.
Parameters
| Name | Type | Description |
|---|---|---|
pagerequired |
string | The Page's username (nasa), its numeric id, or its URL (https://www.facebook.com/nasa). |
Example request
curl "https://pipefetch.com/v1/facebook/page?page=nasa" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://pipefetch.com/v1/facebook/page?page=nasa', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/facebook/page",
params={"page": "nasa"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]Example response
A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.
{
"data": {
"id": "100044561550831",
"pageId": "54971236771",
"name": "NASA - National Aeronautics and Space Administration",
"username": "NASA",
"url": "https://www.facebook.com/NASA",
"type": "PAGE",
"category": "Government organization",
"categories": [
"Government organization"
],
"intro": "Explore the universe and discover our home planet. \nThere's space for everybody. ✨",
"isVerified": true,
"followerCount": 28723751,
"followingCount": 53,
"talkingAboutCount": 41076,
"email": "public-inquiries@hq.nasa.gov",
"emails": [
"public-inquiries@hq.nasa.gov"
],
"phone": null,
"phones": [],
"website": "http://www.nasa.gov/",
"websites": [
"http://www.nasa.gov/",
"https://www.nasa.gov/nasa-app/"
],
"address": null,
"latitude": null,
"longitude": null,
"recommendPercent": null,
"reviewCount": null,
"socialLinks": [],
"pictureUrl": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png?stp=dst-png&cstp=mx800x800&ctp=s480x480&_nc_cat…",
"coverPhotoUrl": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.99422-6/809146614_4484013928506139_3181913787670602881_n.png?stp=dst-jpg_tt6&cstp=mx2047x1487&ctp=s2047x148…",
"adLibraryUrl": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=54971236771"
},
"credits": {
"used": 2,
"remaining": 98
}
}Good to know
- A Page costs 2 credits: reading it takes more of our resources than the other requests, and when Facebook refuses our ordinary addresses it is read over a residential internet connection, which costs us more.
- Emails, phone numbers, websites, the address and the social links are what the Page lists about itself. What a Page does not list is null or an empty list.
- followerCount is the number Facebook publishes: exact for most Pages (28723751), a rounded figure for a few very large ones.
- Opening hours, the number of likes, the long About text and the Page's creation date are not included. The pictures are Facebook's own signed links and stop working after a while.
- A Page that does not exist, or that Facebook shows only to people who are logged in (Pages limited by age or country, for example), answers 404 page_not_found and costs nothing.
Errors
Every error has the same shape, and none of them is charged. The full list is in the error reference.
Looking for an overview and use cases? See the Facebook Page API page.