Reviews API: How to Get All Reviews For a Business (Python, Node.js and cURL)
You call a reviews API, the request works first time and the JSON looks great.
Then you count the reviews and surprise, only five came back, even though the business has 2,000. But there's no page parameter to raise and no setting you missed. Yep, the cap is there on purpose.
That's fine if all you need is a snippet beside a listing. It's no use if you're building something that needs the whole history, like a reputation dashboard, a sentiment model or a tracker for a client's competitors.
This guide shows you another way: how to collect every publicly available review for a business as clean JSON, with working code in cURL, Python and Node.js.
Let’s dive in ⬇️
Why a reviews API only gives you a few reviews
Platforms' own public endpoints are built for showing a few reviews next to a listing, not for collecting a full history. Here's what three of the biggest return:
Google Places API
A maximum of 5 reviews per place, sorted by relevance. Asking for the reviews field also bills the request under Place Details Enterprise + Atmosphere, the highest of its Place Details pricing tiers.
Yelp Places API
Up to 3 review excerpts per business on the Enhanced plan and up to 7 on Premium, each limited to the first 160 characters. The Base plan includes no review excerpts at all. The reviews endpoint returns them in Yelp's default sort order, so you don't get to choose which ones come back.
Tripadvisor Content API
Up to 5 of the most recent reviews per location.
What about the Google Business Profile API?
The full history usually does exist in an API, but it will be the owner's API. Google's Business Profile API, for example, can list all of the reviews for a location, but it's built for managing your own business profiles, and it isn't open by default.
You apply for access first: your quota stays at 0 requests per minute until Google approves your project, and applications are reviewed within 14 days.
So if you need every review for a business you don't own, such as a competitor, a client's rivals or a market you're researching, you're choosing between four options. ⬇️
What are your options for getting review data?
What do you need to use a reviews API?
You need three things to use the Datashake Reviews API:
- An API key with your account's base URL,
- A callback URL where the reviews can be sent
- And any language or tool that can make HTTPS requests.
An API key and your base URL
Start a free trial (20 searches on any of our 150+sources, no card needed). Once your account is verified, create your key in the dashboard. Your base URL is shown next to it, and it's specific to your account.
A callback URL
Every job needs one. It's an endpoint on your side where we send the reviews when the job finishes. It has to be reachable from the internet: localhost and private IP addresses won't work. While you're building, two shortcuts help:
- Use a temporary URL from a request inspection service as your callback, run a small job, and you'll see exactly what we send: headers, JSON body, every field.
- Expose your local endpoint with a tunnelling tool, so you can test your real handler without deploying it.
A supported runtime
The examples use:
- cURL, plus jq if you want to read the JSON comfortably
- Python 3.11 or later with requests (and httpx for the async example). Python 3.10 reached end of life on 1 October 2026, so it no longer gets security fixes.
- Node.js 22 or later. fetch is built in and has been stable since Node 21, so there's nothing to install. Node 20 reached end of life in April 2026.
Step 1: Find the business and check the URL
Before you write any request code, make sure you have the right business and a URL we can use. This is where a lot of the work in a reviews integration goes, and a bad link is one of the easiest first-job failures to avoid.
🔗 If you already have the link
Copy the business's main review page, not a link to one review.
Sites format their links differently, sp if a link isn't accepted, that's the first thing to check. A link that redirects or points to a page that no longer exists will come back with the status invalid_url.
📌 If you only have a name and address
Use the Location Search API. Send a business name and as much of its address as you have, and it finds the matching review pages for you. It works best for businesses with a physical address, such as shops, hotels and clinics.
Location Search has its own base URL, which you'll find in the dashboard alongside the others. It's asynchronous too. It replies straight away with a request_id and posts the matching review pages to your callback, ready to pass to the Reviews API.
Two things are worth knowing before you rely on it:
- Accuracy and volume pull against each other. The more detail you send, the more accurate the matches, but the fewer you'll get. Every result has a ranking, and min_ranking (medium by default) drops the weaker ones.
- Extra pages are free. Results arrive a page at a time, and requesting further pages doesn't use credits.
Step 2: Send the request
You send the review page URL and your callback URL to POST /api/v2/profiles/add. We reply straight away with a job_id and start collecting in the background. Hold on to the job_id: it's your reference for everything that follows.
Three things not to miss
- Your API key goes in the x-api-key header. Not in the URL, and not in client-side code.
- The review page URL goes in the JSON body as url. It's required. A missing or malformed field is the most common error you'll see, a 400 Bad Request, and the message tells you what's wrong.
- So does a callback URL. It's required too, and it's where your reviews arrive.
cURL
Python
Node.js
Save this as add-review-page.mjs so top-level await works:
Three optional fields worth knowing
- external_identifier: your own ID for the job, up to 255 characters. We send it back with the results, so reviews match straight to your records.
- from_date: only collect reviews posted on or after a date (YYYY-MM-DD).
- diff: the ID of an earlier job for the same page, so we only collect reviews posted since. You can't use from_date and diff together. More on diff below.
Don't let the call block your app
A network call can take time, so it's good practice not to let it hold up the rest of your code.
In Node.js, fetch is already non-blocking: just await it inside an async function. In Python, requests is synchronous, so if you're working in an async app, use httpx's AsyncClient instead:
Got a whole list of pages? Send them in one request with add_bulk instead.
Step 3: Get the reviews back
When the job reaches a final status (complete, failed or invalid_url), we POST the job details and every review to your callback URL. You don't need to poll.
How long does it take?
A job takes from a few minutes to a few hours, mostly depending on how many reviews there are to collect. A café with 200 reviews is quicker than a hotel chain's flagship with 20,000. Timing also varies from one source to another.
How do you build a reliable callback receiver?
The pattern that works for any webhook applies here: reply with a 2xx straight away, then do the real work in the background. Your endpoint should reply quickly with a 2xx status, then process the data.
It's also worth expecting more than one delivery for a job. If you set reviews_chunk_size, a big job arrives across several callbacks, so append the reviews rather than replacing what you have, and use datashake_review_uuid to skip any you've already stored.
Flask:
Express:
Two options make the receiver safer. callback_parameters lets you add your own headers, query parameters or a key to every callback, so your endpoint can check the request came from us. reviews_chunk_size splits large jobs into smaller deliveries. Both go in the JSON body of your original request.
Check progress without fetching the reviews
Want to know how a job is doing? GET /api/v2/profiles/info returns its status and progress, plus details from the review page itself, such as its review count and average rating:
One field deserves a closer look. percentage_complete compares the reviews we saved with the number the page shows, and a complete job can finish below 100% because some sites don't show every review publicly. That's why we say every publicly available review: if a site hides some, nobody can collect them.
If a callback ever goes missing, GET /api/v2/profiles/jobs lists your jobs and lets you filter them by crawl_status or creation date.
How do you fetch the reviews again later?
The callback already holds every review, but you can fetch them again by job ID with GET /api/v2/profiles/reviews. Results come in pages: per_page defaults to 20 and goes up to 100, and page starts at 1. Add allow_response=true to include owner replies.
We keep jobs for a limited time, so store what you need rather than treating the API as your database.
What comes back: the review schema
The Datashake Reviews API returns every review in the same format, whichever site it came from. So you write one parser instead of one per source. Base your data model on the review schema and it’ll still fit when you add more sources later.
Here's one review using sample data:
The fields you'll use most
Avoid these three bugs
- meta_data is a JSON string, not an object. Parse it before you use it. What's inside varies by site.
- Review text can contain basic HTML. Some sites include line breaks and bold headings, so strip or render it before you display or analyse it.
- Deduplicate on datashake_review_uuid. It stays the same across jobs, so it's the safe key for your table. The page has its own stable ID too, datashake_profile_uuid.
One more thing to keep in mind as you design your storage: reviewer names count as personal data under Article 4 of the GDPR. It's good practice to store only the reviewer fields you actually need.
What should you do when a reviews API request fails?
The majority of first-job problems come down to a handful of status codes. Here's what each one means and what to do about it.
Every request gets an ID, returned as request_id or job_id. If something doesn't make sense, send it to us and we can see exactly what happened.
How to handle rate limits
We limit how many requests you can send per second and how many jobs you can run at once. Go over them and you get a 429, which just means slow down.
The usual way to handle it is to wait and retry, a little longer each time, with some randomness so parallel workers don't all retry at the same moment. If a response includes a Retry-After header, respect it:
If you're sending a long list of pages, add_bulk sends them all in one request, with a job for each, instead of a loop of single calls.
How to keep your reviews current?
To keep your reviews up to date, run one full job per page, then collect only the new reviews on repeat.
First, once per page: a full job. It collects every review the page shows, as far back as it goes. Add from_date if you only care about recent reviews.
Then, on repeat: only what's new. Pass the last job's ID as diff and we collect only the reviews posted since:
There's one catch. A diff picks up new reviews, not edits to old ones or deletions. To catch those, run a full job again every so often and remove duplicates with datashake_review_uuid. And since we keep jobs for a limited time, base your diff on a recent job.
Let the Scheduling API run it for you
You could write a cron job for this, but you don't have to. The Datashake Scheduling API reruns Reviews and Location Search requests daily, or within a custom schedule.
A few details:
- Scheduling itself is free: you only use credits for the jobs it creates.
- You don't add your API key to the scheduled request. We add it for you.
- A schedule pauses itself if a run fails 10 times in a row or you run out of credits. Set disabled to false to restart it.
- You can rename, pause and restart a schedule, but not change what it runs. To change the request, delete the schedule and create a new one.
Try Datashake Reviews API free today
The quickest way to see whether this fits your project is to run it on a real page. Sign up for a free trial of Datashake to get 20 searches on any source, with your own data and no card.
Once your account is verified, you’ll be able to see our full docs for:
- the full list of sources we cover, plus an endpoint that returns it
- every parameter and filter, including options for specific sources
- your rate limits, and how many credits each type of request uses
- source status, so you can see how each source is running, plus the changelog
FAQ
Can I get more than 5 reviews from a reviews API?
Yes, but usually not from a platform's own public endpoint, which typically caps reviews at three to seven per business. A managed reviews API such as Datashake collects every publicly available review on a page and returns them in pages of up to 100.
Can I get reviews for a business I don't own?
Yes. Datashake collects publicly available reviews from any review page you send. Owner APIs are different: they return a full history, but only for businesses you own or manage.
How long does it take to get the reviews?
A job takes from a few minutes to a few hours, mostly depending on how many reviews there are to collect. The reviews arrive at your callback URL when the job finishes, so you don't need to keep checking.
Will I be rate-limited?
There are limits on requests per second and on how many jobs run at once, and they depend on your plan. If you go over, you'll get a 429 Too Many Requests. Wait briefly and retry.
Can I get the owner's replies too?
Yes. Replies come in the response field.
Can I reply to reviews through the API?
No. The Reviews API is read-only. To reply, use the platform's own tools or owner API.
How do I get only new reviews?
Pass the ID of your last job for that page as diff. We'll collect only the reviews posted since that job.


