{
  "openapi": "3.0.1",
  "info": {
    "title": "Sponsor & Advertiser Finder — YouTube, Podcasts & Newsletters",
    "description": "Which brands sponsor which channels, shows and newsletters: one row per brand per video, episode or post, with domain, promo code, offer, sponsor link, the sentence it came from and a confidence grade. Read from public descriptions and show notes. No host or author data. No login, no key.",
    "version": "0.1",
    "x-build-id": "9KtfVvpnbE5SAT0I6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insight.solutions~sponsorship-intelligence-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insight.solutions-sponsorship-intelligence-api",
        "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/insight.solutions~sponsorship-intelligence-api/runs": {
      "post": {
        "operationId": "runs-sync-insight.solutions-sponsorship-intelligence-api",
        "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/insight.solutions~sponsorship-intelligence-api/run-sync": {
      "post": {
        "operationId": "run-sync-insight.solutions-sponsorship-intelligence-api",
        "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": {
          "mode": {
            "title": "What to scan",
            "enum": [
              "youtube",
              "podcast",
              "newsletter",
              "mixed"
            ],
            "type": "string",
            "description": "Which list below is read. **podcast** reads `podcasts`, **youtube** reads `youtubeChannels`, **newsletter** reads `newsletters`, and **mixed** reads all three in one run. A list the chosen mode does not read is ignored, so switching modes never mixes sources by accident.",
            "default": "podcast"
          },
          "youtubeChannels": {
            "title": "YouTube channels",
            "type": "array",
            "description": "Channels to scan, one per line: a handle (`@LinusTechTips`), a channel URL (`https://www.youtube.com/@mkbhd`) or a channel ID (`UC…`). Each channel's newest uploads are read, and each video's **full** description is fetched — the upload list only carries a snippet.",
            "items": {
              "type": "string"
            }
          },
          "podcasts": {
            "title": "Podcasts",
            "type": "array",
            "description": "Shows to scan, one per line: a show name (`Huberman Lab`, resolved through Apple's search), an Apple Podcasts link or ID, or an RSS feed URL. Each show's newest episodes are read from its own feed, show notes in full.",
            "items": {
              "type": "string"
            }
          },
          "newsletters": {
            "title": "Newsletters (Substack)",
            "type": "array",
            "description": "Substack publications to scan, one per line: a subdomain (`lenny`), a publication URL (`https://www.lennysnewsletter.com`) or a post link (its publication is read). Each publication's newest posts are read, body included.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSource": {
            "title": "Items per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many of the newest videos, episodes or posts are scanned per channel, show or publication. Each scanned item is one `item` row; each sponsor found in it is one `sponsorship` row.",
            "default": 30
          },
          "since": {
            "title": "Published on or after",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2})?)?$",
            "type": "string",
            "description": "Only scan items published on or after this date (`2026-09-01`, midnight UTC) or instant (`2026-09-01T00:00:00Z`). Older items are skipped and never billed. Leave empty for no date limit. A value that is not a date fails the run before any request, so a typo can never turn a dated run into a full one."
          },
          "brands": {
            "title": "Only these brands",
            "type": "array",
            "description": "Optional filter: report only sponsorships whose brand or link matches one of these — a name (`AG1`, `Athletic Greens`, `Eight Sleep`) or a domain (`drinkag1.com`, `shopify.com`). Case and spacing are ignored. Every scanned item is still returned (see the next option), so coverage stays visible. Leave empty to report every brand.",
            "items": {
              "type": "string"
            }
          },
          "includeItemsWithoutSponsors": {
            "title": "Return items with no sponsor",
            "type": "boolean",
            "description": "Return an `item` row for every scanned video, episode or post, even when no sponsor was found in it — that is what makes \"12 of 30 episodes were sponsored\" countable. Turn off to receive (and pay for) only the items that carry a sponsorship.",
            "default": true
          },
          "resolveLinks": {
            "title": "Follow sponsor links",
            "type": "boolean",
            "description": "Follow each sponsor link — and each shortener such as `bit.ly` or `geni.us` — once, redirects only, to learn the domain it really lands on (`finalDomain`). Reads no page body, 5 seconds per link, results cached for the run. It costs time, not money.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Sources in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many channels, shows or publications are scanned at once. Each keeps its own proxy session, so a source that gets refused burns only its own exit IP.",
            "default": 3
          },
          "maxRunSecs": {
            "title": "Maximum run time (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Wall-clock budget for the whole run. When it is reached the Actor stops fetching, keeps — and bills — every row it already wrote, and files a free `timeout` row for each source it never reached.",
            "default": 240
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify datacenter proxy by default. YouTube is asked from it first, and a video YouTube refuses twice is retried once through a residential exit the Actor creates itself, so residential traffic is spent only on refusals. Apple's search goes through it; podcast feeds and Substack go direct first and use it only when a host refuses. Choosing residential here sends every YouTube request residential and turns the fallback off.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}