{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Podcasts Charts & Reviews Scraper",
    "description": "Scrape Apple Podcasts top charts by category & country, plus podcast metadata and listener reviews. Ranks, publishers, genres, episode counts, ratings & review text for podcast advertising, competitor and sentiment research. No API key.",
    "version": "1.0",
    "x-build-id": "4LpQwkawVHsa5HqTO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~apple-podcast-charts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-apple-podcast-charts-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/logiover~apple-podcast-charts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-apple-podcast-charts-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/logiover~apple-podcast-charts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-apple-podcast-charts-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": "Mode — what to scrape",
            "enum": [
              "both",
              "charts",
              "reviews"
            ],
            "type": "string",
            "description": "What to collect. 'Top charts' = ranked podcasts per category & country. 'Reviews' = listener reviews for chart podcasts (or your own Podcast IDs). 'Both' = charts enriched with metadata plus reviews (default).",
            "default": "both"
          },
          "country": {
            "title": "Country / Storefront",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "se",
              "no",
              "dk",
              "fi",
              "ie",
              "pl",
              "br",
              "mx",
              "ar",
              "jp",
              "kr",
              "in",
              "nz",
              "za",
              "ae",
              "sa",
              "tr",
              "ru",
              "ch",
              "at",
              "be",
              "pt",
              "gr",
              "cz",
              "hu",
              "all"
            ],
            "type": "string",
            "description": "Apple Podcasts storefront to pull charts & reviews from. Rankings differ by country. Choose 'All top markets' to sweep the five biggest storefronts (US, UK, CA, AU, DE).",
            "default": "us"
          },
          "genres": {
            "title": "Podcast categories",
            "type": "array",
            "description": "Apple Podcasts categories to pull the top charts for. Leave empty (or pick 'All categories') to sweep all 19 categories — the default, which yields 1,000+ chart entries per country.",
            "items": {
              "type": "string",
              "enum": [
                "26",
                "1301",
                "1321",
                "1303",
                "1304",
                "1483",
                "1511",
                "1512",
                "1487",
                "1305",
                "1502",
                "1310",
                "1489",
                "1314",
                "1533",
                "1324",
                "1545",
                "1309",
                "1318",
                "1488"
              ],
              "enumTitles": [
                "All categories",
                "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"
              ]
            },
            "default": []
          },
          "includeReviews": {
            "title": "Include listener reviews",
            "type": "boolean",
            "description": "Also fetch listener reviews (rating, title, text, author, date) for each chart podcast. Overrides the mode's default. Reviews are collected from the selected storefront.",
            "default": false
          },
          "podcastIds": {
            "title": "Podcast IDs (for Reviews mode)",
            "type": "array",
            "description": "Optional list of Apple Podcasts collection IDs to fetch reviews & metadata for directly. The ID is the number in a podcast URL, e.g. for https://podcasts.apple.com/us/podcast/the-daily/id1200361736 the ID is '1200361736'. When provided in Reviews / Both mode, these are used instead of chart discovery.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerPodcast": {
            "title": "Max reviews per podcast",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on how many reviews to pull per podcast (Apple serves ~50 per page, up to 10 pages = ~500). Lower this to spread review coverage across more shows.",
            "default": 50
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of rows (chart entries + reviews) to return. Default 1,000 keeps the empty-input run fast & cheap. Raise it to pull more.",
            "default": 1000
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy configuration. Automatic proxy works well for Apple's public endpoints; the Actor also falls back to a direct connection if a proxy IP fails.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}