{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Podcasts Shows & Episodes Scraper",
    "description": "Apple Podcasts Shows & Episodes Scraper extracts Apple Podcasts shows, episodes, reviews and top charts: show details, ratings, genres, feed and website links, owner, episode titles, dates, durations, audio links and transcripts.",
    "version": "1.0",
    "x-build-id": "t82DGXRCQQJfkG2Qh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~apple-podcasts-shows-episodes-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-apple-podcasts-shows-episodes-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/neuro-scraper~apple-podcasts-shows-episodes-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-apple-podcasts-shows-episodes-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/neuro-scraper~apple-podcasts-shows-episodes-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-apple-podcasts-shows-episodes-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": [
              "search",
              "shows",
              "episodes",
              "reviews",
              "charts"
            ],
            "type": "string",
            "description": "search = shows for your search terms; shows = the podcasts you list; episodes = episodes of the found / listed shows; reviews = listener reviews; charts = top shows of a country.",
            "default": "search"
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Topics or names to find podcasts for, one per line (e.g. history, true crime, marketing).",
            "items": {
              "type": "string"
            }
          },
          "searchTerm": {
            "title": "Search term (single, alternative field)",
            "type": "string",
            "description": "One search term - the same as one line of Search terms."
          },
          "podcastIds": {
            "title": "Podcast ids or links",
            "type": "array",
            "description": "Apple Podcasts show ids (1200361736) or show links (https://podcasts.apple.com/us/podcast/the-daily/id1200361736), one per line.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country (storefront)",
            "type": "string",
            "description": "Two-letter country of the Apple Podcasts storefront, e.g. us, gb, de, in, br.",
            "default": "us"
          },
          "maxResults": {
            "title": "Max results per search term / show",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Shows per search term (search), reviews per show (reviews) or shows in the chart (charts).",
            "default": 20
          },
          "includeEpisodes": {
            "title": "Add the newest episodes to show rows",
            "type": "boolean",
            "description": "Show rows get the newest episodes, the last episode date and the release frequency.",
            "default": true
          },
          "maxEpisodesPerShow": {
            "title": "Episodes per show",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "How many episodes to read per show (episodes mode: rows per show).",
            "default": 5
          },
          "useRssForFullArchive": {
            "title": "Full episode archive from the feed",
            "type": "boolean",
            "description": "Episodes mode: also return older episodes that only the show's feed lists.",
            "default": false
          },
          "minReleaseDate": {
            "title": "Episodes on or after",
            "type": "string",
            "description": "Episodes mode: keep episodes from this date."
          },
          "maxReleaseDate": {
            "title": "Episodes on or before",
            "type": "string",
            "description": "Episodes mode: keep episodes up to this date."
          },
          "minDurationSeconds": {
            "title": "Minimum episode length (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Episodes mode: skip shorter episodes.",
            "default": 0
          },
          "explicit": {
            "title": "Explicit episodes",
            "enum": [
              "any",
              "clean",
              "explicit"
            ],
            "type": "string",
            "description": "Episodes mode: keep all, only clean or only explicit episodes.",
            "default": "any"
          },
          "spotifyClientId": {
            "title": "Spotify client id (optional)",
            "type": "string",
            "description": "Your own Spotify API client id, to match every show to its Spotify page."
          },
          "spotifyClientSecret": {
            "title": "Spotify client secret (optional)",
            "type": "string",
            "description": "Your own Spotify API client secret."
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many requests run at the same time.",
            "default": 8
          },
          "dryRun": {
            "title": "Dry run (preview 3 rows)",
            "type": "boolean",
            "description": "Write at most 3 rows - a cheap preview to check the input and the columns.",
            "default": false
          },
          "countries": {
            "title": "Countries (several storefronts)",
            "type": "array",
            "description": "Optional: run the same search / chart / show list for several two-letter countries (us, gb, de ...). Empty = only Country.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "Optional genre names (Comedy, History, True Crime, Business ...). Search and show rows are kept only when the show is in one of them; in charts mode you get the top chart of each genre.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "chartType": {
            "title": "Chart type (charts mode)",
            "enum": [
              "top",
              "top-episodes"
            ],
            "type": "string",
            "description": "Charts mode: the Top Shows chart (one row per show, full details) or the Top Episodes chart (one row per episode).",
            "default": "top"
          },
          "sortBy": {
            "title": "Review order (reviews mode)",
            "enum": [
              "mostRecent",
              "mostHelpful"
            ],
            "type": "string",
            "description": "Reviews mode: newest reviews first, or the reviews listeners voted most helpful first.",
            "default": "mostRecent"
          },
          "sortEpisodes": {
            "title": "Episode order (episodes mode)",
            "enum": [
              "source",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Episodes mode: keep the show's own order, or sort the episodes by release date.",
            "default": "source"
          },
          "activeOnly": {
            "title": "Only active shows",
            "type": "boolean",
            "description": "Keep only shows that published an episode in the last 60 days (isActive = true).",
            "default": false
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only shows whose leadScore (0-100: active, website, ratings, catalogue size, release rhythm) is at least this. 0 = no filter.",
            "default": 0
          },
          "fetchShowMetadata": {
            "title": "Show details on episode rows",
            "type": "boolean",
            "description": "Episodes mode: each episode row also carries the show's details (genres, language, owner, copyright, show description). Off = smaller episode rows.",
            "default": true
          },
          "enrichWithCatalog": {
            "title": "Full catalogue details",
            "type": "boolean",
            "description": "Adds the full catalogue record of every show (artwork colours, rating, release rhythm, newest episodes and reviews). Off = a faster run with basic show data.",
            "default": true
          },
          "trackRankChanges": {
            "title": "Track chart rank changes",
            "type": "boolean",
            "description": "Charts mode: remembers each chart's ranks between runs and fills priorRank / rankChange on the next run.",
            "default": true
          },
          "webhookUrl": {
            "title": "Deliver rows to a webhook URL",
            "type": "string",
            "description": "Optional: at the end of the run, the rows (up to 5,000) are also sent as one JSON POST to this URL of yours. The dataset is filled either way.",
            "default": ""
          },
          "maxItems": {
            "title": "Max rows in total",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional cap for the whole run. 0 = no cap.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}