{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Podcasts Scraper - Search & RSS Metadata",
    "description": "Your podcast discovery toolkit for research and outreach planning. Search Apple Podcasts by keyword, show ID or country chart. Export show metadata, available public RSS owner emails and optional recent episode metadata. Direct RSS feeds supported.",
    "version": "1.0",
    "x-build-id": "LdDFWeOrXp3hmLOIr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pellucid_bird~podcast-directory-lens/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pellucid_bird-podcast-directory-lens",
        "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/pellucid_bird~podcast-directory-lens/runs": {
      "post": {
        "operationId": "runs-sync-pellucid_bird-podcast-directory-lens",
        "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/pellucid_bird~podcast-directory-lens/run-sync": {
      "post": {
        "operationId": "run-sync-pellucid_bird-podcast-directory-lens",
        "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",
            "maxItems": 20,
            "type": "array",
            "description": "Keywords, show titles or publisher names. Up to 20 terms; each term is at most 200 characters. Apple returns a ranked subset, not an exhaustive search. Use searchTerms or searchQuery, not both.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "countries": {
            "title": "Search storefronts",
            "maxItems": 10,
            "type": "array",
            "description": "Two-letter Apple storefront country codes. Default us; up to 10. Exact show lookups use the first country. Search term-country combinations, explicit IDs and chart countries together are limited to 100 discovery inputs.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2,
              "pattern": "^[A-Za-z]{2}$"
            }
          },
          "podcastIds": {
            "title": "Apple show IDs or URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Numeric Apple Podcasts IDs or HTTPS Apple show URLs. Episode links are rejected. Up to 100; lookup requests batch up to 50 IDs. Use podcastIds or podcasts, not both.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          "feedUrls": {
            "title": "Public RSS or Atom URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Direct public HTTP(S) podcast feeds on default ports. URLs with credentials, fragments, nonpublic addresses or unsafe redirects are rejected. RSS enrichment must be on.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          "chartCountries": {
            "title": "Top chart storefronts",
            "maxItems": 10,
            "type": "array",
            "description": "Two-letter country codes for official Apple top-podcast charts. Genre selection is supported.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2,
              "pattern": "^[A-Za-z]{2}$"
            }
          },
          "chartLimit": {
            "title": "Chart shows per country",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Default 50, maximum 200. Actual availability may be lower; lookup enriches chart identities."
          },
          "genreId": {
            "title": "Apple genre ID",
            "minimum": 1,
            "maximum": 999999,
            "type": "integer",
            "description": "Optional positive Apple genre identifier, for example 1318 Technology. Searches and exact lookups filter Apple genreIds; charts request the genre directly. Direct RSS inputs have no Apple genre IDs and are not filtered by this field."
          },
          "searchAttribute": {
            "title": "Search field",
            "enum": [
              "any",
              "title",
              "author"
            ],
            "type": "string",
            "description": "any searches Apple default fields; title and author use Apple titleTerm and authorTerm."
          },
          "maxResultsPerTerm": {
            "title": "Search results per term and country",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Default 50; requested maximum 200. Apple may return fewer results. There is no offset pagination. Genre filtering can further reduce the returned set."
          },
          "maxItems": {
            "title": "Maximum saved shows",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Default 50; hard maximum 500 including saved rows on resume. Runtime, transfer, request, size and spending limits can stop a run earlier. Reaching a cap does not establish a complete directory export."
          },
          "enrichFromRss": {
            "title": "Read public RSS feeds",
            "type": "boolean",
            "description": "Default true. Adds owner contacts, language, site, activity, description and episodes. Broken Apple-associated feeds can produce a charged metadata-only show explicitly marked FAILED/MISSING; failed direct RSS inputs produce no row."
          },
          "includeEpisodes": {
            "title": "Attach recent episodes",
            "type": "boolean",
            "description": "Default false in API input. Episodes are nested in each show record and included in its price. Only the current RSS feed is observed; feeds often omit older episodes. No audio is downloaded."
          },
          "maxEpisodesPerShow": {
            "title": "Recent episodes per show",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Default 10, maximum 100. Zero attaches no episodes; it does not mean unlimited. Episodes sort newest first; invalid dates sort last. RSS is still read fully within the response limit."
          },
          "onlyActiveWithinDays": {
            "title": "Published within days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Zero disables this filter. Otherwise, return only shows with a valid nonfuture episode published within this exact number of 24-hour days at the original run start. Requires RSS enrichment."
          },
          "onlyWithOwnerEmail": {
            "title": "Only shows with a published owner email",
            "type": "boolean",
            "description": "Requires RSS enrichment. Reads the owner email that the feed publisher declares; no guessed address or deliverability verification. Shows without an address are filtered before paid output."
          },
          "requestTimeoutSecs": {
            "title": "Timeout per physical request",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Default 15 seconds; includes DNS and body transfer. Redirects are separate requests and all consume the cumulative run budget."
          },
          "maxRetries": {
            "title": "Retries per source request",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Default 1. Retries selected network/HTTP failures; respects bounded Retry-After waits. Redirects and retries count toward the 1000-request and 300-second run limits."
          },
          "maxEstimatedCostUsd": {
            "title": "Estimated spending allowance (USD)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Planning allowance in USD. A smaller allowance can stop collection early; set the Apify run spending limit too. Zero prevents source requests. A started run can still incur its startup fee. Consult the active Pricing tab for charges; this is not a guaranteed final invoice cap."
          },
          "searchQuery": {
            "title": "Single search term (alias)",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "API alias for searchTerms; supply one alias only."
          },
          "country": {
            "title": "Single country (alias)",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "API alias for countries; supply one alias only."
          },
          "podcasts": {
            "title": "Apple show IDs (alias)",
            "maxItems": 100,
            "type": "array",
            "description": "API alias for podcastIds; Apple show IDs or URLs, not direct RSS URLs. Use feedUrls for RSS.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          "maxPodcasts": {
            "title": "Maximum shows (alias)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "API alias for maxItems; supply one alias only."
          },
          "maxEpisodesPerPodcast": {
            "title": "Episodes per show (alias)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "API alias for maxEpisodesPerShow; supply one alias only."
          },
          "onlyActive": {
            "title": "Active in 90 days (alias)",
            "type": "boolean",
            "description": "When true, defaults onlyActiveWithinDays to 90. An explicit onlyActiveWithinDays value takes precedence."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}