---
title: "GET /v1/tripadvisor/hotels"
description: "Hotels in a destination with Tripadvisor’s filters, sorts and prices, paginated."
canonical_url: https://groundsocial.dev/docs/api/tripadvisor-hotels-get
---
# GET /v1/tripadvisor/hotels

> Hotels in a destination with Tripadvisor’s filters, sorts and prices, paginated.

> ## Agent Instructions
> The Groundsocial REST API is at https://api.groundsocial.dev (OpenAPI: https://groundsocial.dev/openapi.json). Set yourself up with https://groundsocial.dev/SKILL.md; the MCP server is https://api.groundsocial.dev/mcp. Every docs page is Markdown at its URL plus `.md`; the index is https://groundsocial.dev/llms.txt.

|  |  |
| --- | --- |
| Request | `GET /v1/tripadvisor/hotels` |
| Operation id | `tripadvisor.hotels.get` |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: `Authorization: Bearer <key>` or `x-api-key`. |

Hotels in a destination with Tripadvisor’s filters, sorts and prices, paginated.

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | `string` | yes | The destination: a city or region name (the first match is used), a geo id (`60763` or `g60763`), or a Tripadvisor link to it. Example: `New York City`. |
| `sort_by` | `"BEST_VALUE" \| "RANKED" \| "PRICE_LOW_TO_HIGH" \| "DISTANCE"` | no | Order (default BEST_VALUE). One of `BEST_VALUE`, `RANKED`, `PRICE_LOW_TO_HIGH`, `DISTANCE`. |
| `price_min` | `number \| null` | no | Lowest nightly price. |
| `price_max` | `number \| null` | no | Highest nightly price. |
| `star_rating_min` | `"0" \| "1" \| "2" \| "3" \| "4" \| "5" \| "any"` | no | Minimum hotel class in stars. One of `0`, `1`, `2`, `3`, `4`, `5`, `any`. |
| `review_score_min` | `"3" \| "4" \| "5" \| "any" \| "3.5" \| "4.5"` | no | Minimum traveler rating. One of `3`, `4`, `5`, `any`, `3.5`, `4.5`. |
| `property_type` | `"any" \| "hotel" \| "resort" \| "apartment" \| "villa" \| "hostel" \| "guest_house" \| "bed_and_breakfast"` | no | Kind of property. One of `any`, `hotel`, `resort`, `apartment`, `villa`, `hostel`, `guest_house`, `bed_and_breakfast`. |
| `currency` | `string` | no | Currency for prices (default USD). |
| `after` | `string` | no | Cursor: the previous page’s `pagination.next_cursor`. |

## Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `200` | A page of hotels. | `TripadvisorHotelsResponse` |
| `400` | Invalid input. Nothing was charged. | `Error` |
| `401` | Missing or invalid API key. | `Error` |
| `402` | Not enough credits, a spend cap was reached, or payment is required. | `Error` |
| `403` | The target is private, or the account is suspended. | `Error` |
| `404` | No Tripadvisor place or destination like that. | `Error` |
| `429` | Too many requests. Wait for Retry-After seconds. | `Error` |
| `503` | Tripadvisor is temporarily unavailable. Retryable; nothing was charged. | `Error` |

### TripadvisorHotelsResponse fields

| Field | Type | Description |
| --- | --- | --- |
| `geo` | `object` |  |
| `results` | `object[]` |  |
| `total` | `number \| null` |  |
| `pagination` | `TripadvisorPagination` |  |

Errors use one shape everywhere; see [Errors](https://groundsocial.dev/docs/errors) for every code and what to do.

## Example

cURL:

```bash
curl "https://api.groundsocial.dev/v1/tripadvisor/hotels?q=New%20York%20City" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/tripadvisor/hotels?q=New%20York%20City', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/tripadvisor/hotels?q=New%20York%20City",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

_Canonical HTML: https://groundsocial.dev/docs/api/tripadvisor-hotels-get_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial docs](https://groundsocial.dev/docs.md)
- [Quickstart](https://groundsocial.dev/docs/quickstart.md)
- [Authentication](https://groundsocial.dev/docs/authentication.md)
- [Credits and payments](https://groundsocial.dev/docs/payments.md)
- [Rate limits](https://groundsocial.dev/docs/rate-limits.md)
- [Errors](https://groundsocial.dev/docs/errors.md)
- [Data freshness and caching](https://groundsocial.dev/docs/freshness.md)
- [MCP server](https://groundsocial.dev/docs/mcp.md)
- [SKILL.md, llms.txt and Markdown twins](https://groundsocial.dev/docs/skill.md)
- [CLI](https://groundsocial.dev/docs/cli.md)
- [TypeScript SDK](https://groundsocial.dev/docs/sdk.md)
- [PRAW and snoowrap](https://groundsocial.dev/docs/praw.md)
- [Legal and compliance](https://groundsocial.dev/docs/compliance.md)
- [API reference](https://groundsocial.dev/docs/api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https://groundsocial.dev/docs"},{"@type":"ListItem","position":3,"name":"API reference","item":"https://groundsocial.dev/docs/api"},{"@type":"ListItem","position":4,"name":"GET /v1/tripadvisor/hotels","item":"https://groundsocial.dev/docs/api/tripadvisor-hotels-get"}]}
```
