> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/tripadvisor/hotels>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/tripadvisor/hotels.mdx>

---

# Tripadvisor Hotels API

The hotels in a city or region, ranked as the site ranks them, page after page.

`GET /v1/tripadvisor/hotels` lists the hotels in a city or region. `geoId` is the city's geo id: the `g` number in a Tripadvisor address, or the `locationId` of a `geo` match from search (`186338` is London).

`data.totalCount` counts the hotels as the site does. The site's list stops at 10,000 places, and `data.truncated` is true when paging ends before `totalCount`. `data.places` holds this page's, in the site's own order with sponsored places left out. Each carries `locationId` (pass it to the hotel and hotel reviews routes), `name`, `url`, `rating`, `reviewCount`, `ranking` (`#340 of 1,219 hotels in London`), `coordinates`, `address`, `phone`, `description`, `image` and `award`. Pass `page.nextCursor` back as `cursor` while `page.hasMore` is true.

## Request

- **Endpoint:** `GET /v1/tripadvisor/hotels`
- **Credits:** 1 credit
Failed requests are free
A not-found answer is still charged
- **Input:** by geo id
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/tripadvisor/hotels/get)
- **Platform page:** [/platforms/tripadvisor](https://www.socialfetch.dev/platforms/tripadvisor)

## FAQ

### Where do I find a city's geo id?

It is the g number in any Tripadvisor address for the city (Hotels-g186338-London… is 186338), or the locationId of a geo match from GET /v1/tripadvisor/search?type=geo.

### What order are the hotels in?

The site's own default order, as a visitor sees it, 30 a page. Sponsored places are left out, so a page can hold a few fewer.

### What does a geo id that does not exist return?

HTTP 200 with data.lookupStatus not_found and an empty list. Check lookupStatus before storing rows.

### How many credits does a call cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.
