{
  "openapi": "3.0.1",
  "info": {
    "title": "Podcast Directory Scraper — Apple Podcasts Search & Episodes",
    "description": "Apple Podcasts directory scraper: search shows by keyword, ID, URL or the top chart of any country and genre; get name, author, RSS feed URL, artwork, genres, episode count and latest release as flat JSON, plus optional episodes from each feed. No API key. From US$2.10 per 1,000.",
    "version": "0.1",
    "x-build-id": "1z0yb0Ou3jOWz45hJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~podcast-directory-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-podcast-directory-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/fabrikit~podcast-directory-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-podcast-directory-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/fabrikit~podcast-directory-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-podcast-directory-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search in the Apple Podcasts directory, one search per entry (for example: marketing, true crime, meditación). Apple returns at most 100 shows per term; the rank of each show for the term is saved as `position`.",
            "items": {
              "type": "string"
            }
          },
          "podcastIds": {
            "title": "Podcast IDs, URLs or show names",
            "type": "array",
            "description": "Specific shows: numeric Apple Podcasts IDs (1200361736 or id1200361736), Apple Podcasts URLs (https://podcasts.apple.com/us/podcast/the-daily/id1200361736, episode URLs work too) or a show name (resolved to the top search match). The country in a URL overrides the directory country below.",
            "items": {
              "type": "string"
            }
          },
          "topChart": {
            "title": "Top chart",
            "type": "boolean",
            "description": "Read Apple's Top Podcasts chart of the directory country (all genres, or only the genre below). The rank is saved as `chartRank` on every record.",
            "default": false
          },
          "genre": {
            "title": "Genre",
            "type": "string",
            "description": "Optional Apple Podcasts genre, by name or ID: Arts, Business (1321), Comedy, Education, Fiction, Government, Health & Fitness, History, Kids & Family, Leisure, Music, News, Religion & Spirituality, Science, Society & Culture, Sports, TV & Film, Technology (1318), True Crime (1488), or a subgenre such as Marketing, Investing, Self-Improvement, Mental Health. The top chart is read for that genre and search results outside it are dropped."
          },
          "chartSize": {
            "title": "Chart size",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many ranked shows to read from the top chart (1 to 200).",
            "default": 50
          },
          "country": {
            "title": "Directory country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter Apple Podcasts country code (us, gb, de, fr, es, br, mx, jp, in, ...). Search results, charts and genre names are specific to each country's directory.",
            "default": "us"
          },
          "includeEpisodes": {
            "title": "Include episodes (add-on)",
            "type": "boolean",
            "description": "Open the RSS feed of every show to add its description, language, website, categories and feed stats to the podcast record, and save one `episode` record per episode (title, date, duration, audio URL, show notes, season / episode numbers). Charged per episode saved.",
            "default": false
          },
          "maxEpisodesPerPodcast": {
            "title": "Maximum episodes per podcast",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Newest episodes to save per show when episodes are included (1 to 10,000).",
            "default": 20
          },
          "includeOwnerContact": {
            "title": "Include feed owner contact",
            "type": "boolean",
            "description": "Add the `itunes:owner` name of the feed and, only when it is a role or brand mailbox on a company domain (info@, podcast@, show name@...), its e-mail. Personal mailboxes and free e-mail providers are never saved. Needs \"Include episodes\".",
            "default": false
          },
          "maxItems": {
            "title": "Maximum podcasts",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many podcasts in total (exact; duplicates across sources are skipped and not charged). Episode records do not count towards this limit.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy settings for Apple's endpoints. They normally work from datacenter IPs; if Apple answers with its per-IP rate limit (HTTP 403/429) the Actor retries with backoff and switches to a residential proxy in the directory country. RSS feeds are always fetched through the datacenter / direct connection.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}