# lulubanana API: every endpoint > Short-form video research (TikTok, YouTube Shorts, Instagram Reels). Base address https://lulubanana.com/api/v1. Every request needs `Authorization: Bearer YOUR_KEY` (keys start with `lb_`, Settings -> API). > Replies are JSON inside `data` (`?format=markdown` on `/briefs/{id}` and `/research/jobs/{id}/results` answers a Markdown document instead). Every reply carries `X-Credits-Used` (the exact charge) and `X-Credits-Remaining`. Errors are free. Reading is free; runs, tracking and a few checks cost credits (the cost of each call is listed below; `POST /estimate` prices planned calls for free). > Prices are in credits from the account balance, the same as in the app. Credits come with a plan (Starter 2,000 for $49 a month, Pro 12,000 for $199) or as a top-up (1,000 for $25): https://lulubanana.com/pricing/. > Slow jobs answer with a `job_id`: for research runs read `GET /agents/{id}` or `GET /jobs/{id}` every 15 seconds until `finalized` is `true`; for analysis, search, brief and hook-recommendation jobs read `GET /analysis/jobs/{id}` (as `poll_after_seconds` says) until `status` is `completed` or `failed`. > Search data (Google search results, YouTube search results, Google Ads keyword data, Google Trends) covers English-speaking markets only: US, GB, CA, AU. A missing number is `null`, never 0, with the reason in `missing` or `limitations`. > How to research with it (which call answers which question, how to read scores): https://lulubanana.com/ai-guide.txt. OpenAPI: https://lulubanana.com/api/openapi.json. MCP server: https://lulubanana.com/api/v1/mcp (every endpoint is a tool). ## Errors - 400 bad input (the message says which field) - 401 missing, wrong, expired or revoked key - 402 not enough credits (`code`: `insufficient_credits`) or the key's monthly limit (`key_limit_reached`); nothing was charged - 404 not found - 429 more than 60 requests a minute per key (`code`: `rate_limited`; a daily fair-use ceiling answers 429 too and resets within 24 hours, so do not retry it within minutes). ## Endpoints ### GET /api/v1/account Plan, status and credit balance. Cost: free. ### GET /api/v1/pricing Credit price of every action (the same as in the app). Cost: free. ### GET /api/v1/usage Credit ledger and 30-day totals. ?limit=1-200 Cost: free. Query: - `limit`: Rows of the credit ledger, 1-200 (default 50) ### GET /api/v1/agents Your research agents with their last run. Cost: free. ### POST /api/v1/agents Create an agent and start its first run. Body: {name, brief, terms[3-10], excludes[], platforms["tt","yt","ig"], cadence "once|daily|weekly|monthly", en_only, autopilot}. Cost: 100 credits. Body (JSON): - `name` string, required: Agent name - `brief` string, required: What you want to learn about the niche - `terms` array, required: 3-10 search terms - `excludes` array: Words that mark a video as off-topic - `platforms` array: Platforms to search (default all three) - `cadence` string (once | daily | weekly | monthly): once, daily, weekly or monthly (default once) - `en_only` boolean: Keep only English videos (default true) - `autopilot` boolean: Let the agent replace weak search terms and add timely keywords (default false) ### POST /api/v1/agents/plan Turn one sentence into a plan (name, search terms, words to filter out). Body: {brief}. Read the plan from GET /jobs/{job_id}. Cost: free. Body (JSON): - `brief` string, required: One sentence about the niche, 15-500 characters - `en_only` boolean: Keep only English videos (default true) ### GET /api/v1/agents/{id} One agent, with the done signal: finalized (true once the run and its AI report have stopped), stage, progress_pct, eta_seconds and pending_jobs (each with poll_url and retry_after_seconds). Null fields before finalized mean "not ready", not "nothing found". latest_run_status "failed" means finished but no results. Cost: free. Path: `id` ### PATCH /api/v1/agents/{id} Change name, terms, excludes, platforms, cadence, en_only, autopilot or status ("active" | "paused"). Cost: free. Path: `id` Body (JSON): - `name` string: New name - `brief` string: New brief - `terms` array: 3-10 search terms - `excludes` array: Off-topic words - `platforms` array: Platforms to search - `cadence` string (once | daily | weekly | monthly): once, daily, weekly or monthly - `en_only` boolean: Keep only English videos - `autopilot` boolean: Autopilot on or off - `status` string (active | paused): "active" or "paused" ### DELETE /api/v1/agents/{id} Delete an agent and its results. Cost: free. Path: `id` ### POST /api/v1/agents/{id}/run Start a research run now. If one is already queued or running you get its job back and pay nothing. Cost: 100 credits. Path: `id` ### GET /api/v1/agents/{id}/runs The last 30 runs with results and credits charged. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/videos Scored videos with hook, hook type, format, length, creator baseline and platform_percentile (rank by views among the same platform here). Filters: ?limit=1-200&min_score=35&min_views=&platform=tt|yt|ig&start_date=&end_date=YYYY-MM-DD®ion=US&order_by=score|views|date|reach|platform_percentile&include_transcript=true Cost: free. Path: `id` Query: - `limit`: 1-200 (default 50) - `min_score`: Lowest virality score, e.g. 35 for outliers - `min_views`: Lowest view count - `platform` (tt | yt | ig): tt, yt or ig - `start_date`: Posted on or after, YYYY-MM-DD - `end_date`: Posted on or before, YYYY-MM-DD - `region`: Two-letter country code, e.g. US - `order_by` (score | views | date | reach | platform_percentile): score (default), views, date, reach or platform_percentile - `include_transcript`: "true" adds the spoken words where known ### GET /api/v1/agents/{id}/summary Everything about an agent in one call: last run, counts, per-platform benchmarks, top 10 organic outliers, winners against the rest, live trends, the AI report and breaking events. Start here. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/report The AI report for the latest run (or ?run_id=): key_highlight, themes (why_it_works, tactics, confidence 0-1, evidence_ids), content ideas from viewers' comments, and the sample behind it. Numbers are computed; quote evidence ids. Cost: free. Path: `id` Query: - `run_id`: A past run id (default: the latest report) ### GET /api/v1/agents/{id}/events Breaking events in the niche: a phrase several creators started using in the last 4 days. Title, summary, salience 0-10, the timely keywords autopilot added for 7 days, and evidence videos. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/activity What autopilot changed and why: replaced search terms, timely keywords from breaking events, weak-term reviews. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/winners What separates winners: share of each hook type and format in the top quarter of videos by virality score against the bottom quarter (lift in points). Cost: free. Path: `id` ### GET /api/v1/agents/{id}/compare What changed since the previous run: headline numbers, new and dropped videos, the biggest view gains. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/hooks Search the opening lines of this agent's videos. ?q=phrase. Tiers: exact, contains, similar; usage_count = videos opening with the same hook. Cost: free. Path: `id` Query: - `q`: A phrase to look for in opening lines - `limit`: 1-100 (default 30) ### GET /api/v1/videos/{id}/insight What set one video apart: key findings in plain sentences plus the numbers behind them. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/playbook Hook types and formats ranked by median Virality Score. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/trends Content trends found in this agent's niche. Cost: free. Path: `id` ### GET /api/v1/trends Trends across your agents. ?kind=content|topic&agent={id} Cost: free. Query: - `kind` (content | topic): content (default) or topic - `agent`: Only this agent id ### GET /api/v1/topics Topic trends by region. ?region=GL|US|GB|CA|AU&sort=top|active Cost: free. ### GET /api/v1/sounds Trending TikTok sounds: videos using each one now and gained this week, and how many of your videos use it. Cost: free. ### GET /api/v1/tracking/creators Creators you track, with their usual views and breakouts. Cost: free. ### POST /api/v1/tracking/creators Start tracking a creator. Body: {platform "tt"|"yt", handle}. Charged at each daily check, starting with the first. Cost: 15 credits. Body (JSON): - `platform` string, required (tt | yt): tt or yt - `handle` string, required: The creator handle, without @ ### DELETE /api/v1/tracking/creators/{platform}/{handle} Stop tracking a creator. Cost: free. Path: `platform`, `handle` ### GET /api/v1/tracking/creators/{platform}/{handle} A tracked creator: followers, usual views (median of recent posts), breakouts and the latest posts against their usual views. Cost: free. Path: `platform`, `handle` ### GET /api/v1/tracking/videos Videos you track, with daily view counts. Cost: free. ### POST /api/v1/tracking/videos Start tracking a video. Body: {video_id} from your results, or {url} of a TikTok video. Charged at each daily check, starting with the first. Cost: 10 credits. Body (JSON): - `video_id` string: A video id from your results (or send url) - `url` string: A TikTok video link (or send video_id) ### DELETE /api/v1/tracking/videos/{id} Stop tracking a video. Cost: free. Path: `id` ### GET /api/v1/tracking/videos/{id} A tracked video with its latest numbers and views gained per hour between checks (needs two checks). Cost: free. Path: `id` ### GET /api/v1/jobs/{id} Progress and result of a run or a plan. Poll every 15 seconds until finalized is true (for a run: the run and its AI report are both done). status "failed" means finished without results; a failed run is refunded. Cost: free. Path: `id` ### GET /api/v1/hooks/types The hook taxonomy with how each type performs across every analysed video: median Virality Score, lift against the typical video, outlier rate (score 35+). Sponsored posts left out. Cost: free. ### GET /api/v1/hooks/trending Top-performing opening lines across every analysed video, best Virality Score first; usage_count = videos opening the same way. Sponsored posts left out. Cost: free. Query: - `days`: Look back 1-90 days (default 30) - `platform` (tt | yt | ig): tt, yt or ig - `hook_type`: Only this hook type (see /hooks/types) - `limit`: Results per page, 1-100 (default 30) - `cursor`: next_cursor from the previous page ### GET /api/v1/hooks/search Search opening lines across every analysed video (all words must appear). Tiers: exact, contains, similar; best Virality Score first. Cost: free. Query: - `q`: Words that must appear in the opening line - `hook_type`: Only this hook type - `mechanism`: Only hooks using this mechanism (see /hooks/mechanisms) - `platform` (tt | yt | ig): tt, yt or ig - `days`: Only videos from the last N days - `limit`: Results per page, 1-100 (default 30) - `cursor`: next_cursor from the previous page ### GET /api/v1/videos/digest Strongest videos first seen or posted in the last 24-48 hours across everything collected, best Virality Score first. Sponsored posts left out. Cost: free. Query: - `platform` (tt | yt | ig): tt, yt or ig - `hours`: Window, 24-168 hours (default 48) - `region`: Two-letter country code - `limit`: Results per page, 1-100 (default 25) - `cursor`: next_cursor from the previous page ### GET /api/v1/tiktok/videos/digest Strongest TikTok videos of the last 24-48 hours. Cost: free. Query: - `hours`: Window, 24-168 hours (default 48) - `region`: Two-letter country code - `limit`: Results per page, 1-100 (default 25) - `cursor`: next_cursor from the previous page ### GET /api/v1/youtube/videos/digest Strongest YouTube Shorts of the last 24-48 hours. Cost: free. Query: - `hours`: Window, 24-168 hours (default 48) - `region`: Two-letter country code - `limit`: Results per page, 1-100 (default 25) - `cursor`: next_cursor from the previous page ### GET /api/v1/instagram/videos/digest Strongest Instagram Reels of the last 24-48 hours. Cost: free. Query: - `hours`: Window, 24-168 hours (default 48) - `region`: Two-letter country code - `limit`: Results per page, 1-100 (default 25) - `cursor`: next_cursor from the previous page ### POST /api/v1/search/videos Search every video collected so far (scope "library") or only your agents' videos (scope "mine"): keywords in caption, hook, transcript or handle, plus platform, type, language, dates, views, score, follower range and creator-relative outlier ratio. coverage_status says ok, thin or not_collected (start research). Sponsored posts left out unless exclude_sponsored is false. Cost: free. Body (JSON): - `query` string: Words to find (all must appear) - `scope` string (library | mine): library (default, everything collected) or mine (your agents) - `platforms` array: Any of tt, yt, ig - `kind` string (video | slideshow): video or slideshow - `language` string: Language code, e.g. en - `start_date` string: Posted on or after, YYYY-MM-DD - `end_date` string: Posted on or before, YYYY-MM-DD - `min_views` number: Lowest views - `min_score` number: Lowest Virality Score, e.g. 35 - `min_followers` number: Smallest creator - `max_followers` number: Biggest creator - `min_outlier_ratio` number: Lowest views / creator median views, e.g. 3 - `min_baseline_posts` number: Creator baseline must include at least this many posts, e.g. 10 - `semantic` boolean: true: search by meaning (similar topics in other words), using caption+hook vectors; falls back to keywords if the meaning service is busy - `min_similarity` number: Meaning search: lowest similarity 0.3-0.95 (default 0.6) - `exclude_sponsored` boolean: Leave out sponsored posts (default true) - `order_by` string (score | views | date | outlier_ratio): score (default), views, date or outlier_ratio - `limit` number: 1-50 (default 25) - `cursor` string: next_cursor from the previous page ### POST /api/v1/search/creators Find creators among everything collected: keywords in their captions or handle, platform, follower range, median views (creators with a checked baseline) and number of outliers (score 35+). Most outliers first. Cost: free. Body (JSON): - `query` string: Words in their captions or handle - `platforms` array: Any of tt, yt, ig - `min_followers` number: Smallest - `max_followers` number: Biggest - `min_median_views` number: Lowest usual views (needs a checked baseline) - `min_outliers` number: At least this many videos scoring 35+ - `limit` number: 1-50 (default 25) - `cursor` string: next_cursor from the previous page ### GET /api/v1/hashtags Hashtags across every collected video in the window: videos, creators, views, median Virality Score, lift against the typical video, outlier rate. generic=true marks tags like #fyp. Cost: free. Query: - `platform` (tt | yt | ig): tt, yt or ig - `days`: Look back 1-90 days (default 30) - `limit`: Results per page, 1-200 (default 50) ### GET /api/v1/tiktok/hashtags Top TikTok hashtags: TikTok Creative Center's daily top 100 for the country (rank, posts, views, 7-day curve), or our collected videos when that country has no list. Cost: free. Query: - `country`: Two-letter country code (default US) - `days`: Look back 1-90 days (default 30) - `limit`: Results per page, 1-200 (default 50) ### GET /api/v1/youtube/hashtags Hashtags on collected YouTube Shorts with their performance. Cost: free. Query: - `days`: Look back 1-90 days (default 30) - `limit`: Results per page, 1-200 (default 50) ### GET /api/v1/instagram/hashtags Hashtags on collected Instagram Reels with their performance. Cost: free. Query: - `days`: Look back 1-90 days (default 30) - `limit`: Results per page, 1-200 (default 50) ### GET /api/v1/hashtags/{hashtag}/performance One hashtag: TikTok's total videos and views (when checked), its daily Creative Center rank by country, and how it performs in collected videos with the top 10. Cost: free. Path: `hashtag` Query: - `days`: Collected videos from the last N days, 1-365 (default 90) ### GET /api/v1/topic-trends/regions Regions Topic Trends cover. Cost: free. ### GET /api/v1/topic-trends/today Today's topics people talk about in a region (shows, games, people, sports, news), rebuilt every 4 hours, with reach, momentum, outlier Shorts and TikTok videos and reach readings. Cost: free. Query: - `region`: GL (default), US, GB, CA or AU - `sort` (top | active): top (default) or active ### GET /api/v1/topic-trends/emerging Topics first seen in the last day or growing 20%+ since the reading 18 hours earlier, fastest first. Cost: free. Query: - `region`: GL (default), US, GB, CA or AU ### GET /api/v1/topic-trends Topics active in a region between two dates (default the last 7 days), biggest first. Cost: free. Query: - `region`: GL (default), US, GB, CA or AU - `start_date`: YYYY-MM-DD - `end_date`: YYYY-MM-DD - `limit`: Results per page, 1-200 (default 50) - `cursor`: next_cursor from the previous page ### GET /api/v1/sounds/trending Trending TikTok sounds with videos using each one now, gained this week, and how many of your videos use it (same as /sounds). Cost: free. ### GET /api/v1/sounds/breakout Sounds growing fastest relative to their size (uses gained since the previous reading). Cost: free. ### GET /api/v1/sounds/search Find sounds by title or artist: tracked trending sounds, plus sounds heard in collected videos with how those videos perform. Cost: free. Query: - `q`: Title or artist - `limit`: Results per page, 1-50 (default 20) ### GET /api/v1/sounds/{sound_id} One sound: title, artist, videos using it, a playable preview when stored, and how collected videos using it perform. Cost: free. Path: `sound_id` ### GET /api/v1/sounds/{sound_id}/usage-history Daily count of videos using the sound, one reading a day while it is tracked. Cost: free. Path: `sound_id` ### GET /api/v1/sounds/{sound_id}/videos Collected videos using the sound, best Virality Score first. Cost: free. Path: `sound_id` Query: - `limit`: Results per page, 1-100 (default 25) - `cursor`: next_cursor from the previous page ### GET /api/v1/content-trends Content formats spreading in your agents' niches: the steps, stage (new, rising, accelerating, peaking, declining, evergreen), creators, views and week-on-week change. Trends not seen for 21 days are archived and left out. Cost: free. Query: - `agent`: Only this agent id ### GET /api/v1/content-trends/{id} One content trend with all its example videos. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/slideshows This agent's TikTok photo slideshows, best Virality Score first. Cost: free. Path: `id` Query: - `limit`: Results per page, 1-200 (default 50) - `cursor`: next_cursor from the previous page ### GET /api/v1/agents/{id}/ads Meta ads found for this agent's search terms, longest-running first among active ones (an ad that keeps running is usually working). Cost: free. Path: `id` ### GET /api/v1/agents/{id}/creators/outliers Creators who keep beating their audience in this niche: outliers (score 35+), best and median score, and their best video against their usual views when known. Cost: free. Path: `id` Query: - `limit`: Results per page, 1-100 (default 30) ### GET /api/v1/agents/{id}/hashtags Hashtags in this agent's videos with videos, creators, views, median score, lift against the agent's typical video and outlier rate. Cost: free. Path: `id` Query: - `days`: Only videos from the last N days - `limit`: Results per page, 1-200 (default 50) ### GET /api/v1/agents/{id}/benchmarks Genre benchmarks for this agent's niche: median, p75 and p90 views, Virality Score and engagement, by platform, creator size and format. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/sounds Sounds used by at least two of this agent's videos, with how those videos perform. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/affinity Beta: hashtags and sounds that go together in this niche (pairs seen in 3+ videos, with lift over chance). Cost: free. Path: `id` ### GET /api/v1/agents/{id}/trends/latest The content trends from this agent's most recent update. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/analysis Every AI report written for this agent (one per run), newest first. Read one in full with /agents/{id}/report?run_id=. Cost: free. Path: `id` Query: - `limit`: Results per page, 1-50 (default 10) - `cursor`: next_cursor from the previous page ### GET /api/v1/agents/{id}/analysis/latest The latest AI report: key highlight, themes with evidence videos and confidence, viewer ideas from comments, breaking events. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/runs/{run_id} One run: status, stage, videos found, outliers, credits used. Cost: free. Path: `id`, `run_id` ### PUT /api/v1/agents/{id}/autonomy Turn autopilot on or off (it replaces weak search terms and adds timely keywords; every change is listed in /agents/{id}/activity). Cost: free. Path: `id` Body (JSON): - `enabled` boolean, required: true to turn autopilot on, false to turn it off ### GET /api/v1/tracking/creators/{platform}/{handle}/snapshots A tracked creator's numbers at each check. Cost: free. Path: `platform`, `handle` ### GET /api/v1/tracking/creators/{platform}/{handle}/posts This creator's posts we hold, newest first, each against their usual views. Cost: free. Path: `platform`, `handle` Query: - `limit`: Results per page, 1-100 (default 25) - `cursor`: next_cursor from the previous page ### GET /api/v1/tracking/creators/{platform}/{handle}/posting-cadence How often a tracked creator posts: posts per week, median gap, weekday spread, from the posts seen so far. Cost: free. Path: `platform`, `handle` ### GET /api/v1/tracking/videos/{id}/snapshots A tracked video's numbers at each check. Cost: free. Path: `id` ### GET /api/v1/account/balance Your credit balance. Cost: free. ### POST /api/v1/account/top-up A checkout link that adds a credit pack (nothing is charged by this call; whoever opens the link pays). Cost: free. Body (JSON): - `pack` string, required (p1000 | p5000 | p20000): Credit pack: p1000 (1000 credits, $25), p5000 (5000 credits, $110), p20000 (20000 credits, $380) ### POST /api/v1/webhooks Add a webhook (or Slack/Discord) for events: digest, alert (breakout video), trend (trend.detected for a new or newly rising trend, trend.stage_changed when a trend moves stage), run (research finished or failed), creator (new post by a tracked creator), analysis (an analysis job finished), search (search.gap_found: a search opportunity job found clear Google or YouTube gaps). Webhook bodies are signed: X-Lulubanana-Signature = sha256 HMAC of the raw body with the secret returned once here. Each delivery has a unique id (X-Lulubanana-Delivery) to de-duplicate retries. Cost: free. Body (JSON): - `url` string, required: https:// address that receives the events - `events` array: Any of digest, alert, trend, run, creator, analysis, search (default all) - `kind` string (webhook | slack | discord): webhook (default), slack or discord ### GET /api/v1/webhooks Your webhooks and their delivery health. Cost: free. ### GET /api/v1/webhooks/{id} One webhook. Cost: free. Path: `id` ### PATCH /api/v1/webhooks/{id} Change a webhook's address, events, or switch it on or off. Cost: free. Path: `id` Body (JSON): - `url` string: New https:// address - `events` array: Any of digest, alert, trend, run, creator, analysis, search - `active` boolean: On or off ### DELETE /api/v1/webhooks/{id} Remove a webhook. Cost: free. Path: `id` ### POST /api/v1/webhooks/{id}/reenable Switch a webhook back on after it was switched off for 5 failed deliveries in a row. Cost: free. Path: `id` ### POST /api/v1/webhooks/{id}/test Send a test event (type "test") within a few seconds; see the result in /webhooks/{id}/deliveries. Cost: free. Path: `id` ### GET /api/v1/webhooks/{id}/deliveries Recent deliveries (kept 30 days) with your server's reply status; failed ones can be sent again. Cost: free. Path: `id` Query: - `limit`: Results per page, 1-100 (default 25) - `cursor`: next_cursor from the previous page ### POST /api/v1/webhooks/deliveries/{delivery_id}/retry Send one delivery again (same payload, a new delivery id that names the original in retry_of). Cost: free. Path: `delivery_id` ### POST /api/v1/videos/batch Up to 50 full video records in one call, duplicates removed; ids not found come back as {id, found:false}. Cost: free. Body (JSON): - `ids` array, required: 1-50 video ids (e.g. tt7581..., ytAbC...) ### GET /api/v1/videos/{id} One video's full record: stats (missing ones are null, never zero), creator baseline and outlier ratio, hook, format, transcript, on-screen analysis, analysis_status (frames, transcript, caption_only), likely_repost (true only when an earlier post by a different creator in our database has the same caption of 6+ words or the same opening line; false when none was found; null when it cannot be told; with likely_repost_reason and repost_of) and provenance that separates observed numbers from AI readings. Cost: free. Path: `id` ### GET /api/v1/videos/{id}/metrics A video's readings over time (tracking checks and research runs) with its age at each, and views per hour and per day when there are two readings. Cost: free. Path: `id` ### POST /api/v1/research/jobs Start a full niche research in one call: send a niche sentence (search terms are planned for you, free) or your own terms, or an agent_id to run again. Costs one research run, like the app; a failed run is refunded and a canceled queued job is refunded. When planning takes longer than 40 s the reply is status "planning" with a plan_job_id: send {"plan_job_id"} again (the rest of the request is kept); a plan starts one job, so sending it again returns that job without a new charge. Poll /research/jobs/{id} every 15 s; statuses: queued, collecting, analyzing, completed, partially_completed, failed, canceled. Cost: 100 credits. Body (JSON): - `niche` string: One sentence about the niche and audience (15-500 characters). Search terms are planned from it for free when terms is left out - `terms` array: 3-10 search phrases (optional when niche is sent) - `plan_job_id` number: Resume a job whose planning took longer than 40 seconds - `agent_id` number: Run an existing agent instead - `name` string: A name (default: from the niche) - `excludes` array: Words that mark a video as off-topic - `platforms` array: Any of tt, yt, ig (default all three) - `en_only` boolean: English videos only (default true) ### GET /api/v1/research/jobs Your research jobs, newest first, with their status. Cost: free. Query: - `limit`: 1-100 (default 20) - `cursor`: next_cursor from the previous page ### POST /api/v1/research/jobs/batch Start 1-5 research jobs in one call (each item is a POST /research/jobs body: niche, terms or agent_id). Costs one research run per job (100 credits each); all or nothing: the balance (and the key's monthly limit) must cover the whole batch, and every job starts in one transaction, or none does. A run already going for an agent is returned free. Missing terms are planned for free (up to 40 s; else status planning with plan_job_ids to send back, nothing charged). Cost: 100 credits. Body (JSON): - `niches` array, required: 1-5 research job bodies, each like POST /research/jobs: {niche} or {terms} or {agent_id} ### GET /api/v1/research/jobs/{id} One research job's status. Poll every 15 seconds until completed, partially_completed, failed or canceled. Cost: free. Path: `id` ### POST /api/v1/research/jobs/{id}/cancel Cancel a job that has not started collecting yet; its credits come back. A canceled scheduled run skips that occurrence: the schedule continues with the next one. A job already collecting finishes on its own. Cost: free. Path: `id` ### GET /api/v1/research/jobs/{id}/results Everything a finished job found: coverage (videos per platform, outliers, off-topic filtered, per-term results, coverage_status), freshness, credits charged and cache reuse, top videos with creator-relative outlier ratios, the AI report, what changed since the previous run, and new_since_previous: the outliers, trends (and trend stage changes) and opportunities (new report themes and ideas, search opportunities) that the agent's previous finished run did not have. ?format=markdown answers one Markdown document (text/markdown). Cost: free. Path: `id` Query: - `limit`: Top videos to include, 1-100 (default 25) - `format` (json | markdown): json (default) or markdown ### GET /api/v1/research/schedules Your recurring research (agents on a schedule). Cost: free. ### POST /api/v1/research/schedules Start recurring research: daily, weekly, monthly or every N days (2-90). The first run starts now; each run costs one research run, like the app. Cost: 100 credits. Body (JSON): - `niche` string: One sentence about the niche and audience (15-500 characters). Search terms are planned from it for free when terms is left out - `terms` array: 3-10 search phrases (optional when niche is sent) - `plan_job_id` number: Resume a job whose planning took longer than 40 seconds - `agent_id` number: Run an existing agent instead - `name` string: A name (default: from the niche) - `excludes` array: Words that mark a video as off-topic - `platforms` array: Any of tt, yt, ig (default all three) - `en_only` boolean: English videos only (default true) - `cadence` string (daily | weekly | monthly): daily, weekly or monthly - `every_days` number: Custom interval: every N days, 2-90 (instead of cadence) ### PATCH /api/v1/research/schedules/{id} Pause or resume (status "paused" | "active"), change cadence or every_days (null clears it), terms, platforms or autopilot. Cost: free. Path: `id` Body (JSON): - `status` string (active | paused): active or paused - `cadence` string (daily | weekly | monthly): daily, weekly or monthly - `every_days` number: Every N days, 2-90, or null - `terms` array: 3-10 search phrases - `platforms` array: Any of tt, yt, ig - `excludes` array: Off-topic words - `autopilot` boolean: Autopilot on or off ### GET /api/v1/formats Creative formats (tutorial, GRWM, review, haul, transition, talking head, faceless) across independent creators: performance distribution, lift, outlier rate, cross-creator adoption by week, growth, lifecycle (new, rising, steady, evergreen, declining) and confidence. For AI-described structures see /content-trends. Cost: free. Query: - `agent`: Only this agent's videos (default: everything collected) - `days`: Look back 14-365 days (default 180) - `platform` (tt | yt | ig): tt, yt or ig ### GET /api/v1/formats/{format} One format in depth: the same numbers as /formats plus which hook types and hashtags work best with it, results per platform and the 12 strongest examples. Cost: free. Path: `format` Query: - `agent`: Only this agent's videos (default: everything collected) - `days`: Look back 14-365 days (default 180) - `platform` (tt | yt | ig): tt, yt or ig ### POST /api/v1/formats/match Which formats and hook types work for a topic: matches collected videos by words, ranks formats by lift over the typical video, with independent creators and an example each. coverage_status says when there is too little data. Cost: free. Body (JSON): - `topic` string, required: What the content is about, a few words - `agent` number: Only this agent's videos - `platform` string (tt | yt | ig): tt, yt or ig - `days` number: Look back N days (default 365) ### GET /api/v1/creators/{platform}/{handle} One creator: followers, baseline (median views of recent posts, breakouts 3x+, outlier frequency, confidence), collected videos and their scores, strongest formats, hook types and hashtags, top and recent videos. Cost: free. Path: `platform`, `handle` ### POST /api/v1/creators/compare Compare 2-10 creators side by side, with rankings by median score, outlier frequency, median views and engagement. Cost: free. Body (JSON): - `creators` array, required: 2-10 creators ### POST /api/v1/watchlists Group creators and videos to watch (competitors, a niche, a campaign). Creating a list is free; track:true also starts daily tracking at the app's price per check. Cost: free. Body (JSON): - `name` string, required: A name - `creators` array: Creators: [{platform, handle}] - `videos` array: Video ids - `track` boolean: Also track them daily (charged per check like the app: 15 a creator, 10 a video). Default false ### GET /api/v1/watchlists Your watchlists. Cost: free. ### GET /api/v1/watchlists/{id} A watchlist with each creator's usual views, change since the previous check and latest posts against it (new_outliers = 3x+), and each video's numbers and views per hour. Cost: free. Path: `id` ### PATCH /api/v1/watchlists/{id} Rename a watchlist. Cost: free. Path: `id` Body (JSON): - `name` string, required: New name ### DELETE /api/v1/watchlists/{id} Delete a watchlist (tracking of its items continues until you stop it). Cost: free. Path: `id` ### POST /api/v1/watchlists/{id}/items Add creators or videos to a watchlist (track:true also starts daily tracking at the app's price). Cost: free. Path: `id` Body (JSON): - `creators` array: Creators: [{platform, handle}] - `videos` array: Video ids - `track` boolean: Also track them daily (charged per check like the app: 15 a creator, 10 a video). Default false ### POST /api/v1/watchlists/{id}/items/remove Remove creators or videos from a watchlist (their tracking continues until you stop it). Cost: free. Path: `id` Body (JSON): - `creators` array: Creators: [{platform, handle}] - `videos` array: Video ids ### GET /api/v1/account/audit Every API request made with your keys in the last 90 days: when, which key, method, path, result status and credits. Cost: free. Query: - `limit`: 1-200 (default 50) - `cursor`: next_cursor from the previous page ### GET /api/v1/analysis/jobs/{id} Status and result of an analysis job (opportunities, comments, comment insights, creator baseline, creative breakdown, content briefs, hook recommendations, and the search jobs: intent, demand, Google and YouTube results audits, search opportunities). Poll every 10 s until completed or failed (a search opportunity job waiting for its research run says collecting: poll every minute). A failed paid check is refunded. Cost: free. Path: `id` ### POST /api/v1/profiles Save an audience and content profile (niche, audience, interests, problems, market, language, tone, formats, exclusions, constraints, outcomes; a product is optional) to match opportunities against. Cost: free. Body (JSON): - `name` string: A name for the profile - `niche` string: Niche, e.g. "home espresso" - `subniche` string: Sub-niche - `audience` string: Who it is for, e.g. "students on a budget" - `interests` array: Audience interests - `problems` array: Audience problems - `content_categories` array: Wanted content categories - `market` string: Two-letter country when location matters, e.g. US - `language` string: Language code, e.g. en - `tone` string: Editorial personality and tone - `formats` array: Preferred formats - `exclude_topics` array: Topics to leave out - `constraints` string: Creator capabilities and constraints (e.g. no face on camera, phone only) - `outcomes` string: Desired outcomes (saves, follows, bookings...) - `product_category` string: Optional product or service category (never required) ### GET /api/v1/profiles Your audience profiles. Cost: free. ### GET /api/v1/profiles/{id} One profile. Cost: free. Path: `id` ### PATCH /api/v1/profiles/{id} Change a profile (send only the fields to change). Cost: free. Path: `id` Body (JSON): - `name` string: A name for the profile - `niche` string: Niche, e.g. "home espresso" - `subniche` string: Sub-niche - `audience` string: Who it is for, e.g. "students on a budget" - `interests` array: Audience interests - `problems` array: Audience problems - `content_categories` array: Wanted content categories - `market` string: Two-letter country when location matters, e.g. US - `language` string: Language code, e.g. en - `tone` string: Editorial personality and tone - `formats` array: Preferred formats - `exclude_topics` array: Topics to leave out - `constraints` string: Creator capabilities and constraints (e.g. no face on camera, phone only) - `outcomes` string: Desired outcomes (saves, follows, bookings...) - `product_category` string: Optional product or service category (never required) ### DELETE /api/v1/profiles/{id} Delete a profile. Cost: free. Path: `id` ### POST /api/v1/opportunities/discover Ranked, audience-matched content opportunities grounded in videos that really outperformed: candidates come from your research (winning themes, viewer requests, outlier clusters, format trends) and topics in your market; irrelevant viral content is rejected with a reason. Each has opportunity_score (0-100, weighted factors) and a separate evidence confidence, source video links, hook mechanism, structure, angle, format, key information, payoff and originality requirements. Async: poll /analysis/jobs/{job_id} (about 1 minute). Included, up to 10 a day. Cost: free. Body (JSON): - `profile_id` number: A saved profile (or send profile) - `profile` object: An inline profile with the same fields as POST /profiles - `agent_ids` array: Only evidence from these agents (default all yours) - `limit` number: Opportunities to return, 1-20 (default 10) - `weights` object: Factor weights, any of relevance, organic_evidence, practical_value, format_repeatability, suitability, freshness, geographic (defaults 25/20/15/15/10/10/5) - `local` boolean: Location matters (uses the geographic weight; default true when market is set) ### POST /api/v1/opportunities/score Score your own candidate ideas against a profile, with evidence from the video ids you attach (ideas without evidence get low confidence, never "verified"). Async like discover. Included, shares the 10-a-day limit. Cost: free. Body (JSON): - `profile_id` number: A saved profile (or send profile) - `profile` object: An inline profile with the same fields as POST /profiles - `weights` object: Factor weights, any of relevance, organic_evidence, practical_value, format_repeatability, suitability, freshness, geographic (defaults 25/20/15/15/10/10/5) - `local` boolean: Location matters (uses the geographic weight; default true when market is set) - `candidates` array, required: 1-20 ideas ### GET /api/v1/opportunities Opportunities found for you, newest first. ?verified=true keeps only verified winners. Cost: free. Query: - `verified`: "true" for verified winners only - `limit`: 1-100 (default 20) - `cursor`: next_cursor from the previous page ### GET /api/v1/opportunities/{id} One opportunity with all its evidence and creative intelligence. Cost: free. Path: `id` ### POST /api/v1/opportunities/{id}/reject Reject an opportunity: it and similar topics stop being suggested (feedback for your ranking). Cost: free. Path: `id` Body (JSON): - `reason` string: Why (optional) ### GET /api/v1/hooks/mechanisms Psychological mechanisms behind strong hooks (curiosity, mistake avoidance, contrarian, surprising fact, problem-solution, before-after, story, comparison, challenge, question, social proof, demonstration, listicle, suspense, humor) with how hooks using each perform against the other strong hooks. Cost: free. Query: - `days`: Look back 7-365 days (default 180) - `platform` (tt | yt | ig): tt, yt or ig ### GET /api/v1/hooks/formulas Hook formulas repeated by several independent creators (structure, not wording), with how they perform and examples. Cost: free. Query: - `days`: Look back 7-365 days (default 180) - `platform` (tt | yt | ig): tt, yt or ig - `mechanism`: Only this mechanism - `min_creators`: Independent creators needed (default 2) - `limit`: 1-100 (default 30) ### GET /api/v1/hooks/emerging Hook mechanisms and formulas that are being used more often lately (last 21 days against the 42 before) by several creators. Cost: free. Query: - `platform` (tt | yt | ig): tt, yt or ig ### GET /api/v1/videos/{id}/similar Videos most similar in meaning (caption and hook) to this one, with a similarity from 0 to 1. Cost: free. Path: `id` Query: - `limit`: 1-50 (default 20) ### POST /api/v1/hooks/evaluate Test a proposed opening line against similar hooks that were really published: how they performed against the typical video, their likely mechanisms and the closest examples. Evidence, not a prediction. Cost: free. Body (JSON): - `hook` string, required: The opening line to test ### GET /api/v1/videos/{id}/comments The top public comments we hold for a video (text and likes; no commenter names). Cost: free. Path: `id` ### POST /api/v1/videos/{id}/comments/collect Collect a video's top public comments (then comment insights run by themselves, within the 30-a-day comment analyses). TikTok costs one video check, like the app; YouTube is free (up to 60 collections a day); anything collected in the last 7 days is free. Refunded if it fails or finds none. Cost: 10 credits. Path: `id` ### GET /api/v1/videos/{id}/comments/intelligence What viewers say: clusters of questions, problems, frustrations, objections, tutorial and comparison requests, buying or booking intent, requests for alternatives, with counts, shares, quoted evidence and confidence; unanswered questions and content gaps. Starts the analysis when comments are held (included, 30 a day; a read-only key gets status not_started instead). Cost: free. Path: `id` ### GET /api/v1/agents/{id}/audience Audience intelligence across an agent's videos: recurring questions, problems, requests and intent with how many videos they appear on, unanswered questions, and the report's viewer ideas. Cost: free. Path: `id` ### GET /api/v1/agents/{id}/gaps Under-served content: questions and requests from viewers (comment insights and the report) that few collected videos cover. Cost: free. Path: `id` ### POST /api/v1/creators/baseline Measure a creator's normal: their last ~30 posts -> median and mean views, 3x+ breakouts, like rate. Costs one creator check, like the app; free when this creator was measured in the last 24 hours; refunded if it fails. Async: poll /analysis/jobs/{job_id}. Cost: 15 credits. Body (JSON): - `platform` string, required (tt | yt): tt or yt - `handle` string, required: Creator handle without @ ### POST /api/v1/videos/outlier-check Is this video an outlier for its own creator? Compares its views with the creator's recent posts: outlier ratio, class (normal, above_average 1.5x, viral_outlier 3x, strong_breakout 10x, exceptional_breakout 25x), age-matched baseline when enough posts are of similar age, percentile, engagement lift, sample size and confidence, and likely_repost (true only when an earlier post by a different creator has the same caption of 6+ words or the same opening line; null when it cannot be told). Costs one creator check (free within 24 hours of the last one for that creator; refunded if it fails). Cost: 15 credits. Body (JSON): - `video_id` string: A video id we hold (or send url) - `url` string: A TikTok video link or YouTube Shorts link - `handle` string: Channel handle, only for a YouTube Short we do not hold ### POST /api/v1/videos/{id}/analyze Frame-level creative breakdown of the video itself: frames (dense in the first 3 s), on-screen text, measured cuts and the transcript are read by a vision model into hook (spoken and on-screen opening, first frame, categories, mechanism, curiosity gap, promise, problem, tone), opening -> body -> payoff -> ending structure, visual presentation, storytelling techniques and a mechanism hypothesis, with timestamped evidence and confidence. Done once per video and shared. Included, 20 a day. If the video cannot be fetched the status says incomplete: a caption is never passed off as video analysis. Cost: free. Path: `id` ### GET /api/v1/videos/{id}/analysis The creative breakdown of a video, or its status (not_analysed, incomplete with the reason). Cost: free. Path: `id` ### GET /api/v1/videos/breakouts/early Videos still gaining fast relative to their creator's normal (from two or more readings by your agents' runs or tracking): views per day, ratio now, an early_breakout flag and confidence. Cost: free. Query: - `agent`: Only this agent - `hours`: Readings from the last 24-720 hours (default 168) - `limit`: 1-100 (default 30) ### GET /api/v1/formats/transfer Cross-platform format transfer: how each format performs against each platform's own typical video, and where a proven format is still rare (a chance to bring it over). Cost: free. Query: - `days`: Look back 30-365 days (default 365) ### GET /api/v1/alerts/settings Alert thresholds: breakout alerts fire when a tracked creator's post reaches breakout_ratio x their usual views (default 3). Cost: free. ### PUT /api/v1/alerts/settings Change alert settings: breakout_ratio (1.5-50), breakout_alerts, trend_alerts, email_alerts. Webhooks receive the same events (subscribe in /webhooks). Cost: free. Body (JSON): - `breakout_ratio` number: Alert at this many times the usual views, 1.5-50 - `breakout_alerts` boolean: On or off - `trend_alerts` boolean: On or off - `email_alerts` boolean: Email as well ### POST /api/v1/search/intent-extract What people search on Google and YouTube about a topic, niche, audience or up to 20 of your videos: topics, entities named in the videos, viewer questions (from comments, or marked as hypotheses), Google and YouTube queries with intent (informational, commercial, comparison, tutorial, navigational, local) and groups, ambiguous terms, related keywords, adjacent niches and the source videos used (without video_ids: 3+ collected videos that name the topic's distinctive words, else the topic alone, said in limitations). Queries are AI suggestions: check their demand with POST /search/demand. Async: poll /analysis/jobs/{job_id} (about a minute); also kept at GET /search/intents. Included, up to 30 a day. English-speaking markets only (US, GB, CA, AU). Cost: free. Body (JSON): - `video_ids` array: Up to 20 video ids from your results - `topic` string: A topic, e.g. "contour for beginners" - `niche` string: A niche, e.g. "makeup for beginners" - `audience` string: Who it is for - `profile_id` number: A saved audience profile (fills niche and audience) - `market` string (US | GB | CA | AU): US (default), GB, CA or AU ### GET /api/v1/search/intents Your search intent extractions, newest first (counts only; read one for the queries). Cost: free. Query: - `limit`: 1-100 (default 20) - `cursor`: next_cursor from the previous page ### GET /api/v1/search/intents/{id} One search intent extraction: topics, entities, viewer questions, Google and YouTube queries with intent and groups, ambiguous terms, related keywords, adjacent niches, sources. Cost: free. Path: `id` ### POST /api/v1/search/demand Search demand for 1-20 keywords: Google monthly searches, cost per click, advertiser competition and 12 months of history (Google Ads keyword data), 3-month growth, Google Trends web and YouTube interest (daily, last 3 months) with the last 4 weeks against the 4 before, related queries, a momentum label, granularity, geography, date range and confidence. YouTube search volume is null (not published by Google). 10 credits per lookup; free when every keyword was looked up in the last 7 days (up to 100 free lookups a day); returned if it fails. Async: poll /analysis/jobs/{job_id}. Markets: US, GB, CA, AU. Cost: 10 credits. Body (JSON): - `keywords` array, required: 1-20 search phrases - `market` string (US | GB | CA | AU): US (default), GB, CA or AU ### GET /api/v1/search/demand Stored search demand for one keyword you looked up (with POST /search/demand, or as one of your search opportunities' searches); no new lookup: the same fields as POST /search/demand, with stored, fresh (looked up in the last 7 days) and snapshots (your live lookups). A keyword you have not looked up: every field null, with the reasons in missing and how to look it up. Cost: free. Query: - `keyword`: The keyword - `market` (US | GB | CA | AU): US (default), GB, CA or AU ### POST /api/v1/search/google-serp-audit Audit Google's page one for 1-5 keywords: the top results (title, link, site, date, snippet, page features), people also ask and related searches, then an audit from titles, snippets and dates (pages are not opened): intent match, answer completeness, outdated results, missing formats (comparison, tutorial, demonstration, explanation), weaknesses, unanswered questions, difficulty 0-100 with why, and gap_score 0-100. 10 credits per keyword not fetched in the last 7 days (cached keywords are free, up to 100 free audits a day); a keyword that fails is refunded. Async: poll /analysis/jobs/{job_id}, or read /search/serp-audits/{job_id}. Cost: 10 credits. Body (JSON): - `keywords` array, required: 1-5 search phrases - `market` string (US | GB | CA | AU): US (default), GB, CA or AU - `intent` string (informational | commercial | comparison | tutorial | navigational | local): The searcher intent to judge the results against (default: read from the keyword) ### POST /api/v1/search/youtube-serp-audit Audit YouTube's top 20 for 1-5 keywords: title, link, channel, views, published, duration, Shorts or not; then freshness (median age), outdated tutorials, undercovered viewer questions, recommended long-form angles, weaknesses, difficulty 0-100 and gap_score 0-100, from titles, descriptions, dates and views (videos are not watched). 10 credits per keyword not fetched in the last 7 days (cached keywords are free, up to 100 free audits a day); a keyword that fails is refunded. Async: poll /analysis/jobs/{job_id}, or read /search/serp-audits/{job_id}. Cost: 10 credits. Body (JSON): - `keywords` array, required: 1-5 search phrases - `market` string (US | GB | CA | AU): US (default), GB, CA or AU - `intent` string (informational | commercial | comparison | tutorial | navigational | local): Optional; used by Google audits only ### GET /api/v1/search/serp-audits/{id} One Google or YouTube results audit (id sau_...) that you requested, or every audit of one of your audit or search-opportunity jobs (send the job id). Results, people also ask, related searches, page features and the audit with its difficulty, gap score, factors and limitations. Cost: free. Path: `id` ### POST /api/v1/search/opportunities The flagship search opportunity research: social evidence (verified organic outliers in your agent's videos, or the whole library: videos that name the niche's distinctive words and are close to it in meaning, English only, in the window) -> topics and audience problems from the outliers, hooks, formats and comment questions -> Google and YouTube searches per topic -> demand (one Google Ads keyword lookup for all, Google Trends web and YouTube for the top max_keywords) -> Google and YouTube results audits (7-day cache) -> four separate 0-100 scores (social, google_seo, youtube, evidence_confidence capped at 95; deterministic formulas with factors) and a timing label (early, aligned, search_led, flat, unknown). Each opportunity cites real source videos; AI-written parts are listed as hypotheses. Fewer than count when evidence is thin (the result says why). Costs 100 credits; when the niche has too little collected data and collect is true, one research run (100 credits) is started first and the job waits for it (a run already going for the agent or niche is reused, never charged twice). Refunded if it fails or finds nothing. Async: poll /analysis/jobs/{job_id}; read the opportunities at /search/opportunities?job_id=... Cost: 100 credits. Body (JSON): - `niche` string: The niche, e.g. "makeup for beginners" (or send profile_id or agent_id) - `subniche` string: A sub-niche - `audience` string: Who it is for - `profile_id` number: A saved audience profile (fills niche, subniche and audience) - `agent_id` number: Use this agent's videos as the social evidence - `market` string (US | GB | CA | AU): US (default), GB, CA or AU - `platforms` array: Any of tt, ig, yt (default all three) - `window_days` number: Social evidence window, 1-90 days (default 14) - `count` number: Opportunities wanted, 1-20 (default 20) - `collect` boolean: Start a research run when too little data is collected (default true; adds one research run) - `max_keywords` number: Topics that get Google Trends and results audits, 1-20 (default 10) ### GET /api/v1/search/opportunities Your search opportunities, newest job first, each job in rank order, with every field (sources, hooks, queries, demand, competition, gaps, angle, format, the four scores with factors, timing, verified, hypotheses, limitations). ?job_id= adds that job's status, and why it returned fewer than asked. Cost: free. Query: - `job_id`: Only this search opportunity job - `verified`: "true" for verified ones only - `limit`: 1-50 (default 20) - `cursor`: next_cursor from the previous page ### GET /api/v1/search/opportunities/{id} One search opportunity with all its evidence, scores, factors and the score formulas. Cost: free. Path: `id` ### POST /api/v1/search/opportunities/{id}/reject Reject a search opportunity (feedback): similar topics stop being suggested. Cost: free. Path: `id` Body (JSON): - `reason` string: Why (optional) ### POST /api/v1/briefs/generate A content brief for one of your opportunities (opp_... from /opportunities or sop_... from /search/opportunities): title options, hook approaches grounded in real hooks (each links the videos it comes from), an outline with beats or sections, on-screen text ideas, a call to action, why it fits the audience, the viewer questions it answers, sources, and verified findings (measured) kept apart from hypotheses (AI-written). format short, long or article (default: the opportunity's recommended format); tone and a profile_id are optional. Async: poll /analysis/jobs/{job_id} (about a minute), then read /briefs/{id} as JSON or Markdown. Included, up to 30 a day. Cost: free. Body (JSON): - `opportunity_id` string, required: opp_... (from /opportunities) or sop_... (from /search/opportunities) - `format` string (short | long | article): short, long or article (default: the opportunity's recommended format) - `tone` string: Tone of voice, e.g. "friendly and direct" - `profile_id` number: A saved audience profile (audience, tone, constraints) ### GET /api/v1/briefs Your content briefs, newest first. Cost: free. Query: - `limit`: 1-100 (default 20) - `cursor`: next_cursor from the previous page ### GET /api/v1/briefs/{id} One content brief (brf_... id, or the job id from POST /briefs/generate): JSON with every part and a markdown field; ?format=markdown answers the Markdown document itself (text/markdown). Cost: free. Path: `id` Query: - `format` (json | markdown): json (default) or markdown ### POST /api/v1/hooks/recommend Hook mechanisms for an audience (a saved profile, or audience text and an optional niche), ranked by measured lift: for each mechanism the hooks, independent creators, median virality score, lift over the other strong hooks, outlier rate, confidence and real example hooks with links to their videos, matched to the audience by the niche's distinctive words together with meaning (the whole library when fewer than 12 match, said in limitations), plus templates adapted to the audience (hypotheses, each pointing at the real hook it adapts). Async: poll /analysis/jobs/{job_id} (about a minute). Included, up to 30 a day. Cost: free. Body (JSON): - `profile_id` number: A saved audience profile (or send audience) - `audience` string: Who the hooks are for (or send profile_id) - `niche` string: The niche, e.g. "budget cooking" - `platform` string (tt | yt | ig): Only hooks from tt, yt or ig - `days` number: Hooks posted in the last 30-730 days (default 365) ### POST /api/v1/estimate Cost estimate before you spend: send up to 20 calls ({method, path, body}) and get each one's credits, why it is free when it is (cached in the last 7 days, already running, a read, included), the fair use left today for included AI work, the total, your balance and whether it covers the total. Changes nothing and charges nothing. Cost: free. Body (JSON): - `calls` array, required: 1-20 calls, e.g. {"method": "POST", "path": "/search/demand", "body": {"keywords": ["contour"]}} ### POST /api/v1/mcp MCP server (Model Context Protocol, Streamable HTTP). Connect an AI assistant with your API key; every endpoint is a tool. Cost: free.