{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Podcasts Scraper · Search, Charts, Episodes, Reviews",
    "description": "Apple Podcasts for any country: search podcasts, daily top charts, full podcast details, episodes with audio links and durations (latest 200 from Apple or the whole archive from the feed), listener reviews with ratings, since-last-run checkpoint. $1.80 per 1,000 podcasts, $0.60 per 1,000 episodes.",
    "version": "1.0",
    "x-build-id": "MWpS0QXqp44lScDEJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/agentsgearbox~apple-podcasts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-agentsgearbox-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/agentsgearbox~apple-podcasts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-agentsgearbox-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/agentsgearbox~apple-podcasts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-agentsgearbox-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Podcast searches on Apple Podcasts, one per line. Each returns up to `maxPodcastsPerQuery` podcasts in each country.",
            "items": {
              "type": "string"
            }
          },
          "podcasts": {
            "title": "Podcasts",
            "type": "array",
            "description": "Specific podcasts: Apple IDs (`1434243584`) or Apple Podcasts URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "Top charts",
            "type": "array",
            "description": "Apple's daily podcast charts per country (`chartSize` entries each).",
            "items": {
              "type": "string",
              "enum": [
                "top",
                "top-subscriber"
              ],
              "enumTitles": [
                "Top shows",
                "Top subscriber shows"
              ]
            },
            "default": []
          },
          "chartSize": {
            "title": "Chart size",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Entries per chart and country, up to 200.",
            "default": 50
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Apple storefronts as two-letter codes (`us`, `gb`, `de`, `it`, `br`…). Searches, charts and reviews run once per country.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxPodcastsPerQuery": {
            "title": "Max podcasts per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Podcasts per search and country, up to 200.",
            "default": 20
          },
          "includeEpisodes": {
            "title": "Include episodes",
            "type": "boolean",
            "description": "One `episode` row per episode with title, description, release date, duration, audio URL and Apple page.",
            "default": true
          },
          "episodeSource": {
            "title": "Episode source",
            "enum": [
              "apple",
              "rss"
            ],
            "type": "string",
            "description": "Apple's lookup returns the latest 200 episodes in one request; the podcast's RSS feed holds the whole archive with season and episode numbers and takes one request per podcast.",
            "default": "apple"
          },
          "maxEpisodesPerPodcast": {
            "title": "Max episodes per podcast",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Newest first. Apple serves at most 200; the RSS feed has no limit.",
            "default": 50
          },
          "episodesAfter": {
            "title": "Episodes released after",
            "type": "string",
            "description": "ISO date (`2026-01-01`) or relative (`7d`, `30d`, `12w`). Episodes released before it are skipped."
          },
          "includeReviews": {
            "title": "Include listener reviews",
            "type": "boolean",
            "description": "One `review` row per review (rating, title, text, author, date) from each country's storefront, newest first.",
            "default": false
          },
          "maxReviewsPerPodcast": {
            "title": "Max reviews per podcast and country",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Newest first, up to 500 per country (Apple serves 50 per page).",
            "default": 50
          },
          "onlyNewSinceLastRun": {
            "title": "Only episodes newer than the last run (monitoring)",
            "type": "boolean",
            "description": "Remembers the newest episode date per podcast in a named key-value store and returns only newer episodes next time.",
            "default": false
          },
          "checkpointStoreName": {
            "title": "Checkpoint store name",
            "type": "string",
            "description": "Key-value store for the checkpoints (created automatically in your account).",
            "default": "apple-podcasts-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}