Get reviews into a spreadsheet

Collect public reviews and ratings as records, then write them to a CSV file that opens in Excel, Numbers or Google Sheets.

How it works

Each review comes back as one record with its text, its date, its rating where the site gives one, and the hotel, restaurant, game or brand it belongs to.

The API answers in JSON. The two calls below start a run, then read its records and turn them into CSV with jq, one line per review.

One call

Twenty guest reviews of one hotel on Agoda, saved as reviews.csv. Agoda Reviews costs $0.50 per 1,000 records; zero records cost zero.

Endpoint
POSThttps://pullrow.dev/v1/apis/agoda-reviews-monitor/run
curl and jq
# 1. Start the run and keep its id
RUN_ID=$(curl -s -X POST "https://pullrow.dev/v1/apis/agoda-reviews-monitor/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"hotel_urls":["286114"],"max_reviews_per_hotel":20},"max_items":20}' | jq -r '.run.id')

# 2. Read its records and write one CSV line per review
curl -s "https://pullrow.dev/v1/runs/$RUN_ID/records?limit=1000" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  | jq -r '.records[] | [.hotelName, .rating, .reviewDate, .title, .text] | @csv' > reviews.csv
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • You pay for records returned. Zero records cost zero.
  • The full list of fields and inputs is on the API's page.
Calling it needs a key
5,000 free records to start. No card.

What it does not do

  • There is no CSV download: the API answers in JSON and the jq line writes the CSV. Fields that hold lists, such as photos or tags, have to be picked out or joined first.
  • A run that takes longer than the first answer keeps going on the server. The second call reads the records saved so far, so run it again once the run has finished (GET /v1/runs/{id} shows its status).
  • Only reviews a visitor can read without logging in.
  • If a site shows a bot check, the run stops there, says so and charges nothing.