Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Google Maps API] Scrape official site tag for hotels #2457

Open
alexbarron opened this issue Mar 6, 2025 · 4 comments
Open

[Google Maps API] Scrape official site tag for hotels #2457

alexbarron opened this issue Mar 6, 2025 · 4 comments
Assignees
Labels
status: queued Ready to work on type: improvement Something needs to be improved

Comments

@alexbarron
Copy link

Google Maps will show hotel rates with links to various sites to book. They tag the official hotel website with an "Official site" or "Official website" tag depending on the locale. We scrape and return this in the Google Hotels API as official=true, but we're missing this in the Google Maps API.

Google Maps:

Image

Our results:

Image

Public links: Playground

Internal links: Intercom | Search Inspect

@alexbarron alexbarron added status: queued Ready to work on type: improvement Something needs to be improved labels Mar 6, 2025
@sonika-serpapi
Copy link

This information is available in the Google Hotels Property Details API. The same customer asked if there is a way to link the place_id from Google Maps response to a parameter in the Google Hotel Property Details API?

@tanys123
Copy link

tanys123 commented Mar 7, 2025

The same customer asked if there is a way to link the place_id from Google Maps response to a parameter in the Google Hotel Property Details API?

Image Image

That would be cool but doesn't seem able to do so.

@btaunt btaunt self-assigned this Mar 7, 2025
@sonika-serpapi
Copy link

Thank you @tanys123! I looked into this a bit more, and I see the place_id is available in Google Hotels HTML in the reviews part. Is it possible to link using that?

This place_id appears in the Google Maps API response for this hotel.
Example in our playground: https://serpapi.com/playground?engine=google_maps&q=The+Ritz-Carlton%2C+Bali&ll=%4040.7455096%2C-74.0083012%2C14z&hl=en&type=search

Image

place_id for the same hotel in Google Hotels in browser:
https://www.google.com/travel/search?q=ritz%20carlton%20bali&g2lb=4965990%2C4969803%2C72277293%...

Image

@tanys123
Copy link

I looked into this a bit more, and I see the place_id is available in Google Hotels HTML in the reviews part. Is it possible to link using that?

This place_id appears in the Google Maps API response for this hotel. Example in our playground: https://serpapi.com/playground?engine=google_maps&q=The+Ritz-Carlton%2C+Bali&ll=%4040.7455096%2C-74.0083012%2C14z&hl=en&type=search

Image `place_id` for the same hotel in Google Hotels in browser: [https://www.google.com/travel/search?q=ritz%20carlton%20bali&g2lb=4965990%2C4969803%2C72277293%...](https://www.google.com/travel/search?q=ritz%20carlton%20bali&g2lb=4965990%2C4969803%2C72277293%2C72302247%2C72317059%2C72406588%2C72414906%2C72421566%2C72471280%2C72472051%2C72481459%2C72485658%2C72560029%2C72573224%2C72616120%2C72619927%2C72647020%2C72648289%2C72686036%2C72760082%2C72803964%2C72808078%2C72825294%2C72827241%2C72832976%2C72852291%2C72882230%2C72885032%2C72903276&hl=en-US&gl=us&ssta=1&ts=CAESCgoCCAMKAggDEAAqBwoFOgNVU0Q&qs=CAAgASgAMidDaGtJdl9IeWlOS0hwZjZ5QVJvTUwyY3ZNWG96ZEdKblozQnpFQUU&ap=MABoAQ&ictx=111&ved=0CAAQ5JsGahcKEwig-PfSj_mLAxUAAAAAHQAAAAAQEA) Image

@sonika-serpapi Interesting. However, that would be the other way round, meaning it is possible to use Google Hotels' Property Token to retrieve Google Maps' Place ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: queued Ready to work on type: improvement Something needs to be improved
Projects
None yet
Development

No branches or pull requests

4 participants