Facebook Page API
Send a Page's username or URL and get what the Page says about itself back as JSON: name, category, follower count, intro, the contact details it lists, and its profile and cover pictures.
- 100 free credits
- No card needed
- No scraper to build or maintain
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"]What you get
- Name, username, category, the short intro and the verified badge
- The follower count, the number of Pages it follows and the number of people talking about it
- The emails and websites the Page lists, and its phone numbers and address when it lists them
- The social profiles the Page links to and its share of recommending reviewers, when the Page shows them
- Profile picture, cover photo, and the link to the Page's ads in Meta's Ad Library
- Both ids of the Page: its profile id and its classic Page id
{
"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
}
}One GET request
Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.
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). |
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.
What people build with it
Enrich a list of businesses
Turn a column of Facebook links into names, categories, emails, websites and follower counts.
Lead research
Find the contact details a business publishes on its Page before you reach out.
Track audiences over time
Call the endpoint on a schedule and store followerCount to see how a Page grows.
Check a Page
Look at the category, the verified badge and the website a Page lists before you work with whoever runs it.
Buy credits once. Use them whenever.
This endpoint costs 2 credits per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.
Each endpoint says what a request costs. Requests that return nothing are free.
- $2.42 per 1,000 credits
- About $12.08 a month at this pace
- Lasts about 2.4 months at this pace
- Credits never expire
Questions and answers
Is this the official Facebook API?
No. Pipefetch is an independent service and is not affiliated with Facebook or Meta. It returns what a Page shows to a visitor who is not logged in. You need one Pipefetch API key. There is no Facebook login, no cookie, no access token and no Meta app.
Are follower counts exact?
For most Pages, yes: you get 28723751, not "28M". A few very large Pages publish only a rounded figure, and then that figure is what you get.
Does every Page have an email and a phone number?
No. You get what the Page lists about itself. What a Page does not list comes back as null or as an empty list. Nothing is guessed, and no other source is asked.
What is not included?
Opening hours, the number of likes, the long About text and the creation date of the Page. A Page's posts, reviews, Reels and events have endpoints of their own.
What happens when a Page does not exist?
The request answers 404 page_not_found and costs nothing. Facebook hides some Pages from visitors who are not logged in, Pages limited by age or country for example, and those get the same 404.
Why does a Page cost 2 credits?
Reading a Page takes more of our resources than our other requests, and when Facebook refuses our ordinary addresses the Page is read over a residential internet connection, which costs us more. So a Page costs 2 credits. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 100 free credits without a card.
Does a Page contain personal data?
It can. A Page can belong to a person, and the email, phone number and address it lists can be a person's own. That is personal data. If you store or process it, data-protection law such as the GDPR applies to you as it would to any other source, and our terms forbid using the API to harass people or to build profiles of private individuals.
Step-by-step guides
How to get a Facebook Page's posts without app review
Your own Page needs no review and another Page needs Page Public Content Access: what Meta requires, with code, and the routes without a review.
Read the guideHow to get a Facebook Page's follower count and contact details in Python
Two routes with code: the Graph API, which needs App Review for Pages you do not manage, and an HTTP API that reads the public Page.
Read the guide
Free tools for the same data
More Facebook APIs
-
1 credit / 20
Facebook Comments API
The comments on a public Facebook post, video or Reel, with reactions by type, reply counts, authors and the post itself.
GET /v1/facebook/comments -
1 credit
Facebook Reels API
The newest Reels of a Facebook Page with plays, reactions, comments, shares and saves, captions and video file addresses.
GET /v1/facebook/reels -
1 credit
Facebook Reviews API
The newest reviews of a Facebook Page: text, recommends or not, date and reviewer, with the Page's recommend percentage.
GET /v1/facebook/reviews -
1 credit
Facebook Events API
The upcoming or past events a Facebook Page hosts, with dates, venue and address, organizers, ticket link and responses.
GET /v1/facebook/events -
2 credits
Facebook Posts API
The newest posts of a Facebook Page with text, images, reactions by type, comment and share counts, and top comments.
GET /v1/facebook/posts -
2 credits
Facebook Group Posts API
The newest posts of a public Facebook group with author, text, images, links, reactions by type and top comments.
GET /v1/facebook/group -
1 credit
Facebook Marketplace API
Facebook Marketplace listings for a search near a place: title, price, city, listing time, photo, seller and delivery.
GET /v1/facebook/marketplace
Other sources
YouTubeInstagramWebsitesTikTokGoogleThreadsLinkedInApp storesSteamXPinterestAirbnbReal estateKeywordsJob boardsEventbriteShopify storesPublic tenders
Make your first request in a minute
Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.