{
  "openapi": "3.0.1",
  "info": {
    "title": "Podcast Scraper: Apple Podcasts Search, Charts & RSS Episodes",
    "description": "Search Apple Podcasts, look up shows by link or id, or pull the Top Shows chart per country; get publisher, feed URL, genres, rating and the newest episodes with audio URLs, durations and descriptions. No proxy, no start fee. $0.90 per 1,000 podcasts, $0.40 per 1,000 episodes.",
    "version": "0.1",
    "x-build-id": "HnM5e3B4VVO56xzhP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidyharvest~podcast-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidyharvest-podcast-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/tidyharvest~podcast-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tidyharvest-podcast-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/tidyharvest~podcast-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tidyharvest-podcast-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": "Find podcasts by keyword, one per line (same search as Apple Podcasts: matches show titles, publishers and topics).",
            "items": {
              "type": "string"
            }
          },
          "podcasts": {
            "title": "Podcasts (Apple links, ids or RSS feeds)",
            "type": "array",
            "description": "Specific shows, one per line: an Apple Podcasts link (`https://podcasts.apple.com/us/podcast/the-daily/id1200361736`), the numeric Apple id (`1200361736`), or any public RSS feed URL (works for shows not listed on Apple too).",
            "items": {
              "type": "string"
            }
          },
          "chartCountries": {
            "title": "Top-podcast charts (countries)",
            "type": "array",
            "description": "Add Apple's current Top Shows chart for these countries (2-letter codes: `us`, `gb`, `de`, `ca`, ...). Each row gets `chartRank`.",
            "items": {
              "type": "string"
            }
          },
          "chartLimit": {
            "title": "Chart size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many shows to take from each chart (Apple publishes up to 100).",
            "default": 25
          },
          "country": {
            "title": "Apple Podcasts store country",
            "type": "string",
            "description": "2-letter store country for search and id lookups (`us`, `gb`, `de`, `fr`, `jp`, ...). Apple links carry their own country.",
            "default": "us"
          },
          "maxResultsPerSearch": {
            "title": "Max podcasts per search term",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Apple returns at most 200 shows per search.",
            "default": 20
          },
          "maxPodcasts": {
            "title": "Max podcasts in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on podcast rows for the whole run (also caps your cost). 0 or empty = no limit."
          },
          "includeEpisodes": {
            "title": "Include episodes (read each show's RSS feed)",
            "type": "boolean",
            "description": "Reads each podcast's public RSS feed: adds episode rows plus the show's description, language, website and feed episode count. Off = Apple directory data only (faster, podcast rows only).",
            "default": true
          },
          "maxEpisodesPerPodcast": {
            "title": "Max episodes per podcast",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Newest episodes first. 0 = no episode rows but still enrich the podcast row from its feed.",
            "default": 10
          },
          "episodesSince": {
            "title": "Only episodes published since (YYYY-MM-DD)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Skip older episodes (not charged)."
          },
          "episodeKeywords": {
            "title": "Episode keywords (match any)",
            "type": "array",
            "description": "Keep an episode only if its title or description contains one of these (case-insensitive). Empty = all. Filtered episodes are not charged.",
            "items": {
              "type": "string"
            }
          },
          "includeRating": {
            "title": "Include Apple star rating",
            "type": "boolean",
            "description": "Adds `rating` (1-5) and `ratingCount` from the public Apple Podcasts show page. One extra page load per podcast, so slower.",
            "default": false
          },
          "includeOwnerContact": {
            "title": "Owner name and email",
            "type": "boolean",
            "description": "Add the contact the podcast's publisher lists in its own feed for Apple Podcasts (`ownerName`, `ownerEmail`), useful for guest booking and sponsorship outreach. Needs episodes on (the feed is read then). Turn off if you don't need personal contact data.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}