{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Podcasts Scraper: Top Charts Tracker, Rankings & Shows",
    "description": "Export Apple Podcasts (iTunes) top charts and rankings by country and genre, track chart rank changes between runs, search the podcast directory by keyword, and get show details with RSS feed URL and recent episodes with audio URLs. For podcast advertisers, PR and booking teams. No login.",
    "version": "0.1",
    "x-build-id": "dedMruPwBAjURaV5M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actorfactory~apple-podcasts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actorfactory-apple-podcasts",
        "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/actorfactory~apple-podcasts/runs": {
      "post": {
        "operationId": "runs-sync-actorfactory-apple-podcasts",
        "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/actorfactory~apple-podcasts/run-sync": {
      "post": {
        "operationId": "run-sync-actorfactory-apple-podcasts",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "charts",
              "search",
              "lookup"
            ],
            "type": "string",
            "description": "charts = Apple Podcasts top chart (overall or by genre). search = shows matching your keywords, ranked as Apple ranks them. lookup = details for specific shows.",
            "default": "charts"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter Apple Podcasts storefront codes, e.g. us, gb, de, fr. Each chart, keyword or lookup is collected once per country.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "genres": {
            "title": "Chart genres (charts mode)",
            "type": "array",
            "description": "Optional. Genre charts to export, for example \"true-crime\" or \"technology\". Leave empty for the overall top chart.",
            "items": {
              "type": "string",
              "enum": [
                "arts",
                "business",
                "comedy",
                "education",
                "fiction",
                "government",
                "history",
                "health-fitness",
                "kids-family",
                "leisure",
                "music",
                "news",
                "religion-spirituality",
                "science",
                "society-culture",
                "sports",
                "technology",
                "true-crime",
                "tv-film"
              ]
            }
          },
          "keywords": {
            "title": "Keywords (search mode)",
            "type": "array",
            "description": "Search terms, one per line. Example: \"history of rome\".",
            "items": {
              "type": "string"
            }
          },
          "podcastIds": {
            "title": "Shows (lookup mode)",
            "type": "array",
            "description": "Apple Podcasts IDs (1200361736) or show URLs (https://podcasts.apple.com/us/podcast/the-daily/id1200361736), one per line.",
            "items": {
              "type": "string"
            }
          },
          "resultsPerQuery": {
            "title": "Shows per chart / keyword",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many shows per chart or keyword and country (Apple allows up to 200).",
            "default": 25
          },
          "includeFeedStats": {
            "title": "Add publishing stats from RSS feeds",
            "type": "boolean",
            "description": "Reads each show's public RSS feed for exact episode count, first and last episode date, average days between episodes, language and website. Slower; turn off for a quick listing.",
            "default": true
          },
          "includeEpisodes": {
            "title": "Also collect recent episodes",
            "type": "boolean",
            "description": "Adds the most recent episodes of every show as separate results (billed as episode results).",
            "default": false
          },
          "episodesPerShow": {
            "title": "Episodes per show",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many recent episodes per show when \"Also collect recent episodes\" is on (1-50).",
            "default": 5
          },
          "trackChartChanges": {
            "title": "Track chart changes (charts mode)",
            "type": "boolean",
            "description": "Compares each chart with your previous tracked run and adds previous_rank, rank_change (positive = moved up) and chart_status (new, up, down, same) to every chart row. The first tracked run marks every show as new. Charts mode only. Off by default.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Tracking store name",
            "type": "string",
            "description": "Name of the key-value store that remembers chart rankings between runs. Letters, digits and hyphens only. Use a different name to keep separate histories. Example: my-podcast-charts.",
            "default": "apple-podcasts-charts"
          },
          "includeDroppedShows": {
            "title": "Also list shows that left the chart",
            "type": "boolean",
            "description": "With chart tracking on, adds one extra row (chart_status dropped_out) for each show that was in the previous tracked run but is no longer on the chart. These rows are not charged and do not count towards the maximum results.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many results (shows plus episodes). You are charged per result saved.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}