Agoda Hotel Reviews Scraper: scrape guest reviews from Agoda hotel pages by URL or numeric hotel id. Get one row per review: rating, text, positives, negatives, dates, reviewer country, trip group, room type, stay length and photos. We handle blocks and retries.
Reviews via the hotel-page feed POST /api/cronos/property/review/ReviewComments; hotelId from the hotel page (hotelId:(\d+)), numeric ids skip the page GET.
Pagination: flat-int page, pageSize 20 returns up to 40 rows (providers 332 + 3038). No total count in the feed: stop on an empty page, a page with zero unseen hotelReviewId, a short page (< 20 new rows) or maxReviews.
url is the input URL, or https://www.agoda.com + the feed's own reviewPageUrl for id inputs (the hotel page carries no canonical link or og:url).
Verified sort mapping
Probed with the 5-request budget (1 page GET + 4 POSTs, Marina Bay Sands id 185945, chrome131, direct, no proxy):
sort: "recent", 2, 3 and 7 returned a byte-identical body (md5 equal), with selectedSortOption: 0 and
provider-332 dates not monotonic. The sort body key is therefore ignored by the feed. The page's own sort ids
are 1 Most recent, 2 Rating high to low, 3 Rating low to high, 7 Most helpful, but the body key that selects them
was not found within the budget.
VERIFIED: none as an ordering. recent is exposed as "Agoda default order" (the feed default).
UNVERIFIED (omitted from the schema enum): rating high/low, most helpful. Next probe: alternative body keys
(sortOption, sorting, reviewFilterAndSort[].selectedSortingOption).
Notes
providerList[].totalIndex in the feed (21442 for 332, 5666 for 3038 on 185945) is a per-provider total; not used for stop logic.
Fixtures: reviews_recent_p1.trimmed.json and hotel_page.trimmed.html are real captures (reviewer display names blanked). reviews_empty.DERIVED.json and challenge_body.DERIVED.html are DERIVED, not captured.