{
  "openapi": "3.0.1",
  "info": {
    "title": "StubHub Scraper - Ticket Listings, Prices & Seats",
    "description": "Scrape StubHub ticket listings and events: every listing an event shows with section, row, seats, price per ticket, tickets left, deal score, face value, delivery and notes, plus event date, venue and min/max price. Search, explore by city or paste event URLs. Track price changes. No login.",
    "version": "0.1",
    "x-build-id": "ObR9Bt8AcZ1ggfLqu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~stubhub-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-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/scrapersdelight~stubhub-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-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/scrapersdelight~stubhub-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-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": "What to collect",
            "enum": [
              "listings",
              "events"
            ],
            "type": "string",
            "description": "Ticket listings: one row per listing on each event (section, row, seats, price...). Events: one row per event.",
            "default": "listings"
          },
          "startUrls": {
            "title": "StubHub URLs or event ids",
            "type": "array",
            "description": "Event pages (…/event/160417385/), event ids (\"160417385\"), performer or team pages (…/performer/2742), grouping pages, search pages (/secure/search?q=…) and explore URLs (/explore?lat=…&lon=…).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search terms",
            "type": "array",
            "description": "Artists, teams, shows or venues, one per line, e.g. \"Taylor Swift\", \"New York Knicks\", \"Hamilton\". Each term returns StubHub's matching upcoming events.",
            "items": {
              "type": "string"
            }
          },
          "exploreLocations": {
            "title": "Explore by city",
            "type": "array",
            "description": "Events near a place, as StubHub's Explore page lists them: a city (\"New York\", \"Chicago\", \"London\", 60 presets) or \"latitude,longitude\" (\"40.7128,-74.0060\").",
            "items": {
              "type": "string"
            }
          },
          "quantity": {
            "title": "Number of tickets",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Show listings that can sell this many tickets together, like the quantity picker on StubHub. 0 = any quantity.",
            "default": 0
          },
          "category": {
            "title": "Category (explore)",
            "enum": [
              "all",
              "sports",
              "concerts",
              "theater"
            ],
            "type": "string",
            "description": "Limit Explore-by-city results to one top-level category.",
            "default": "all"
          },
          "dateFrom": {
            "title": "Events from",
            "type": "string",
            "description": "Only events on or after this date: YYYY-MM-DD, or a number of days from today (\"0\" = today). Applied by StubHub for Explore, by the actor for other sources."
          },
          "dateTo": {
            "title": "Events until",
            "type": "string",
            "description": "Only events on or before this date: YYYY-MM-DD, or days from today (\"30\" = the next 30 days)."
          },
          "radiusKm": {
            "title": "Explore radius (km)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How far from the Explore location to look. Empty = StubHub's own default radius."
          },
          "zones": {
            "title": "Zones / ticket classes",
            "type": "array",
            "description": "Keep listings whose zone contains one of these words, e.g. \"Floor\", \"100 Level\", \"Club\". Case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "sections": {
            "title": "Sections",
            "type": "array",
            "description": "Keep listings in these sections, e.g. \"112\", \"Floor A\", \"MC65\". A value matches the section name or part of it.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price per ticket",
            "minimum": 0,
            "type": "number",
            "description": "In the event's currency (USD from US exits), fees included."
          },
          "maxPrice": {
            "title": "Max price per ticket",
            "minimum": 0,
            "type": "number",
            "description": "In the event's currency, fees included, e.g. 250."
          },
          "minTickets": {
            "title": "Min tickets in the listing",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Keep listings with at least this many tickets available, e.g. 4 for a group."
          },
          "minDealScore": {
            "title": "Min deal score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "StubHub's own 0-10 deal score (price vs seat quality). 9 = great deals only."
          },
          "fullListingDetails": {
            "title": "Full detail on every listing",
            "type": "boolean",
            "description": "Seats, splits, face value, delivery type and notes for every listing, not only the cheapest 10-40 per event. Reads one extra page per section (about 90 for a 300-listing game, 4-12 minutes); on the residential fallback it stops at the run's cost limit.",
            "default": false
          },
          "includePriceWithoutFees": {
            "title": "Price without fees",
            "type": "boolean",
            "description": "Adds priceWithoutFees to every listing (one extra page per event).",
            "default": false
          },
          "includeEventSummary": {
            "title": "Add an event row (listings mode)",
            "type": "boolean",
            "description": "One event row before each event's listings: min/max price, listings and tickets on sale, price by zone, venue address and coordinates. Charged as one result.",
            "default": false
          },
          "includeEventDetails": {
            "title": "Event details (events mode)",
            "type": "boolean",
            "description": "Read each event's page for min/max price, listing and ticket counts, price by zone, venue address and teams (one page per event). Off = the fields the search or Explore list gives (no prices). On the residential fallback only a few events fit the run's cost limit.",
            "default": false
          },
          "monitorMode": {
            "title": "Only new or changed listings",
            "type": "boolean",
            "description": "Deliver only listings that are new or changed price since the last run with the same filters (changeType, previousPrice). Pairs with a schedule. Events mode: only new events.",
            "default": false
          },
          "reportRemovedListings": {
            "title": "Report sold / removed listings",
            "type": "boolean",
            "description": "In monitor mode, also deliver a row (changeType \"removed\") for each listing delivered before that is no longer on sale.",
            "default": false
          },
          "minPriceChangePercent": {
            "title": "Min price change (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Report a price change only when a listing moved at least this much. StubHub shows each visitor one price level; a run-wide shift is removed before comparing.",
            "default": 1
          },
          "monitorStoreName": {
            "title": "Monitor memory name",
            "type": "string",
            "description": "Named key-value store that remembers delivered listings between runs. Use a different name per watch list.",
            "default": "stubhub-scraper-monitor"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Most rows (listings + events) to save in this run. A big event shows 300-800 listings. 0 = no limit.",
            "default": 100
          },
          "maxEvents": {
            "title": "Max events",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Listings mode: how many events with listings to read (sold-out events are skipped and not counted). 0 = all found.",
            "default": 5
          },
          "maxListingsPerEvent": {
            "title": "Max listings per event",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cheapest listings first. 0 = every listing the event shows.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as is: the actor connects directly, then (when StubHub refuses) tries Apify datacenter proxy if your account has it, then a US residential session, inside a per-run cost limit. Add your own proxy URLs to try them right after the direct connection.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}