{
  "openapi": "3.0.1",
  "info": {
    "title": "Gametime Tickets Scraper: Event Prices, All-In Fees & Deals",
    "description": "Scrape Gametime ticket prices for NBA, NFL, MLB, NHL, MLS, concerts, comedy and theater. Get each event's cheapest-ticket summary plus per-listing section, row, seat and the full all-in fee breakdown: face value, service fees, tax and total. Filter by date, price and section.",
    "version": "0.1",
    "x-build-id": "YmfBrzjYeckhoZFGS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~gametime-tickets-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-gametime-tickets-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/getascraper~gametime-tickets-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-gametime-tickets-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/getascraper~gametime-tickets-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-gametime-tickets-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": {
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Keywords to search Gametime, such as a team, artist, show, or matchup (for example 'Lakers' or 'Taylor Swift'). Each query returns the best-matching upcoming events. Leave empty if you use start URLs, performer IDs, or a city instead.",
            "default": [
              "Lakers"
            ],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Direct gametime.co links: an event page (ends in /events/ID), a performer page (/performers/ID), a venue page (/venues/ID), a city page (/cities/NAME), or a search page (/search?q=...). Event URLs always return that event's full ticket listings.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "performerIds": {
            "title": "Performer IDs",
            "type": "array",
            "description": "Advanced: Gametime performer IDs (24-character hex) to pull a team's or artist's full upcoming schedule with pagination. Most users should use Search Queries instead.",
            "items": {
              "type": "string"
            }
          },
          "metroId": {
            "title": "City (Metro)",
            "type": "string",
            "description": "Browse every event in a city by its Gametime metro slug, for example 'los-angeles' or 'new-york'. Pair it with a Category below to list, say, all NBA games in Los Angeles. Neither competitor scraper offers city-level discovery.",
            "default": ""
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "nba",
              "nfl",
              "mlb",
              "nhl",
              "mls",
              "ncaa-basketball",
              "ncaa-football",
              "music",
              "comedy",
              "theater"
            ],
            "type": "string",
            "description": "Keep only events in this category. Applies to city browsing and filters search results. Leave blank to include every category.",
            "default": ""
          },
          "eventDateFrom": {
            "title": "Events On Or After",
            "type": "string",
            "description": "Keep only events whose local date is on or after this day. Useful for scraping a single weekend or month."
          },
          "eventDateTo": {
            "title": "Events On Or Before",
            "type": "string",
            "description": "Keep only events whose local date is on or before this day."
          },
          "minPrice": {
            "title": "Minimum All-In Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "When fetching individual listings, drop any ticket whose all-in price (fees included) is below this amount in US dollars."
          },
          "maxPrice": {
            "title": "Maximum All-In Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "When fetching individual listings, drop any ticket whose all-in price (fees included) is above this amount in US dollars. Combine with Minimum to scrape a budget band."
          },
          "quantity": {
            "title": "Ticket Quantity",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "When fetching individual listings, keep only listings that can be bought in exactly this many tickets together (sitting as a group). Leave blank for any quantity."
          },
          "sections": {
            "title": "Section Filter",
            "type": "array",
            "description": "When fetching individual listings, keep only tickets whose section or section group matches one of these names (for example 'Floor', '118', 'Lower Level'). Leave empty for all sections.",
            "items": {
              "type": "string"
            }
          },
          "deliveryTypes": {
            "title": "Delivery Types",
            "type": "array",
            "description": "When fetching individual listings, keep only tickets with these delivery methods (for example 'mobile'). Leave empty for all delivery types.",
            "items": {
              "type": "string"
            }
          },
          "includeListings": {
            "title": "Fetch Individual Ticket Listings",
            "type": "boolean",
            "description": "Fetch every individual ticket listing for each event (section, row, seat count, full fee breakdown, deal rating). This makes one extra request per event, so it is off by default; event-level summary prices are always returned. Direct event URLs always fetch listings regardless of this toggle.",
            "default": false
          },
          "maxEventsPerQuery": {
            "title": "Max Events Per Source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of events to collect per search query, performer, venue, or city. Kept low by default so a run finishes fast and cheaply.",
            "default": 10
          },
          "maxListingsPerEvent": {
            "title": "Max Listings Per Event",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of individual ticket listings to keep per event when listing detail is on. The cheapest listings are kept first.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Gametime's public JSON API is not IP-quality-gated, so the default Apify datacenter proxy is enough and keeps costs low. Residential is not required.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}