YouTube Angle Finder is a small Python script for creators and marketers looking for YouTube video ideas. Give it a niche or a product question and it finds YouTube videos on that topic, then writes a short brief: angles already covered, with links, and gaps that look thin.
The problem
Before making a video, creators want to know what already exists so they do not repeat it. Searching YouTube and noting each video's angle by hand is slow, and it is easy to miss the gaps that nobody has covered well.
What the app does
- Takes a niche or question in plain words.
- Finds YouTube video links on the topic.
- Gets each video's real title and channel from public YouTube oEmbed.
- Writes a brief of covered angles, with links, and thin gaps.
- Shows what the run cost.
How it works
- Try the YouTube source.
POST /desearch/ai/searchwithtools: ["youtube"]. If that source is not available for the request, the script switches to the web path below. - Find videos.
POST /desearch/ai/searchwithtools: ["web"], links only, and the promptsite:youtube.com <your question>. - Titles. Public YouTube oEmbed (no key) for each video's title and channel.
- Brief. A second
POST /desearch/ai/searchwith a summary and a system message listing the verified titles, so the brief is grounded in those videos.
The code
import os, requests
API = "https://api.desearch.ai"
headers = {"Authorization": os.environ["DESEARCH_API_KEY"]}
r = requests.post(f"{API}/desearch/ai/search", headers=headers, json={
"prompt": "site:youtube.com AI coding agents for solo founders",
"tools": ["web"],
"result_type": "ONLY_LINKS",
"count": 10,
"streaming": False,
}, timeout=120)
print(r.json())
print("cost $", r.headers.get("X-Desearch-Cost-Usd"))
The snippet shows the web path the script uses for links. The folder has one script, angles.py, and a sample brief in sample-output.md.
Example output
From runs on 2026-10-04 for "AI coding agents for solo founders": the brief lists the angles existing videos already take, each with links, and a short list of gaps that look thin. Each call cost $0.004.
Run it yourself
git clone https://github.com/Desearch-ai/desearch-py-examples && cd desearch-py-examples/youtube-angle-finder
pip install -r requirements.txt
export DESEARCH_API_KEY=... # from console.desearch.ai
python angles.py "AI coding agents for solo founders"
Useful flags: --links-only (video list only, one call), --count (results per source), --out-dir (where reports go), --replay PREFIX (re-render a saved run).
What it costs
Every successful POST /desearch/ai/search call cost $0.004 on 2026-10-04, so a brief on the web path (2 calls) is $0.008. See pricing.
Ideas to extend it
- Run it for 10 niche questions and pick the biggest gap.
- Add view counts from the YouTube Data API.
- Turn each gap into a draft outline.