{
  "openapi": "3.0.1",
  "info": {
    "title": "Podcast Charts Scraper: Spotify + Apple Ranks by Country",
    "description": "Spotify and Apple Podcasts top charts for 170+ countries in one table: rank, movement, show, publisher, episode, plus each show's rank on the other platform. Top podcasts, top episodes, trending and 17 Spotify categories. Optional Apple ratings, category and RSS feed. No login.",
    "version": "0.1",
    "x-build-id": "2zpPM7cUo9dcLoJ9v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~podcast-charts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-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/yugenox~podcast-charts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-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/yugenox~podcast-charts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-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": {
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Which charts to read: Spotify, Apple Podcasts or both. With both, every row also gets the show's rank on the other platform's Top Podcasts chart in the same country.",
            "items": {
              "type": "string",
              "enum": [
                "spotify",
                "apple"
              ],
              "enumTitles": [
                "Spotify",
                "Apple Podcasts"
              ]
            },
            "default": [
              "spotify",
              "apple"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter country codes, e.g. us, gb, ca, au, de, br, in, jp. Spotify publishes podcast charts in 26 countries (us, ar, au, at, br, ca, cl, co, dk, fi, fr, de, in, id, ie, it, jp, mx, nz, no, ph, pl, es, se, nl, gb); Apple Podcasts in about 170. A country a platform doesn't cover is skipped for that platform, never charged.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "Charts",
            "type": "array",
            "description": "Top Podcasts and Top Episodes exist on both platforms (Apple calls them Top Shows and Top Episodes). Trending and the category charts are Spotify only; Spotify publishes category charts in us, au, br, de, mx, se and gb.",
            "items": {
              "type": "string",
              "enum": [
                "top-podcasts",
                "top-episodes",
                "trending",
                "arts",
                "business",
                "comedy",
                "education",
                "fiction",
                "health-fitness",
                "history",
                "leisure",
                "music",
                "news",
                "religion-spirituality",
                "science",
                "society-culture",
                "sports",
                "technology",
                "true-crime",
                "tv-film"
              ],
              "enumTitles": [
                "Top Podcasts / Top Shows",
                "Top Episodes",
                "Trending (Spotify)",
                "Arts (Spotify)",
                "Business (Spotify)",
                "Comedy (Spotify)",
                "Education (Spotify)",
                "Fiction (Spotify)",
                "Health & Fitness (Spotify)",
                "History (Spotify)",
                "Leisure (Spotify)",
                "Music (Spotify)",
                "News (Spotify)",
                "Religion & Spirituality (Spotify)",
                "Science (Spotify)",
                "Society & Culture (Spotify)",
                "Sports (Spotify)",
                "Technology (Spotify)",
                "True Crime (Spotify)",
                "TV & Film (Spotify)"
              ]
            },
            "default": [
              "top-podcasts"
            ]
          },
          "maxRank": {
            "title": "Positions per chart",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "How many positions to keep from each chart (from #1 down). Spotify's Top Podcasts, Top Episodes and Trending go to 200, its category charts to 50; Apple's charts go to 100 (when Apple's full chart is slow to answer, its public charts page is used instead and lists the top 24). 0 = the whole chart.",
            "default": 50
          },
          "enrichShows": {
            "title": "Add Apple show details",
            "type": "boolean",
            "description": "Read each show's Apple Podcasts page once per country and add its star rating, number of ratings, ratings per star, category, release frequency, latest episode date, episode count, RSS feed URL, website, creator and provider. Applies to Apple rows and to Spotify rows whose show is also on Apple's Top Shows chart in the run. Charged per show and country (see Pricing).",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of chart rows for the whole run. 0 = no limit.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan, including the free one.",
            "default": {
              "useApifyProxy": true
            }
          },
          "_noResidential": {
            "title": "Run as an account without residential proxies",
            "type": "boolean",
            "description": "Internal (canaries): behave exactly like an account without the RESIDENTIAL proxy group. This actor never uses residential proxies.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}