{
  "openapi": "3.0.1",
  "info": {
    "title": "Podcast Scraper — Apple Podcasts, Episodes & Emails",
    "description": "Scrape Apple Podcasts: shows, full episode lists, top charts by country and genre, plus owner names and contact emails pulled from each show's RSS feed. Gets past the 100-result search ceiling.",
    "version": "1.0",
    "x-build-id": "Vp6DL5EfPJpWOw9p2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pixflor~apple-podcasts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pixflor-apple-podcasts-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/pixflor~apple-podcasts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pixflor-apple-podcasts-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/pixflor~apple-podcasts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pixflor-apple-podcasts-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",
              "charts",
              "episodes",
              "lookup"
            ],
            "type": "string",
            "description": "Pick one. 'search' finds podcasts by keyword. 'charts' returns the top podcasts for a country and genre. 'episodes' lists episodes for specific shows. 'lookup' fetches specific shows by ID.",
            "default": "search"
          },
          "searchTerm": {
            "title": "Search term",
            "type": "string",
            "description": "What to search for, e.g. startup, true crime, marketing, history. Required for search mode."
          },
          "podcasts": {
            "title": "Podcast IDs or URLs",
            "type": "array",
            "description": "Only used by the episodes and lookup modes. Accepts an iTunes ID (1434243584) or an Apple Podcasts URL.",
            "default": [
              "1434243584"
            ],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Storefronts",
            "type": "array",
            "description": "Apple runs a separate catalogue per country, and search returns at most 100 per query with no way to page. Adding storefronts is the only way past that ceiling: measured, one country gave 100 podcasts and five gave 226. Also controls which country's charts you get.",
            "default": [
              "US"
            ],
            "items": {
              "type": "string"
            }
          },
          "genre": {
            "title": "Genre",
            "enum": [
              "all",
              "arts",
              "business",
              "comedy",
              "education",
              "fiction",
              "government",
              "health",
              "history",
              "kids-family",
              "leisure",
              "music",
              "news",
              "religion-spirituality",
              "science",
              "society-culture",
              "sports",
              "technology",
              "true-crime",
              "tv-film"
            ],
            "type": "string",
            "description": "Filter search results, or pick the chart genre.",
            "default": "all"
          },
          "includeContact": {
            "title": "Fetch owner contact details",
            "type": "boolean",
            "description": "Reads each show's RSS feed to get the owner name and contact email, which the Apple API does not return at all. Measured 7 of 7 on a sample. This is the field that turns a podcast list into an outreach list. Costs one extra request per show.",
            "default": false
          },
          "episodesPerPodcast": {
            "title": "Episodes per podcast",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Only used by episodes mode. Unlike search, episodes really do go deep - 200 per show works.",
            "default": 20
          },
          "minEpisodes": {
            "title": "Minimum episodes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only shows with at least this many episodes. Useful for filtering out abandoned one-off shows.",
            "default": 0
          },
          "activeOnly": {
            "title": "Only active shows",
            "type": "boolean",
            "description": "Keep only podcasts that published in the last 90 days.",
            "default": false
          },
          "withEmailOnly": {
            "title": "Only shows with a contact email",
            "type": "boolean",
            "description": "Drop shows with no contact address. Needs 'Fetch owner contact details' turned on, since the email is not in the Apple API.",
            "default": false
          },
          "excludeExplicit": {
            "title": "Exclude explicit shows",
            "type": "boolean",
            "description": "Drop podcasts marked explicit.",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Keep only shows whose RSS declares this language, e.g. en, de, es. Needs 'Fetch owner contact details' on, since language comes from the feed."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "default",
              "episodes",
              "newest",
              "oldest",
              "name",
              "rank"
            ],
            "type": "string",
            "description": "How to order the results.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "How many rows to return, and what you pay for.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}