gyg_search_tours
Search tours and activities by free text, location, or category, filter by date range, and sort by popularity, price, or rating to quickly find matching options.
Instructions
Search GetYourGuide tours and activities. Filter by free text (or "iata:" for airports), location ID, category ID, and date range; sort by popularity, price, or rating. Returns slim summaries by default; pass view:"full" for the whole records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Free-text search, e.g. "louvre skip the line" or "iata:jfk". | |
| view | No | Response shape: "compact" (default) drops fields the response already carries elsewhere; "full" returns every field this server understands. compact returns the slim tour projection (id, title, price, duration, rating, cancellation) and strips image URLs; "full" returns GetYourGuide's whole records. | |
| limit | No | Maximum number of items to return (1-500). | |
| dateTo | No | Latest date, YYYY-MM-DD (or full YYYY-MM-DDThh:mm:ss). | |
| offset | No | Number of items to skip (0-based). | |
| currency | No | Currency for prices, ISO 4217 (e.g. USD, EUR). Defaults to GYG_CURRENCY when set. | |
| dateFrom | No | Earliest date, YYYY-MM-DD (or full YYYY-MM-DDThh:mm:ss). Required when dateTo is set. | |
| language | No | Content language (e.g. en, de). Defaults to GYG_LANGUAGE when set. | |
| sortField | No | Sort field (API default: popularity). | |
| categoryId | No | Restrict to a category ID. | |
| locationId | No | Restrict to a location ID (city/POI/region). | |
| extraParams | No | Extra raw query params to merge into the request verbatim (escape hatch for API drift). | |
| sortDirection | No | Sort direction (ignored for popularity). |