{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Podcasts Scraper - Shows, Episodes, Charts, Reviews",
    "description": "Scrape Apple Podcasts: search shows in any country, top charts by country and genre, show details, episodes from the RSS feed (title, date, duration, audio URL, season/episode) and listener reviews. HTTP-only, pay per result.",
    "version": "1.0",
    "x-build-id": "UpwLtnsohN4qY4cT9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/randy-tools~apple-podcasts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-randy-tools-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/randy-tools~apple-podcasts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-randy-tools-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/randy-tools~apple-podcasts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-randy-tools-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": {
          "showIds": {
            "title": "Show ids or URLs",
            "type": "array",
            "description": "Numeric Apple Podcasts ids such as \"1200361736\", or podcasts.apple.com show URLs (the storefront in the URL is used).",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Find shows by keyword, e.g. \"true crime\", \"personal finance\". Top results are scraped.",
            "items": {
              "type": "string"
            }
          },
          "maxShowsPerSearch": {
            "title": "Max shows per search term",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Up to 200, per search term and country.",
            "default": 10
          },
          "searchCountries": {
            "title": "Search countries",
            "type": "array",
            "description": "Two-letter storefronts to search, e.g. us, gb, de, jp. Empty = the Country field below. Each country returns its own ranking.",
            "items": {
              "type": "string"
            }
          },
          "chartCountries": {
            "title": "Top chart countries",
            "type": "array",
            "description": "Scrape the Apple Podcasts top charts of these storefronts, e.g. us, gb, au. Chart rank is added to every show.",
            "items": {
              "type": "string"
            }
          },
          "chartGenres": {
            "title": "Top chart genres",
            "type": "array",
            "description": "Genres to chart. Leave empty for the overall top chart.",
            "items": {
              "type": "string",
              "enum": [
                "1301",
                "1321",
                "1303",
                "1304",
                "1483",
                "1511",
                "1512",
                "1487",
                "1305",
                "1502",
                "1310",
                "1489",
                "1314",
                "1533",
                "1324",
                "1545",
                "1309",
                "1318",
                "1488"
              ],
              "enumTitles": [
                "Arts",
                "Business",
                "Comedy",
                "Education",
                "Fiction",
                "Government",
                "Health & Fitness",
                "History",
                "Kids & Family",
                "Leisure",
                "Music",
                "News",
                "Religion & Spirituality",
                "Science",
                "Society & Culture",
                "Sports",
                "TV & Film",
                "Technology",
                "True Crime"
              ]
            }
          },
          "maxShowsPerChart": {
            "title": "Max shows per chart",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Up to 200 (overall chart: 100).",
            "default": 25
          },
          "includeShowDetails": {
            "title": "Include show details",
            "type": "boolean",
            "description": "Output one record per show: name, artist, feed URL, genres, artwork, episode count, latest release, explicit flag and more.",
            "default": true
          },
          "maxEpisodesPerShow": {
            "title": "Max episodes per show",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no episodes. Read from the show's RSS feed, newest first; falls back to the iTunes episode list when the feed is unreachable.",
            "default": 0
          },
          "episodesSince": {
            "title": "Only episodes since",
            "type": "string",
            "description": "YYYY-MM-DD. Skips older episodes, which keeps daily monitoring cheap."
          },
          "maxReviewsPerShow": {
            "title": "Max reviews per show",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "0 = no reviews. Apple exposes at most 500 reviews per show, country and sort order.",
            "default": 0
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "recent",
              "helpful"
            ],
            "type": "string",
            "description": "Order in which Apple returns reviews.",
            "default": "recent"
          },
          "reviewStars": {
            "title": "Only these star ratings",
            "type": "array",
            "description": "Leave empty for all. Apple has no star filter, so reviews are filtered after download.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "reviewsSince": {
            "title": "Only reviews since",
            "type": "string",
            "description": "YYYY-MM-DD. With 'Most recent' the run stops as soon as it reaches older reviews."
          },
          "anonymizeReviewers": {
            "title": "Anonymize reviewers",
            "type": "boolean",
            "description": "Leave out reviewer nicknames.",
            "default": false
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Default storefront for show ids and reviews, e.g. us, gb, de, jp. Reviews are per country.",
            "default": "us"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Used only if Apple rate-limits or blocks the direct connection. Datacenter proxy (the default) is included in the price.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}