Skip to content
looot docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

SearchAPI.io - Facebook Business Page Reviews API

SearchAPI.io tool searchapi-io-facebook-business-page-reviews on looot: input fields, $0.004 per call, output shape, and code to run it with curl, JavaScript or Python.

Retrieve public recommendations left on a Facebook Business Page, including the review text, whether the reviewer recommends the business, the reviewer’s profile, attached images, reactions, and comment threads. Facebook reviews are recommendations rather than star ratings, so each review reports recommendation (“recommends” or “doesn’t recommend”) instead of a numeric score. The page-level rating follows the same model: it is the percentage of reviewers who recommend the business, from 0 to 100, and not a score out of 5. These fields match the about.ratings, about.rating, and about.reviews_count fields of the Facebook Business Page API. Cross-linking: page_id and username are the same identifiers used by the Facebook Business Page API, so a page located there can be passed straight to this API. The page object returned on the first page mirrors the page object of the Facebook Business Page API. Paginate with pagination.next_page_token; token-based pages return reviews only and omit page, rating, and reviews_count. Send one of: page_id, username, url.

Inputs

Name Type Required Description
engine string no Fixed to “facebook_business_page_reviews” for this endpoint. Example: “facebook_business_page_reviews”
next_page_token string no
page_id string no
url string no
username string no

Output

The run’s result holds the provider’s answer. Signed in, looot inspect searchapi-io-facebook-business-page-reviews prints its fields.

Run it

Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.

Example input with placeholder values:

curl -X POST "https://api.looot.ai/v1/runs" \
  -H "Authorization: Bearer $LOOOT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"endpointId":"searchapi-io-facebook-business-page-reviews","input":{"engine":"facebook_business_page_reviews","page_id":"<page_id>"},"wait":30}'
const response = await fetch("https://api.looot.ai/v1/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    endpointId: "searchapi-io-facebook-business-page-reviews",
    input: {
      engine: "facebook_business_page_reviews",
      page_id: "<page_id>",
    },
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
import os
import uuid

import requests

response = requests.post(
    "https://api.looot.ai/v1/runs",
    headers={
        "Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "endpointId": "searchapi-io-facebook-business-page-reviews",
        "input": {
            "engine": "facebook_business_page_reviews",
            "page_id": "<page_id>",
        },
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))

To let looot pick among every provider of this job instead, send job:search.facebook-business-page-reviews as endpointId; see the job page.

Was this page helpful?