{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Podcasts Scraper — Charts, Search & Episodes",
    "description": "Get Apple Podcasts top charts by country and genre, search shows, and read episodes from public RSS feeds. Input: countries, genres, search terms or show URLs. Output: one JSON row per show or episode with rank, publisher, feed URL, dates, audio and transcript links. No API key.",
    "version": "0.1",
    "x-build-id": "cbQRFjdaxhGPLGn8C"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/istmobot~apple-podcasts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-istmobot-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/istmobot~apple-podcasts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-istmobot-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/istmobot~apple-podcasts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-istmobot-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 get",
            "enum": [
              "charts",
              "search",
              "podcasts"
            ],
            "type": "string",
            "description": "\"charts\": the Apple Podcasts top charts of the chosen countries and genres. \"search\": shows that match your search terms. \"podcasts\": specific shows by Apple id, Apple Podcasts URL or RSS feed URL. E.g. \"charts\".",
            "default": "charts"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter Apple store codes, e.g. [\"us\", \"gb\", \"mx\"]. Each country is a separate chart or search. Mode \"podcasts\" uses the first one only. Empty = us.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum shows per chart or search term",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Rows per chart (country and genre) or per search term and country, e.g. 50. Show charts have up to 200 places, the episode chart up to 100, and a search returns up to about 100 shows.",
            "default": 50
          },
          "chartType": {
            "title": "Chart",
            "enum": [
              "shows",
              "episodes"
            ],
            "type": "string",
            "description": "For mode \"charts\". \"shows\": top shows, by genre if you like. \"episodes\": top trending episodes, published by Apple for all genres together. E.g. \"shows\".",
            "default": "shows"
          },
          "genres": {
            "title": "Chart genres",
            "type": "array",
            "description": "Genres of the top shows chart, e.g. [\"technology\", \"true-crime\"]. \"all\" is the overall chart. Each genre is a separate chart. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "arts",
                "business",
                "comedy",
                "education",
                "fiction",
                "government",
                "health-fitness",
                "history",
                "kids-family",
                "leisure",
                "music",
                "news",
                "religion-spirituality",
                "science",
                "society-culture",
                "sports",
                "technology",
                "true-crime",
                "tv-film"
              ],
              "enumTitles": [
                "All genres",
                "Arts",
                "Business",
                "Comedy",
                "Education",
                "Fiction",
                "Government",
                "Health & Fitness",
                "History",
                "Kids & Family",
                "Leisure",
                "Music",
                "News",
                "Religion & Spirituality",
                "Science",
                "Society & Culture",
                "Sports",
                "Technology",
                "True Crime",
                "TV & Film"
              ]
            }
          },
          "trackChanges": {
            "title": "Track rank changes",
            "type": "boolean",
            "description": "Compare each chart with the previous run that had this option on. Adds previousRank, rankChange (positive = moved up) and isNewEntry to each row. They are null on the first run. E.g. true with a daily schedule.",
            "default": false
          },
          "searchTerms": {
            "title": "Search terms",
            "maxItems": 500,
            "type": "array",
            "description": "For mode \"search\": one term per line, e.g. \"artificial intelligence\", \"startup\" or \"Lex Fridman\". A show found by several terms is returned once.",
            "items": {
              "type": "string"
            }
          },
          "podcasts": {
            "title": "Podcasts",
            "maxItems": 1000,
            "type": "array",
            "description": "For mode \"podcasts\": one per line, as an Apple Podcasts URL (https://podcasts.apple.com/us/podcast/the-daily/id1200361736), an Apple id (1200361736) or the URL of an RSS feed (https://feeds.simplecast.com/Sl5CSM3S).",
            "items": {
              "type": "string"
            }
          },
          "output": {
            "title": "Rows to return",
            "enum": [
              "podcasts",
              "episodes",
              "both"
            ],
            "type": "string",
            "description": "\"podcasts\": one row per show. \"episodes\": one row per episode of each show. \"both\": the show row followed by its episodes. Episodes come from each show's public RSS feed. Not used by the top episodes chart. E.g. \"podcasts\".",
            "default": "podcasts"
          },
          "maxEpisodesPerPodcast": {
            "title": "Maximum episodes per show",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "The newest episodes to return for each show, e.g. 10.",
            "default": 10
          },
          "publishedAfter": {
            "title": "Episodes published after",
            "type": "string",
            "description": "Keep only episodes published since this date: YYYY-MM-DD (e.g. 2026-11-01) or a relative value such as \"24 hours\" or \"7 days\". Empty = no limit."
          },
          "onlyNew": {
            "title": "Only new episodes",
            "type": "boolean",
            "description": "Return (and charge) only episodes that earlier runs with this option did not return. Made for scheduled runs. E.g. true.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of \"Track rank changes\" and \"Only new episodes\" separate for each monitor, e.g. \"client-a\". Leave empty if you run a single monitor."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}