[Google Hotels API] Vacation rental searches miss the expanded results from surrounding areas

Open
#4,660 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Domain
api

Research direction

Start with the Google Hotels parser and the vacation_rentals=true path, then compare the saved Inspect output against the Google Hotels page. The missing data is the expanded section labelled "places that don't exactly match your search", which loads beyond the initial map area. Done means the historic wilmington nc query returns results from surrounding areas, and the search-area parameter is a separate decision for maintainers.

Written by the indexing model from the issue text.

Description

status: queued type: bug

Split from #3100, where this case was reported.

A customer searching vacation rentals for historic wilmington nc gets 3 results through the API, all strictly in the historic district, while Google Hotels with the same parameters returns 85 results by including surrounding areas:

Playground | Inspect | Google Hotels page | Intercom

Cause: Google Hotels loads an expanded results section — "places that don't exactly match your search" — beyond the initially shown map area. The API scrapes only that first, more zoomed-in view, so properties from surrounding areas never appear. The Google Hotels parser has no handling for the expanded section. The request's origin country doesn't explain the gap: both searches ran with gl=us.

What we scrape:

Scraped view: only exact matches in the zoomed-in area

What Google Hotels loads for the same query:

Expanded view including surrounding areas

Queries like "near wilmington nc", "10 miles from wilmington nc" or "close to wilmington nc" don't work around it.

The customer also suggested a parameter to control how large an area the search covers (like zooming the map out), which would be useful for vacation-rental searches especially.

Dominant language
No language data
Stars
159
Forks
58
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from serpapi/public-roadmap

All issues in serpapi/public-roadmap

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.