{
  "openapi": "3.0.1",
  "info": {
    "title": "Podcast Scraper - Apple Podcasts Search, Charts & RSS Episodes",
    "description": "Scrape podcasts from Apple Podcasts search, top charts (any country/genre) or show URLs, enriched from each RSS feed: website, language, episode count, last episode date, release frequency, hosting provider and latest episodes. No login, proxy or API key. $1.20 per 1,000 podcasts.",
    "version": "0.1",
    "x-build-id": "bw5J41FtP4wjBvwPu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/consequential_programmer~podcast-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-consequential_programmer-podcast-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/consequential_programmer~podcast-scraper/runs": {
      "post": {
        "operationId": "runs-sync-consequential_programmer-podcast-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/consequential_programmer~podcast-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-consequential_programmer-podcast-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search on Apple Podcasts, for example a niche (marketing, true crime), a topic or a show name. Each term returns up to \"Max results per search\" shows.",
            "items": {
              "type": "string"
            }
          },
          "podcastUrls": {
            "title": "Podcast URLs, Apple IDs or RSS feeds",
            "type": "array",
            "description": "Specific shows to scrape: Apple Podcasts URLs (https://podcasts.apple.com/us/podcast/the-daily/id1200361736), Apple IDs (1200361736) or any podcast RSS feed URL.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "topCharts": {
            "title": "Include Apple Podcasts top charts",
            "type": "boolean",
            "description": "Also scrape the current Apple Podcasts top shows chart for the selected country and genre, with each show's chart rank.",
            "default": false
          },
          "chartGenre": {
            "title": "Top chart genre",
            "enum": [
              "all",
              "1301",
              "1321",
              "1303",
              "1304",
              "1483",
              "1511",
              "1512",
              "1487",
              "1305",
              "1502",
              "1310",
              "1489",
              "1314",
              "1533",
              "1324",
              "1545",
              "1309",
              "1318",
              "1488"
            ],
            "type": "string",
            "description": "Which top chart to use when \"Include Apple Podcasts top charts\" is on.",
            "default": "all"
          },
          "chartLimit": {
            "title": "Top chart size",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many top chart positions to scrape (1-200).",
            "default": 50
          },
          "country": {
            "title": "Country (Apple storefront)",
            "type": "string",
            "description": "2-letter country code of the Apple Podcasts store to search and take charts from, for example us, gb, ca, au, de, fr, in.",
            "default": "us"
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Podcasts to take from each search term (Apple returns at most 200).",
            "default": 50
          },
          "maxPodcasts": {
            "title": "Max podcasts",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of podcasts to save in this run (after duplicates and filters are removed). Controls the cost.",
            "default": 100
          },
          "fetchFeedDetails": {
            "title": "Read RSS feed details",
            "type": "boolean",
            "description": "Read each show's public RSS feed to add website, description, language, real episode count, first and last episode dates, release frequency, active status and hosting provider. Turn off for Apple data only (faster).",
            "default": true
          },
          "includeEpisodes": {
            "title": "Include episodes",
            "type": "boolean",
            "description": "Also save the latest episodes of each show as separate rows (title, date, duration, audio URL, season/episode number, description). Charged per episode.",
            "default": false
          },
          "maxEpisodesPerPodcast": {
            "title": "Max episodes per podcast",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many of the latest episodes to save per show when \"Include episodes\" is on.",
            "default": 10
          },
          "activeWithinDays": {
            "title": "Only shows active within (days)",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "Keep only shows that published an episode in the last N days. 0 = no filter. Filtered-out shows are free.",
            "default": 0
          },
          "minEpisodes": {
            "title": "Minimum episodes",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Keep only shows with at least this many episodes in their feed. 0 = no filter.",
            "default": 0
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Keep only shows whose feed language matches, for example en, de, es (en also matches en-us and en-gb). Empty = all languages.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeExplicit": {
            "title": "Exclude explicit shows",
            "type": "boolean",
            "description": "Skip shows marked as explicit.",
            "default": false
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout for each Apple API or RSS feed request.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}