Facebook API

Facebook Reviews API

Send a Page's username or URL and get its newest reviews back as JSON: what each reviewer wrote, whether they recommend the Page, and the Page's overall recommend percentage.

  • 100 free credits
  • No card needed
  • No scraper to build or maintain
curl "https://pipefetch.com/v1/facebook/reviews?page=copperkettleyqr" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Up to 30 of the Page's newest reviews, newest first
  • The text of each review, its time and a direct link to it
  • Whether the reviewer recommends the Page, and the tags the reviewer picked
  • The reaction, comment and share counts of each review
  • The reviewer's public name, id, profile link and picture
  • The Page's name, its recommend percentage and its number of reviews
200 OK · application/json
{
  "data": {
    "page": {
      "id": "100064027242849",
      "name": "The Copper Kettle Restaurant",
      "url": "https://www.facebook.com/copperkettleyqr",
      "recommendPercent": 94,
      "reviewCount": 73
    },
    "reviews": [
      {
        "id": "0000000000",
        "url": "https://example.com/item",
        "isRecommended": true,
        "text": "They offers a cozy atmosphere, friendly service, and a menu of tasty comfort food at reasonable prices. It’s a great spot for casual dining.",
        "tags": [
          "Child-friendly",
          "Fast delivery"
        ],
        "createdAt": "2024-09-11T17:57:58.000Z",
        "reactionCount": 0,
        "commentCount": 0,
        "shareCount": 0,
        "reviewer": {
          "id": "0000000000",
          "name": "Example Person",
          "url": "https://example.com/profile",
          "pictureUrl": "https://example.com/avatar.jpg"
        }
      },
      {
        "id": "0000000000",
        "url": "https://example.com/item",
        "isRecommended": false,
        "text": "Normally the food from here is really good but we got pizza last night and it was somewhere in the range of sub par to just really not good. The whole…",
        "tags": [],
        "createdAt": "2024-04-11T17:40:55.000Z",
        "reactionCount": 1,
        "commentCount": 1,
        "shareCount": 0,
        "reviewer": {
          "id": "0000000000",
          "name": "Example Person",
          "url": "https://example.com/profile",
          "pictureUrl": "https://example.com/avatar.jpg"
        }
      }
    ]
  },
  "credits": {
    "used": 1,
    "remaining": 99
  }
}
Reference

One GET request

Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.

GET/v1/facebook/reviews

Costs 1 credit per request. Only requests that return data are charged.

Parameters

NameTypeDescription
pagerequired string The Page's username (natgeo), its numeric id, or its URL (https://www.facebook.com/natgeo).
limitoptional integer How many of the newest reviews to return. Default: 12. From 1 to 30.

Good to know

  • Reviews come newest first, at most 30 per request, with no paging to older ones. Facebook itself shows at most about 540 reviews of a Page to visitors who are not logged in.
  • isRecommended is true or false when Facebook states it in the review's English title line ("recommends" or "doesn't recommend"), and null when it does not.
  • page.recommendPercent and page.reviewCount are the summary on the Page's reviews tab, such as "94% recommend (73 reviews)".
  • A Page that does not exist answers 404 page_not_found, and one with no reviews, or with reviews turned off, answers 404 no_reviews. Neither costs anything.

Open the reference

Use cases

What people build with it

  • Reputation monitoring

    Call the endpoint on a schedule and act when a review id appears that you have not seen.

  • Competitor comparison

    Put the recommend percentage and the recent reviews of several businesses side by side.

  • Sentiment analysis

    Read the review texts with a language model to find what customers praise and what they complain about.

  • Customer feedback reports

    Bring a location's latest Facebook reviews into the report where its other feedback already is.

Pricing

Buy credits once. Use them whenever.

This endpoint costs 1 credit 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's reviews tab 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 there star ratings?

No. A Facebook review says whether the reviewer recommends the Page or not, so each review has isRecommended instead of stars, and the Page has a recommend percentage.

Why can isRecommended be null?

Facebook states the recommendation only in the title line of a review ("recommends" or "doesn't recommend"), and the API reads the English wording of that line. When the line does not say it, isRecommended is null and not a guess.

How many reviews can I get?

Up to 30 of the newest per request, with no paging to older ones. Facebook itself shows at most about 540 reviews of a Page to visitors who are not logged in.

What if a Page has no reviews?

A Page with no reviews, or with reviews turned off, answers 404 no_reviews, and a Page that does not exist answers 404 page_not_found. Neither is charged.

What does a request cost?

One request costs 1 credit. 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.

Do reviews contain personal data?

Yes. They carry the public names, profile links and pictures of the people who wrote them, which 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.

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.