The short-form video research API for developers and AI agents
Find organic outlier videos on TikTok, YouTube Shorts and Instagram Reels, see why they work (hooks, structure, formats, comments) and turn them into audience-matched content ideas. 145 of 159 endpoints are free; the rest cost exactly what the app costs.
What is the lulubanana API?
lulubanana is a content research platform and API for short-form video (TikTok, YouTube Shorts and Instagram Reels). The API gives developers and AI agents five kinds of intelligence: discover relevant organic content, verify that it beat its creator's normal, understand its hook, structure and audience, match it to a specific audience, and monitor new breakouts and trends. Search opportunities connect it with what people search on Google and YouTube. Every answer keeps its evidence and marks what is measured and what is an AI reading.
15 capabilities of the lulubanana API
Quick start: your first research in 3 steps
- Create an account and confirm your email (100 free trial credits).
- Create a key in Settings → API; it starts with
lb_and is shown once. - Start a research job, poll it, read the results.
# 1. start a research job (one run: 100 credits)
curl -X POST https://lulubanana.com/api/v1/research/jobs -H "Authorization: Bearer $LULUBANANA_KEY" \
-H "Content-Type: application/json" -d '{"niche": "Affordable skincare routines for college students"}'
# a reply with status "planning" (no id yet, nothing charged): wait 30 s and POST {"plan_job_id": <its plan_job_id>} again
# 2. poll every 15 s until status is completed
curl https://lulubanana.com/api/v1/research/jobs/1001 -H "Authorization: Bearer $LULUBANANA_KEY"
# 3. read the outliers, report and coverage (free)
curl https://lulubanana.com/api/v1/research/jobs/1001/results -H "Authorization: Bearer $LULUBANANA_KEY"import os, time
from lulubanana import Lulubanana # https://lulubanana.com/sdk/lulubanana.py
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
job = lb.create_research_jobs({"niche": "Affordable skincare routines for college students"})
while job["data"]["status"] == "planning": # planning took over 40 s: nothing was charged yet, resume it
time.sleep(30)
job = lb.create_research_jobs({"plan_job_id": job["data"]["plan_job_id"]})
lb.wait(f"/research/jobs/{job['data']['id']}", until=("completed", "partially_completed", "failed", "canceled"))
results = lb.get_research_jobs_results(job["data"]["id"])
for v in results["data"]["top_videos"]:
print(v["url"], v["outlier"]["ratio"], v["virality_score"])import { Lulubanana } from './lulubanana.mjs'; // https://lulubanana.com/sdk/lulubanana.mjs
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
let job = await lb.create_research_jobs({ niche: 'Affordable skincare routines for college students' });
while (job.data.status === 'planning') { // planning took over 40 s: nothing was charged yet, resume it
await new Promise(r => setTimeout(r, 30000));
job = await lb.create_research_jobs({ plan_job_id: job.data.plan_job_id });
}
await lb.wait(`/research/jobs/${job.data.id}`, ['completed', 'partially_completed', 'failed', 'canceled']);
const { data } = await lb.get_research_jobs_results(job.data.id);
for (const v of data.top_videos) console.log(v.url, v.outlier.ratio, v.virality_score);Authentication and API keys
Send Authorization: Bearer lb_… with every request. Keys are created and revoked in Settings → API and stored only as a hash. A key can be full access or read-only (reads and searches only; anything that charges or changes returns 403 read_only_key). Give each key a monthly credit limit; GET /account/audit lists every call made with your keys for 90 days.
Prices and credits: the API costs what the app costs
One balance, one price list for the dashboard, the API, schedules and AI assistants. Reading, searching and included AI analysis are free.
| Action | Charged | Credits |
|---|---|---|
| Research agent run One-off, manual or scheduled. Returned in full if the run fails. | per run | 100 |
| Creator tracking Each tracked creator, each day it is checked. | per daily check | 15 |
| Video tracking Each tracked video, each day it is checked. | per daily check | 10 |
| Creator baseline check Reads a creator's recent posts to measure their usual views (API). Free when checked in the last 24 hours. Returned if the check fails. | per check | 15 |
| Video comments check Collects a TikTok video's top comments (API). Free for YouTube and when collected in the last 7 days. Returned if it fails. Instagram comments are not collected. | per video | 10 |
| Search check The top Google or YouTube results for one keyword with what they miss, or search demand for up to 20 keywords. Free when checked in the last 7 days. Returned if the check fails. | per keyword or demand lookup | 10 |
| Search opportunity research Social evidence matched to Google and YouTube searches: intent, demand, the top results and their gaps, four separate scores, up to 20 ranked opportunities. A research run is added only when the niche has too little collected data. Returned if it fails. | per job | 100 |
| Fusion Engine research Audience problems matched across search demand and proven social formats, checked against your Audience DNA and Creator DNA: ranked opportunities with a priority score, a separate evidence confidence and a ready brief. A research run or search checks are added only when evidence is missing and only within your spending limit. Returned if it fails. | per job | 100 |
| Every read, search and included analysis Hooks, formats, topics, creators, opportunities (10/day), creative breakdowns (20/day), comment insights (30/day), search intent (30/day), content briefs (30/day), hook recommendations (30/day), cost estimates | per request | 0 |
Responses and errors
Replies are JSON with the result in data. Every successful reply carries X-Credits-Used and X-Credits-Remaining. Errors are never charged and carry a machine-readable code.
| Status | code | Meaning |
|---|---|---|
| 400 | bad_request | The request is not valid; error says which field. |
| 401 | unauthorized | Missing, wrong, expired or revoked key. |
| 402 | insufficient_credits / key_limit_reached | Not enough credits, or the key reached its monthly limit. Nothing was charged. |
| 403 | read_only_key / forbidden | A read-only key tried to start or change something. |
| 404 | not_found | Unknown or not yours. |
| 409 | conflict | The action no longer applies (e.g. canceling a job that already started). |
| 429 | rate_limited | 60 requests a minute per key, or a daily fair-use ceiling. |
Pagination, deduplication and coverage
- Lists return
next_cursor; send it back ascursor. The SDKs'pages()follows it for you. - Results are deduplicated by platform post id across searches and runs.
coverage_statusisok,thin,not_collectedorinsufficient_collection, so an empty answer is never mistaken for "nothing exists".
Asynchronous jobs
Research jobs, opportunities, baselines, comment collection, creative breakdowns, search intent, search demand, results audits, search opportunities, content briefs and hook recommendations answer at once with a job_id. Poll /research/jobs/{id} or /analysis/jobs/{id} (every 10-15 s, or as poll_after_seconds says; a search opportunity job shows collecting while a research run gathers videos, then analyzing), or subscribe to webhooks. Failed paid checks are refunded automatically.
Rate limits and fair use
60 requests a minute per key. Included work has a daily ceiling per account: 10 opportunity searches, 20 creative breakdowns, 30 comment analyses, 30 niche plans, 60 free YouTube comment collections, 300 meaning searches, 30 search intent extractions, 30 content briefs, 30 hook recommendations, 100 free (cached) search demand lookups and 100 free (cached) results audits; the reply to a ceiling says it resets within 24 hours, so waiting a minute does not help. Repeated questions are answered from shared results, so asking twice costs nothing.
Data accuracy: what the API will not claim
- A missing number is
null, never 0. - Observed platform numbers and AI readings are kept apart in
provenance. - A creator's region is not their viewers' geography.
- Views alone do not prove a video is organic: sponsored posts are flagged and left out by default.
- AI explanations are hypotheses with evidence, not proof of why a video went viral.
- A video that cannot be inspected is marked
incomplete; a caption is never passed off as video analysis. - Other creators' videos are evidence of a mechanism, never a license to reuse their footage or scripts.
SDKs, MCP server and files for AI tools
- Python: lulubanana.py (standard library only). JavaScript: lulubanana.mjs (Node 18+, Deno, browsers). One method per endpoint, retries on the per-minute 429 (a daily fair-use 429 is raised at once),
pages()andwait(). - MCP server:
https://lulubanana.com/api/v1/mcp. Assistants that support OAuth connect by signing in (no key to paste); other tools send a key. Every endpoint is a tool with the same prices. - For AI tools: /llms.txt, /llms-full.txt (every endpoint), /ai-guide.txt (which call answers which question), and a Markdown version of every docs page (e.g. /developers/hooks.md).
- OpenAPI 3.1: /api/openapi.json.
lulubanana API: frequently asked questions
What is the lulubanana API?
lulubanana is a content research platform and API for short-form video (TikTok, YouTube Shorts and Instagram Reels). Its API finds organic outlier videos in any niche, explains why they work (hooks, structure, formats, comments) and turns them into audience-matched content opportunities, for developers and AI agents.
Which platforms does the API cover?
TikTok, YouTube Shorts and Instagram Reels, with one record shape for all three.
How much does the lulubanana API cost?
The API costs exactly what the app costs, from one credit balance: a research run is 100 credits, a creator check 15, a video check 10; every read, search and included AI analysis is free. Plans start with a free trial.
How is lulubanana different from a raw scraping API?
Instead of raw posts it returns intelligence: creator-relative outlier ratios with confidence, hook mechanisms, creative breakdowns, comment insights and ranked opportunities, each with the evidence behind it and a clear line between measured data and AI readings.
Can AI agents use the API?
Yes. Every endpoint is also an MCP tool; assistants that support OAuth connect by signing in, and /ai-guide.txt explains which call answers which question.
Is there a Python or JavaScript SDK?
Yes, both, generated from the live OpenAPI specification: /sdk/lulubanana.py and /sdk/lulubanana.mjs.
What are the rate limits?
60 requests a minute per key; each AI analysis has a daily fair-use ceiling. A 429 reply has code rate_limited.
Does lulubanana report data it cannot see?
No. Missing numbers stay empty, inferred fields are labelled, unavailable videos are marked incomplete, and empty searches say whether data was not collected.
Can the API connect viral videos with Google and YouTube searches?
Yes. POST /search/opportunities takes a niche, finds the verified organic outliers behind it, turns their topics into Google and YouTube searches, measures demand, audits the current results and ranks opportunities with four separate scores (social, Google SEO, YouTube, evidence confidence) and a timing label. It costs 100 credits, plus one research run only when too little is collected.
Can I see what a call will cost before I make it?
Yes. POST /estimate prices up to 20 planned calls for free, with the reason a call is free (cached, already running, a read or included) and the fair use left.