{
  "openapi": "3.0.1",
  "info": {
    "title": "Broadway Grosses & Playbill Scraper: Shows, Cast & Jobs",
    "description": "Download weekly Broadway grosses and box office back to 1985: gross, average and top ticket price, seats sold and % capacity per show. Plus a Broadway database of shows with dates and awards, original and replacement cast history, and theatre jobs from Playbill. CSV, Excel, JSON or API.",
    "version": "0.0",
    "x-build-id": "DJZbnEwnWjIsITHqr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epicscrapers~playbill-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epicscrapers-playbill-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/epicscrapers~playbill-scraper/runs": {
      "post": {
        "operationId": "runs-sync-epicscrapers-playbill-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/epicscrapers~playbill-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-epicscrapers-playbill-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 scrape",
            "enum": [
              "shows",
              "cast",
              "grosses",
              "people",
              "jobs"
            ],
            "type": "string",
            "description": "<b>Shows</b>: one row per production with theatre, dates, performances, gross stats, awards and credits. <b>Cast</b>: one row per person per stint (originals, replacements, understudies, creative team) with roles and dates. <b>Grosses</b>: one row per show per week (gross, capacity, ticket prices, attendance); all Broadway shows by week, or the full history of the shows you choose. <b>People</b>: one row per person with credits and awards. <b>Jobs</b>: Playbill job board postings.",
            "default": "shows"
          },
          "showLists": {
            "title": "Shows now playing",
            "type": "array",
            "description": "Every production currently listed on Playbill for these markets.",
            "items": {
              "type": "string",
              "enum": [
                "broadway",
                "offbroadway",
                "london",
                "touring"
              ],
              "enumTitles": [
                "Broadway",
                "Off-Broadway",
                "West End (London)",
                "National tours"
              ]
            }
          },
          "seasons": {
            "title": "Broadway seasons",
            "type": "array",
            "description": "Broadway productions that opened in these seasons. A year means the season starting that year (2003 = 2003–2004). Ranges work: 1990-1999. Data goes back to 1946.",
            "items": {
              "type": "string"
            }
          },
          "productionUrls": {
            "title": "Production URLs",
            "type": "array",
            "description": "Playbill production pages, e.g. https://playbill.com/production/wicked-broadway-gershwin-theatre-2003. Grosses links (…/production/gross?production=<id>) also work.",
            "items": {
              "type": "string"
            }
          },
          "castScope": {
            "title": "Cast: whose stints",
            "enum": [
              "all",
              "current"
            ],
            "type": "string",
            "description": "All: everyone who was ever in the production (originals, every replacement with dates, standbys, musicians, creative team). Current: only the people in it now.",
            "default": "all"
          },
          "weekFrom": {
            "title": "Grosses: from week",
            "type": "string",
            "description": "First week (YYYY-MM-DD, or relative like \"8 weeks\" for eight weeks ago). Weeks end on Sundays; data starts 1985-06-09. Empty: the latest week only (all-shows grosses) or the whole run (chosen shows)."
          },
          "weekTo": {
            "title": "Grosses: to week",
            "type": "string",
            "description": "Last week (YYYY-MM-DD). Empty: the latest week."
          },
          "personUrls": {
            "title": "Person URLs",
            "type": "array",
            "description": "Playbill person pages, e.g. https://playbill.com/person/karen-ziemba-vault-0000031213. Cast mode returns these URLs for everyone in a production.",
            "items": {
              "type": "string"
            }
          },
          "jobKeywords": {
            "title": "Job keywords",
            "type": "array",
            "description": "Search terms, e.g. stage manager. Each keyword is a separate search; results are de-duplicated. Empty: all jobs.",
            "items": {
              "type": "string"
            }
          },
          "jobCategories": {
            "title": "Job categories",
            "type": "array",
            "description": "Only jobs in these categories. Empty: all categories.",
            "items": {
              "type": "string",
              "enum": [
                "Academic/Instructor",
                "Administrative",
                "Career Services and  Spaces",
                "Classes",
                "Coaching",
                "Design",
                "Directorial",
                "Editorial/Writing",
                "Festival/Competition Submissions",
                "Internship",
                "Musician",
                "Non-Theatrical",
                "Other",
                "Performer",
                "Services",
                "Technical"
              ],
              "enumTitles": [
                "Academic / Instructor",
                "Administrative",
                "Career Services and Spaces",
                "Classes",
                "Coaching",
                "Design",
                "Directorial",
                "Editorial / Writing",
                "Festival / Competition Submissions",
                "Internship",
                "Musician",
                "Non-Theatrical",
                "Other",
                "Performer",
                "Services",
                "Technical"
              ]
            }
          },
          "jobStates": {
            "title": "Job states / provinces",
            "type": "array",
            "description": "Two-letter codes (NY, CA, ON…) or full names (New York). Empty: everywhere.",
            "items": {
              "type": "string"
            }
          },
          "jobPaid": {
            "title": "Paid",
            "enum": [
              "any",
              "paid",
              "unpaid"
            ],
            "type": "string",
            "description": "Only paid or only unpaid jobs.",
            "default": "any"
          },
          "jobUnion": {
            "title": "Union",
            "enum": [
              "any",
              "union",
              "nonUnion"
            ],
            "type": "string",
            "description": "Only union or only non-union jobs.",
            "default": "any"
          },
          "jobInternship": {
            "title": "Internship",
            "enum": [
              "any",
              "internship",
              "regular"
            ],
            "type": "string",
            "description": "Only internships or only regular jobs.",
            "default": "any"
          },
          "includeJobDetails": {
            "title": "Open each job (description, salary, apply email)",
            "type": "boolean",
            "description": "Off: only the listing data (title, category, employer, location, date, paid). Faster.",
            "default": true
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows. Empty: no limit (your spending limit still applies)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Playbill works with Apify datacenter proxies.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}