{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Sponsorship Tracker: Brand Deals, Promo Codes $2/1K",
    "description": "Find which YouTubers a brand sponsors, or every sponsor in a channel or niche. One row per video and sponsor: brand, domain, promo code, tracked link, ad timestamp, evidence and confidence. No login, no API key. $2 per 1,000 rows.",
    "version": "0.1",
    "x-build-id": "esQIRYcHnGA3afQ0O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/transparent_meteorite~youtube-sponsorship-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-transparent_meteorite-youtube-sponsorship-tracker",
        "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/transparent_meteorite~youtube-sponsorship-tracker/runs": {
      "post": {
        "operationId": "runs-sync-transparent_meteorite-youtube-sponsorship-tracker",
        "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/transparent_meteorite~youtube-sponsorship-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-transparent_meteorite-youtube-sponsorship-tracker",
        "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": {
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Brand names to track, e.g. NordVPN, Squarespace, HelloFresh. Brands alone: the actor searches YouTube for videos those brands sponsor. Together with channels, keywords or URLs: only rows for these brands are kept. Leave everything empty for a NordVPN sample run.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "YouTube channels whose recent videos you want to check for sponsors: @handle, channel URL or UC... id. Every sponsor found is returned.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Niche keywords",
            "type": "array",
            "description": "YouTube search terms for a niche, e.g. \"budget travel vlog\" or \"home espresso\". The top videos are checked and every sponsor is returned.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Video, channel or search URLs",
            "type": "array",
            "description": "Paste any YouTube URLs: videos, Shorts, channels or search pages. Each is checked for sponsors.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxVideos": {
            "title": "Videos per brand / channel / keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Brand mode: how many sponsored videos to find per brand (the actor checks up to 4x more candidates). Channel and keyword mode: how many recent or top videos to check.",
            "default": 20
          },
          "maxItems": {
            "title": "Max rows in total (0 = no limit)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap on rows (and charges) for the whole run.",
            "default": 0
          },
          "maxTotalChargeUsd": {
            "title": "Max total charge in USD (0 = no limit)",
            "minimum": 0,
            "type": "number",
            "description": "Stop the run once this much would be charged. Leave 0 to use only the run's own spending limit.",
            "default": 0
          },
          "publishedAfter": {
            "title": "Only videos published after",
            "type": "string",
            "description": "Skip older videos. A date (2025-01-31) or a relative period (30 days, 6 months)."
          },
          "minConfidence": {
            "title": "Minimum confidence (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Rows below this confidence are dropped and not charged. 50 keeps clear sponsor reads and offer links; 80 keeps only explicit \"sponsored by\" / promo code / ad-chapter cases.",
            "default": 50
          },
          "searchSort": {
            "title": "Search order",
            "enum": [
              "relevance",
              "date",
              "views"
            ],
            "type": "string",
            "description": "Order of YouTube search results used in brand and keyword mode.",
            "default": "relevance"
          },
          "includeAffiliateReviews": {
            "title": "Include affiliate review videos",
            "type": "boolean",
            "description": "Off by default: videos titled like \"NordVPN review\" or \"best VPN\" with only an affiliate link are usually not paid sponsorships. Turn on to keep them (they are flagged isAffiliateReview).",
            "default": false
          },
          "resolveShortLinks": {
            "title": "Resolve short links",
            "type": "boolean",
            "description": "Follow bit.ly, geni.us and similar short links once (HEAD request) to find the real sponsor domain. Recommended.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new sponsorships (monitor mode)",
            "type": "boolean",
            "description": "Remember delivered video + brand pairs between runs and return (and charge) only new ones. Schedule it daily or weekly.",
            "default": false
          },
          "stateStoreName": {
            "title": "Monitor memory name",
            "type": "string",
            "description": "Named key-value store that holds what was already delivered. Use a different name per monitor.",
            "default": "youtube-sponsorship-tracker-seen"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Pages fetched at once. 2 is polite and fast enough; max 5.",
            "default": 2
          },
          "autoProxyFallback": {
            "title": "Switch to residential proxy when blocked",
            "type": "boolean",
            "description": "On by default: if YouTube starts rate-limiting the IP, the run switches itself to Apify residential proxy instead of returning nothing.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for normal runs: public YouTube pages load fine without a proxy.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}