Facebook API

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"
The response

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
200 OK · application/json
{
  "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
  }
}
Reference

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

NameTypeDescription
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.

Open the reference

Use cases

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.

Pricing

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.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit
2,500requests at 2 credits

Each endpoint says what a request costs. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $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
Start with 100 free credits

See all packs and what a credit buys

FAQ

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.

Guides

Step-by-step guides

Free tools

Free tools for the same data

More

More Facebook APIs

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.