{
  "openapi": "3.0.1",
  "info": {
    "title": "StubHub Scraper | Ticket Prices, Events, Venues & Performers",
    "description": "Extract StubHub ticket prices, events, venues and performers — concerts, sports, theater, comedy and festivals worldwide. Search, entity autocomplete, ticket listings and price-drop tracking. A StubHub API alternative for price monitoring and market research.",
    "version": "0.1",
    "x-build-id": "AazgQkjx46OdyDfsQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~stubhub-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-stubhub-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/lentic_clockss~stubhub-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-stubhub-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/lentic_clockss~stubhub-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-stubhub-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "performer",
              "event",
              "venue",
              "grouping",
              "category",
              "explore",
              "suggest",
              "categories",
              "cities"
            ],
            "type": "string",
            "description": "search | performer | event | venue | grouping | category | explore | suggest (entity autocomplete rows, needs query) | categories (live category tree: 3 tops, 36 subs) | cities (performer city presets with lat/lon/cityId, needs performerId/performerSlug)",
            "default": "search"
          },
          "host": {
            "title": "Target host",
            "enum": [
              "stubhub.com",
              "stubhub.co.uk"
            ],
            "type": "string",
            "description": "stubhub.com (default, global inventory incl. GB/EU/JP events) or stubhub.co.uk. NOTE: stubhub.co.uk is a pure SPA shell with no server-rendered data layer (verified 2026-08-09) — UK inventory is best reached via stubhub.com + proxyCountry=gb.",
            "default": "stubhub.com"
          },
          "proxyCountry": {
            "title": "Proxy country (ISO-2)",
            "type": "string",
            "description": "Pin the egress country, e.g. gb for UK inventory. Event LDPs redirect to a regional homepage when the egress geo mismatches the event country; also pins the Bright Data browser session (deep pagination, listings, explore)."
          },
          "includePerformerProfile": {
            "title": "Include performer profile",
            "type": "boolean",
            "description": "mode=performer: prepend a performer metadata row (genres, spotifyTopTrackId, hottest event, hourly viewer count, leagueId/isTeamSport, available-event totals).",
            "default": true
          },
          "includeVenueProfile": {
            "title": "Include venue profile",
            "type": "boolean",
            "description": "mode=venue: prepend a venue metadata row (capacity, lat/lon, full address, topLevelCategories).",
            "default": true
          },
          "enrichDetails": {
            "title": "Enrich venue street from event page",
            "type": "boolean",
            "description": "Search/list cards only have city. When true (default), fetch each event JSON-LD Place.address so rows get street/门牌 (e.g. 1111 South Figueroa Street). Does not invent box-office phones — StubHub venue pages have none.",
            "default": true
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text search for mode=search, e.g. 'weeknd', 'lakers', 'hamilton'. Maps to stubhub.com/secure/search. Console Test prefills a short query so Start works without extra fields.",
            "default": "weeknd"
          },
          "performerId": {
            "title": "Performer ID",
            "type": "string",
            "description": "StubHub numeric performer id for mode=performer, e.g. 714235 (The Weeknd). From /{slug}-tickets/performer/{id}."
          },
          "performerSlug": {
            "title": "Performer slug",
            "type": "string",
            "description": "Performer slug, e.g. the-weeknd. Optional when performerId is given (slug mismatch redirects to canonical)."
          },
          "citySlug": {
            "title": "City filter slug",
            "type": "string",
            "description": "Optional city filter for mode=performer, e.g. london. Pairs with cityId."
          },
          "cityId": {
            "title": "City filter ID",
            "type": "string",
            "description": "Optional city filter id for mode=performer, e.g. 4031 (london). Path-encoded /{citySlug}-city/{cityId}."
          },
          "venueId": {
            "title": "Venue ID",
            "type": "string",
            "description": "StubHub numeric venue id for mode=venue, e.g. 137012189 (PGE Narodowy)."
          },
          "venueSlug": {
            "title": "Venue slug",
            "type": "string",
            "description": "Venue slug (optional alongside venueId)."
          },
          "groupingId": {
            "title": "Grouping ID",
            "type": "string",
            "description": "StubHub numeric grouping (tour/show) id for mode=grouping, e.g. 130466796 (The Notebook The Musical)."
          },
          "groupingSlug": {
            "title": "Grouping slug",
            "type": "string",
            "description": "Grouping slug (optional alongside groupingId)."
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "StubHub numeric category id for mode=category (/category/{id})."
          },
          "categorySlug": {
            "title": "Category slug",
            "type": "string",
            "description": "Category slug for mode=category. Without categoryId, falls back to a search query with this text."
          },
          "eventId": {
            "title": "Event ID",
            "type": "string",
            "description": "StubHub numeric event id for mode=event, e.g. 159358883."
          },
          "eventUrl": {
            "title": "Event URL",
            "type": "string",
            "description": "Full StubHub event URL for mode=event (eventId derived if missing)."
          },
          "city": {
            "title": "Explore city",
            "type": "string",
            "description": "City name for mode=explore (geo preset: nyc, la, london, warsaw, tokyo, sydney, ...). Or pass explicit lat/lon."
          },
          "lat": {
            "title": "Latitude (explore)",
            "type": "number",
            "description": "Explicit latitude for mode=explore (overrides city preset)."
          },
          "lon": {
            "title": "Longitude (explore)",
            "type": "number",
            "description": "Explicit longitude for mode=explore (overrides city preset)."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum events to emit (1-500). Console Test prefills 1 so a first run stays short. Free-tier capped at 200.",
            "default": 1
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "List pages to fetch. StubHub pagination is client-side XHR (URL params are ignored), so pages 2+ are click-through via a Bright Data browser session when page 1 succeeds (adds runtime + BD cost).",
            "default": 1
          },
          "includeListings": {
            "title": "Include ticket listings",
            "type": "boolean",
            "description": "For mode=event: extract ticket listings via StubHub's inventory feed (reverse-engineered): SSR page-1 + JSON pagination, seat-level rows (listingId, section/row/seat, all-in price, quantities, deal score). listings.complete marks full capture. Event metadata is always returned.",
            "default": true
          },
          "maxShowMore": {
            "title": "Max show-more clicks",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "For mode=event with includeListings: max listings pagination steps beyond page 1 (0-20; each step loads 10 more listings).",
            "default": 5
          },
          "trackChanges": {
            "title": "Track price/inventory changes",
            "type": "boolean",
            "description": "For mode=event with includeListings: snapshot listings to a persistent store and diff against the previous run — adds a changes object (newListings, soldListings, priceDrops, priceChanges). Schedule the Actor to build price history over time.",
            "default": false
          },
          "alertWebhookUrl": {
            "title": "Alert webhook URL (optional)",
            "type": "string",
            "description": "With trackChanges: POST a JSON alert to this URL when prices drop or inventory moves (never on the first snapshot)."
          },
          "startUrls": {
            "title": "Start URLs (override)",
            "type": "array",
            "description": "Explicit StubHub URLs; mode is inferred per URL (/event/{id} = detail, others = list).",
            "items": {
              "type": "string"
            }
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Event detail URLs (alias of startUrls for event LDP).",
            "items": {
              "type": "string"
            }
          },
          "listingIds": {
            "title": "Event IDs",
            "type": "array",
            "description": "StubHub numeric event ids.",
            "items": {
              "type": "string"
            }
          },
          "workerBaseUrl": {
            "title": "Worker base URL (optional)",
            "type": "string",
            "description": "Override Cloud Run worker origin (allowlisted HTTPS). Default from Actor env."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}