# GetYourGuide Activity Search API Documentation

<p><strong>GetYourGuide Activity Search API Documentation</strong> Search GetYourGuide tours and activities by keyword or place: for each result the id, title, public url, location, duration text, rating, review count, price (text and number), badges and image. 24 results per page, sorted by popularity, price or rating. A search with no matches is still a successful response.</p>

- **Documentation:** [https://scrappa.co/docs/getyourguide-api/getyourguide_search](https://scrappa.co/docs/getyourguide-api/getyourguide_search)
- **API group:** GetYourGuide API
- **Endpoint:** `GET https://scrappa.co/api/getyourguide/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | Search text, e.g. paris or food tour. Example: paris. |
| `page` | integer | No | 1-based page number, 24 results per page, 1 to 50. Defaults to 1. |
| `sort` | string | No | One of popularity, price_asc, price_desc, rating_desc. Defaults to popularity. |
| `location_id` | integer | No | Restrict the search to one GetYourGuide location, e.g. 16 for Paris. |
| `currency` | string | No | Three-letter currency code for prices. Defaults to EUR. |
| `language` | string | No | Language and region such as en-US. Defaults to en-US. |

## Example response

```json
{
    "data": {
        "page": 1,
        "query": "paris",
        "results": [
            {
                "id": 1326356,
                "url": "https://www.getyourguide.com/-t1326356/",
                "title": "Private Electric Tuk Tuk Tour of Up to 15 Landmarks",
                "badges": [
                    "Top pick"
                ],
                "rating": 5,
                "currency": "EUR",
                "features": [
                    "Private group",
                    "Pickup available"
                ],
                "location": "Paris",
                "position": 1,
                "image_url": "https://cdn.getyourguide.com/img/tour/e6f459b3301bc65212d8e5103187ab9079c9e08e9292737fd3eb91059a3a3e0c.png/132.jpg",
                "price_text": "\u20ac310",
                "price_unit": "per group up to 6",
                "price_amount": 310,
                "review_count": 119,
                "duration_text": "2 - 4 hours"
            },
            {
                "id": 1282311,
                "url": "https://www.getyourguide.com/-t1282311/",
                "title": "Evening Lights Cruise with Legendary Bateaux-Mouches\u00ae",
                "badges": [
                    "Booked 264 times yesterday"
                ],
                "rating": 4.3,
                "currency": "EUR",
                "location": "Paris",
                "position": 2,
                "image_url": "https://cdn.getyourguide.com/img/tour/115954509470854c4b5876061d932af25b3db3397d3dcd3b63c6a94855f52a90.jpeg/132.jpg",
                "price_text": "\u20ac17",
                "price_amount": 17,
                "review_count": 6265,
                "duration_text": "70 minutes - 1.5 hours",
                "original_price_amount": 21
            }
        ],
        "has_more": true
    },
    "meta": {
        "billable": true,
        "endpoint_family": "activity_search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 404 | Resource Not Found | The requested GetYourGuide resource does not exist. This response is not billable. |
| 502 | Unexpected Upstream Format | GetYourGuide answered in a format this API does not understand. This response is not billable. |
| 503 | Upstream Unavailable | GetYourGuide blocked or did not answer after several attempts. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
