{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Podcasts + Listen Notes Scraper",
    "description": "Scrape podcast and episode data from Apple Podcasts (free, no auth) or Listen Notes (free tier with API key). Search, lookup-by-ID, top charts, best podcasts by genre, episodes, and trending.",
    "version": "1.0",
    "x-build-id": "xDax1ZLfDiGmqCJgt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~applepodcasts-listennotes-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-applepodcasts-listennotes-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/crawlerbros~applepodcasts-listennotes-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-applepodcasts-listennotes-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/crawlerbros~applepodcasts-listennotes-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-applepodcasts-listennotes-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",
        "required": [
          "platform",
          "mode"
        ],
        "properties": {
          "platform": {
            "title": "Platform",
            "enum": [
              "applePodcasts",
              "listenNotes"
            ],
            "type": "string",
            "description": "Which podcast directory to scrape.",
            "default": "applePodcasts"
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "searchPodcasts",
              "lookupById",
              "topPodcasts",
              "searchEpisodes",
              "searchCurated",
              "podcastById",
              "episodeById",
              "bestPodcasts",
              "genres",
              "trending"
            ],
            "type": "string",
            "description": "What to fetch. Apple supports: searchPodcasts, searchEpisodes, lookupById, topPodcasts. Listen Notes supports: searchPodcasts, searchEpisodes, searchCurated, podcastById, episodeById, bestPodcasts, genres, trending.",
            "default": "topPodcasts"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text query for any `search*` mode. Example: `marketing podcast`."
          },
          "country": {
            "title": "Apple country / store",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "se",
              "dk",
              "no",
              "fi",
              "ie",
              "be",
              "at",
              "ch",
              "pt",
              "pl",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "jp",
              "kr",
              "cn",
              "tw",
              "hk",
              "sg",
              "in",
              "id",
              "ph",
              "th",
              "my",
              "vn",
              "tr",
              "ru",
              "ua",
              "il",
              "sa",
              "ae",
              "eg",
              "za",
              "ng",
              "ke",
              "nz"
            ],
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code for the Apple store / RSS region. Affects `searchPodcasts`, `lookupById`, `topPodcasts`.",
            "default": "us"
          },
          "appleGenre": {
            "title": "Apple Podcasts genre (mode=topPodcasts)",
            "enum": [
              "",
              "arts",
              "business",
              "comedy",
              "education",
              "fiction",
              "government",
              "health",
              "history",
              "kids-family",
              "leisure",
              "music",
              "news",
              "religion-spirituality",
              "science",
              "society-culture",
              "sports",
              "technology",
              "true-crime",
              "tv-film"
            ],
            "type": "string",
            "description": "Apple Podcasts genre slug. Used by `mode=topPodcasts` to filter the chart by category.",
            "default": "technology"
          },
          "appleIds": {
            "title": "Apple Podcast IDs (mode=lookupById)",
            "type": "array",
            "description": "Numeric Apple Podcast collection IDs (e.g. `1200361736` for The Daily). Each ID is fetched via the iTunes Lookup API.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "listenNotesApiKey": {
            "title": "Listen Notes API key",
            "type": "string",
            "description": "Free or paid Listen Notes API key (https://www.listennotes.com/api/). Required only when `platform=listenNotes`. Example: 32-char hex."
          },
          "listenNotesIds": {
            "title": "Listen Notes podcast / episode IDs (mode=podcastById / episodeById)",
            "type": "array",
            "description": "Listen Notes IDs (32-char hash strings).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "listenNotesGenreId": {
            "title": "Listen Notes genre ID (mode=bestPodcasts)",
            "minimum": 1,
            "maximum": 9999,
            "type": "integer",
            "description": "Listen Notes numeric genre ID. Use `mode=genres` first to discover IDs (e.g. 67=Technology, 99=News, 93=Business)."
          },
          "listenNotesType": {
            "title": "Listen Notes search type",
            "enum": [
              "podcast",
              "episode",
              "curated"
            ],
            "type": "string",
            "description": "Result type for Listen Notes search.",
            "default": "podcast"
          },
          "listenNotesRegion": {
            "title": "Listen Notes region (mode=bestPodcasts)",
            "enum": [
              "",
              "us",
              "gb",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "se",
              "br",
              "mx",
              "jp",
              "kr",
              "in",
              "sg",
              "nz",
              "za"
            ],
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code restricting Listen Notes results."
          },
          "listenNotesLanguage": {
            "title": "Listen Notes language",
            "enum": [
              "",
              "English",
              "Spanish",
              "Portuguese",
              "French",
              "German",
              "Italian",
              "Russian",
              "Japanese",
              "Korean",
              "Chinese",
              "Arabic",
              "Dutch",
              "Swedish",
              "Polish",
              "Turkish",
              "Hindi"
            ],
            "type": "string",
            "description": "Filter Listen Notes results to a specific language."
          },
          "listenNotesSafeMode": {
            "title": "Safe mode (Listen Notes)",
            "type": "boolean",
            "description": "If on, Listen Notes excludes explicit content (`safe_mode=1`).",
            "default": true
          },
          "listenNotesSortByDate": {
            "title": "Sort by date (Listen Notes search)",
            "type": "boolean",
            "description": "If on, Listen Notes search results are sorted by date (newest first) instead of relevance.",
            "default": false
          },
          "minLastEpisodeDays": {
            "title": "Active podcasts only (last N days)",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "Drop podcasts whose latest episode is older than N days. Use `30` to keep only podcasts that released an episode in the last month. `0` = disabled."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records. Example: `100`.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}