# StubHub Event Search API Documentation

<p><strong>StubHub Event Search API Documentation</strong> Find StubHub events around a city or coordinates with a start and end date and a category (theatre, sports, concerts), or by keyword (first page of 20 only). Each event has the id, name, page URL, start (local time), venue, city and image. A keyword search also returns venues (distinct venues of the results) and performers (StubHub matches, often empty). StubHub shows prices and listings only behind a bot wall, so this endpoint returns no ticket prices. Only events that start on a requested day are returned, so a page can hold fewer events than shown in total. A place search has pages; a keyword search has page 1 only and answers 422 for a higher page. A page without events is a 200 response. Costs 1 credit per request. A response without data and every error cost nothing.</p>

- **Documentation:** [https://scrappa.co/docs/stubhub-api/stubhub_events_search](https://scrappa.co/docs/stubhub-api/stubhub_events_search)
- **API group:** StubHub API
- **Endpoint:** `GET https://scrappa.co/api/stubhub/events/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 | No | Keyword such as an artist or team. First page only. Not together with city, lat/lng or category. |
| `city` | string | No | City from the supported list, e.g. Chicago, London, Toronto, Berlin, Sydney. Not together with lat/lng or q. |
| `lat` | number | No | Latitude of the search center. Needs lng. |
| `lng` | number | No | Longitude of the search center. Needs lat. |
| `start_date` | string | No | First day, YYYY-MM-DD. Defaults to today. |
| `end_date` | string | No | Last day, YYYY-MM-DD. Defaults to no end. |
| `category` | string | No | One of theatre, sports, concerts. Place search only. |
| `page` | integer | No | Page number, from 1. Defaults to 1. |

## Example response

```json
{
    "data": {
        "results": [
            {
                "id": "161795729",
                "url": "https://www.stubhub.com/common-people-chicago-tickets-11-8-2026/event/161795729/",
                "name": "Common People",
                "image": "https://media.stubhubstatic.com/stubhub-v2-catalog/d_defaultLogo.jpg/q_auto:low,f_auto,c_fill,g_auto,w_280,h_170,dpr_2.0/categories/1023/SHFestival-Fallback1",
                "start": "2026-11-08T18:00:00",
                "venue": {
                    "id": "30978",
                    "city": "Chicago",
                    "name": "Cobra Lounge",
                    "state": null,
                    "location": "Chicago, IL, USA",
                    "country_code": null
                },
                "is_tbd": false,
                "category": "concerts",
                "start_utc": null,
                "start_date": "2026-11-08",
                "start_time": "18:00",
                "is_date_confirmed": true,
                "is_time_confirmed": true
            },
            {
                "id": "161873770",
                "url": "https://www.stubhub.com/suzy-sheer-chicago-tickets-11-8-2026/event/161873770/",
                "name": "Suzy Sheer",
                "image": "https://media.stubhubstatic.com/stubhub-v2-catalog/d_defaultLogo.jpg/q_auto:low,f_auto,c_fill,g_auto,w_280,h_170,dpr_2.0/categories/259817/48855",
                "start": "2026-11-08T18:30:00",
                "venue": {
                    "id": "150069596",
                    "city": "Chicago",
                    "name": "Outset",
                    "state": null,
                    "location": "Chicago, IL, USA",
                    "country_code": null
                },
                "is_tbd": false,
                "category": "concerts",
                "start_utc": null,
                "start_date": "2026-11-08",
                "start_time": "18:30",
                "is_date_confirmed": true,
                "is_time_confirmed": true
            }
        ],
        "pagination": {
            "page": 1,
            "has_more": true,
            "page_size": 20,
            "total_results": 1272
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "events_search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, invalid, not supported by this endpoint or cannot be combined with another one. This response is not billable. |
| 404 | Not Found | StubHub has no such record, or it has ended. This response is not billable. |
| 503 | Upstream Unavailable | StubHub 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)
