StubHub API endpoint
Lists the nested navigation taxonomy for one StubHub top-level category. The upstream accepts exactly category_id 1 (Theater), 2 (Sports), or 3 (Concerts). Use the returned ids and URLs to discover category and subcategory pages.
/stubhub/navigation-categoriesQuery parameters:
category_id: required top-level navigation category. Accepted values are
1 (Theater), 2 (Sports), and 3 (Concerts).Returns StubHub's current nested navigation tree for the selected top-level
category. Each returned id and canonical url can be used to discover
category or subcategory pages for subsequent StubHub event queries.
| Field | Filled in, of 9 checked | Values in the sample |
|---|---|---|
| id | 9 | |
| url | 9 | stubhub.com |
| title | 9 | “Broadway Shows” and 8 other values |
| view_all_content | 9 | View More Theater in all 9 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| category_id | integer | Yes | Top-level category: 1=Theater, 2=Sports, 3=Concerts Allowed values: 1, 2, 3. | 1 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/stubhub/navigation-categories?category_id=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"category_id": 1,
"id": 1,
"title": "Theater",
"url": "https://www.stubhub.com/theater-and-arts-tickets/category/174",
"view_all_content": "View More Theater",
"subcategories": [
{
"id": 12585,
"title": "Broadway Shows",
"url": "https://www.stubhub.com/broadway-shows-tickets/category/138275421"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/stubhub.navigationCategoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | stubhub.NavigationCategoriesResponse | No | ||||
| data.category_id | integer | No | 1 | |||
| data.id | integer | No | 1 | |||
| data.subcategories | array | No | ||||
| data.subcategories[].id | integer | No | 12585 | |||
| data.subcategories[].subcategories | array | No | ||||
| data.subcategories[].title | string | No | Broadway Shows | |||
| data.subcategories[].url | string | No | https://www.stubhub.com/broadway-shows-tickets/category/138275421 | |||
| data.subcategories[].view_all_content | string | No | View More Theater | |||
| data.title | string | No | Theater | |||
| data.url | string | No | https://www.stubhub.com/theater-and-arts-tickets/category/174 | |||
| data.view_all_content | string | No | View More Theater | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/stubhub/navigation-categories?category_id=1" \
-H "x-api-key: $CRAWLORA_API_KEY"