{
  "openapi": "3.0.1",
  "info": {
    "title": "Podcast, Substack, Beehiiv & YouTube Sponsor Leads Scraper",
    "description": "Discover niche podcasts (Apple Podcasts/iTunes + RSS), newsletters (Substack, Beehiiv), and YouTube creators by keyword or URL. Extract MX-validated public business emails, measure 30-day publishing cadence, and detect active brand sponsors & promo codes for influencer outreach & Clay.",
    "version": "1.0",
    "x-build-id": "NnCoBCRVSfTLm5gwM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~creator-podcast-sponsor-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-creator-podcast-sponsor-leads",
        "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/vesper_studio~creator-podcast-sponsor-leads/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-creator-podcast-sponsor-leads",
        "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/vesper_studio~creator-podcast-sponsor-leads/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-creator-podcast-sponsor-leads",
        "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": {
          "podcastKeywords": {
            "title": "Podcast search keywords (Apple Podcasts / iTunes)",
            "type": "array",
            "description": "Niche keywords to discover podcasts via the official Apple Podcasts / iTunes Search API (e.g. ['b2b saas', 'ai marketing', 'ecommerce']). Each matching podcast's RSS feed is automatically parsed.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "itunesCountry": {
            "title": "iTunes Search country code",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "2-letter ISO country code for Apple Podcasts Search (e.g. 'US', 'GB', 'FR', 'CA', 'DE').",
            "default": "US"
          },
          "podcastLimitPerKeyword": {
            "title": "Max podcasts per keyword",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of podcasts to fetch from Apple Podcasts Search per keyword (1-200).",
            "default": 25
          },
          "podcastRssUrls": {
            "title": "Direct podcast RSS feed URLs",
            "type": "array",
            "description": "Optional list of direct podcast RSS feed URLs to parse (e.g. Megaphone, Anchor/Spotify, Art19, Simplecast, Libsyn, Buzzsprout).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "newsletterUrls": {
            "title": "Newsletter URLs (Substack / Beehiiv / custom)",
            "type": "array",
            "description": "List of public Substack, Beehiiv, or custom newsletter URLs (e.g. 'https://www.lennysnewsletter.com', 'https://www.theneurondaily.com'). Extracts /about & /advertise emails, RSS issues, and sponsor links.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "youtubeChannels": {
            "title": "YouTube channel URLs, @handles, or IDs",
            "type": "array",
            "description": "List of YouTube channels as URLs ('https://www.youtube.com/@mkbhd'), handles ('@mkbhd'), or channel IDs ('UCBJycsmduvYEL83R_U4JriQ'). Extracts public bio emails, links, and recent video descriptions.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "youtubeKeywords": {
            "title": "YouTube channel search keywords",
            "type": "array",
            "description": "Optional keywords to discover niche YouTube channels. Uses YouTube Data API v3 when youtubeApiKey is provided, or public YouTube channel search HTML otherwise.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "youtubeLimitPerKeyword": {
            "title": "Max YouTube channels per keyword",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of YouTube channels to discover per keyword (1-50).",
            "default": 15
          },
          "youtubeApiKey": {
            "title": "YouTube Data API v3 Key (optional)",
            "type": "string",
            "description": "Optional YouTube Data API v3 key for high-volume channel discovery and video description retrieval without HTML rate limits."
          },
          "recentItemsToAnalyze": {
            "title": "Recent episodes / issues / videos to analyze",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of latest episodes, newsletter posts, or YouTube videos per creator to inspect for sponsorship signals, promo codes, and publishing cadence.",
            "default": 5
          },
          "minPostsLast30Days": {
            "title": "Minimum posts/episodes in last 30 days",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Filter out inactive creators. Set to 1 or higher to keep only active shows/newsletters/channels that published in the last 30 days.",
            "default": 0
          },
          "onlySponsored": {
            "title": "Only creators with detected sponsors",
            "type": "boolean",
            "description": "When enabled, emits only creators where at least one active sponsor brand, promo code, or sponsor tracking link was detected.",
            "default": false
          },
          "requireEmail": {
            "title": "Require public email",
            "type": "boolean",
            "description": "When enabled, skips creators that do not have a valid public creatorEmail or ownerEmail.",
            "default": false
          },
          "validateEmailMx": {
            "title": "Validate email MX DNS records",
            "type": "boolean",
            "description": "Verify that extracted email domains have valid DNS MX records to prevent bounced outreach in Clay/Instantly/Smartlead.",
            "default": true
          },
          "enrichCreatorWebsite": {
            "title": "Enrich email from creator website (/contact, /sponsor, /advertise)",
            "type": "boolean",
            "description": "When a podcast, newsletter, or YouTube channel lists a non-social homepage and no email was found yet, check its homepage and /contact, /advertise, or /sponsor pages.",
            "default": true
          },
          "onlyNew": {
            "title": "Delta mode (only new creators)",
            "type": "boolean",
            "description": "Skip creator IDs already emitted in previous runs (stored in Apify Key-Value Store 'creator-sponsor-delta-state'). Ideal for scheduled Clay / n8n pipelines.",
            "default": false
          },
          "maxResults": {
            "title": "Max creator leads to emit",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum total creator profiles to push to the dataset in this run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}