---
title: "Get TripAdvisor enum metadata"
method: GET
path: "/tripadvisor/enums"
tags: ["TripAdvisor"]
---

# Get TripAdvisor enum metadata

`GET /tripadvisor/enums`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/tripadvisor/enums`
- Auth: API key in header `x-api-key`

Returns the values TripAdvisor place and listing filters accept: `locales`, `currencies`, `languages`, `listing_types`, `sorts`, `pricing_modes`, `hotel_classes`, `hotel_amenities`, `restaurant_types`, `restaurant_options`, attraction categories with their ids, and `filter_ids`. It also lists `unsupported_entity_types`. Takes no parameters.

## Headers

- `x-api-key` string, required

## Response `200`

OK

- TripadvisorTripadvisorEnumsResponseDoc
  - `code` integer
  - `data` TripadvisorEnumsResponse
    - `attraction_categories` string[]: Attraction category types accepted by the `type` parameter of the search endpoint.
    - `attraction_category_ids` object: Map from each attraction category type to its TripAdvisor category id, for example `tour` to `c42`.
    - `currencies` string[]: Currency codes accepted by the `currency` parameter, for example `HKD`.
    - `filter_ids` string[]: Filter ids accepted by the `filter_id` parameter.
    - `hotel_amenities` integer[]: Hotel amenity ids accepted by the `amenities` parameter.
    - `hotel_classes` integer[]: Hotel star classes accepted by the `class` parameter.
    - `languages` string[]: Review language codes accepted by the reviews endpoint, for example `en`.
    - `listing_types` string[]: Listing types accepted by the `type` parameter of the search endpoint, for example `hotel`.
    - `locales` string[]: Locale codes accepted by the `locale` parameter, for example `en-HK`.
    - `pricing_modes` string[]: Pricing modes accepted by the `pricing_mode` parameter.
    - `restaurant_options` integer[]: Restaurant online-option ids accepted by the `online_options` parameter.
    - `restaurant_types` integer[]: Restaurant establishment-type ids accepted by the `establishment_types` parameter.
    - `sorts` string[]: Sort orders accepted by the `sort` parameter, for example `BEST_VALUE`.
    - `unsupported_entity_types` string[]: Entity types that cannot be searched, for example `airline`. Omitted when none.
  - `msg` string

## Other responses

- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/0497899e2016?raw)
