Way to get tripadvisor property ids of hotels

1,149 views
Skip to first unread message

w...@scoobybook.com

unread,
Oct 13, 2014, 10:07:27 AM10/13/14
to tripadvis...@googlegroups.com
i maintain a hotel view/book site and would like to show TripAdvisor data regarding each hotel (both on search results and on hotel page). 
1st question, hotel property ids never changes right? 
Because if they do not change,  by getting a table with my system hotel  ids and tripadvisor ids only once i would have solve most of my problems. TripAdvisor do not include such a function based on their API and do not seem to be really into providing mass downloading / cache storing options. 
So they encourage  searching by lat/long or by name. 2nd question in a request like  
the hotel name is url escaped right? i mean if its Lenox Royal would be like Lenox%Royal, is also it is  case sensitive? oh btw in the api docs the link Documentations / -> /location-hotels functionality is broken (getting a big nice 'Page not found' ). 
Well since currently i have 32.000+ hotels in my system would like a batch operation to save the property ids in my database and at least some function returning all hotels of a lat,long point (50km range might be sufficient but 10 closest results is  so-so). In that way i could get more than 10 results and per call thus having one call and not 10 per search result (assuming my hotel search result is 10 per page) if i try to follow the cache on demand approach advice on the API docs.

Well 1st day i saw the documentation and little surprised i did not see any mass static data download functions. So I would like to hear opinions of people having experience with it, I am sure TripAdvisor had its reasons for making it like that, and would like if u guys could give me a hint or two on the right way. 

TripAdvisor Content API Support

unread,
Nov 4, 2014, 1:34:16 PM11/4/14
to tripadvis...@googlegroups.com
Hi Mike,

TripAdvisor property IDs may change, if for instance a hotel is merged into another, but TripAdvisor will take care of location forwarding if anyone calls the old ID after it has been merged into a new one.

If a property closes, calling its location ID will return an error.

We've taken a look at the Developer Portal and the /location-hotels documentation is now available.

TripAdvisor is working on adding a separate mapping call to the API that will take lat/long and business name as inputs and return a list of possible results. This API will have a higher per second/day call limit and is targeted to be released late November to early December. Users of this API call will be encouraged to store the TripAdvisor location IDs in their database after matching them.

Thanks,

Emily

TripAdvisor API Group Admin

unread,
Nov 12, 2014, 4:25:36 PM11/12/14
to tripadvis...@googlegroups.com
Hi Mike,

We have just launched the /location_mapper call, which should help you with your hotel mapping. Additionally, it seems whatever error you were getting with Documentation -> /location-hotels is no longer appearing. If you run into any other issues, be sure to share them in the Google Group!

-Mat

robert tominac

unread,
Aug 8, 2019, 5:30:20 AM8/8/19
to TripAdvisor API Developers

I have similar problem.
I got API key for TripAdvisor Content API and what I'm trying to do is get data for all (or atleast 100) restaurants in specific area.

I'm using this URL "http://api.tripadvisor.com/api/partner/2.0/location_mapper/45.81331,15.97751?key=API-KEY-mapper&category=restaurants" to get restaurants in Zagreb. This Lat-Long: 45.81331,15.97751 points in Centre of Zagreb, where are more than 10 restaurants, but I still only get 10 results.

Is there any way to get data for more than 10 object with TripAdvisor Content API?

Let's say I'm building tourist website and I'd like to show all restaurants in Centre of Zagreb.

PS. Can I call pictures from TripAdvisor and place is on my website if I have API key? Because I used this link "http://api.tripadvisor.com/api/partner/2.0/location/8664414?key=API-KEY" to get all data of a specific restaurant and I didn't see any src for pictures, only link to photos page on TripAdvisor.

Reply all
Reply to author
Forward
0 new messages