1. Use cases
  2. Sponsorship and brand deal tracking

Sponsorship and brand deal tracking

Find videos that disclose paid promotion and read the sponsor segments.

The job

A sponsor read is in the transcript. Check the disclosure flag, then search the timestamped text for the brand.

Endpoints

Failed requests and cached repeats cost 0 credits. Send max_age_days to accept a recent cached copy. See credits and caching.

EndpointReturnsCost
YouTube video sponsors1 credit
YouTube video transcript1 credit
YouTube channel videos1 credit
TikTok video details1 credit
Instagram profile posts1 credit

Recipe

  1. List a channel's videos.
  2. Check each for a paid-promotion disclosure.
  3. Find the brand's name in the transcript.
1import os2import requests34API = "https://api.socialscrape.dev"5HEADERS = {"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]}678def get(path, **params):9    res = requests.get(API + path, headers=HEADERS, params=params, timeout=60)10    res.raise_for_status()11    return res.json()["data"]1213# YouTube channel videos14videos = get("/v1/youtube/channel/videos", handle="mkbhd", sort="latest")15# YouTube video sponsors16sponsors = get("/v1/youtube/video/sponsors", url=videos["items"][0]["url"])17# YouTube video transcript18transcript = get("/v1/youtube/video/transcript", url=videos["items"][0]["url"])1920brand = "squarespace"21hits = [s for s in transcript["segments"] if brand in s["text"].lower()]22print(sponsors["extra"], len(hits))

Calls use api.socialscrape.dev and return the shapes in the reference.

Good to know

Sponsor inference is experimental and returns a confidence. Treat it as a lead to check, not a verdict.

Related