lulubanana
API · 11 of 15

Automated social media research API: niche research jobs and schedules

The lulubanana research API starts a full niche research with one request: send a niche sentence (search terms are planned for you) or your own terms, and an agent searches TikTok, YouTube Shorts and Instagram Reels, scores every video, analyses hooks and formats, writes an evidence-backed report and compares the run with the previous one.

27 endpoints22 free5 priced like the appTikTok · YouTube Shorts · Instagram Reels

What is the automated research jobs API?

The lulubanana research API starts a full niche research with one request: send a niche sentence (search terms are planned for you) or your own terms, and an agent searches TikTok, YouTube Shorts and Instagram Reels, scores every video, analyses hooks and formats, writes an evidence-backed report and compares the run with the previous one. Runs can repeat daily, weekly, monthly or every N days.

lulubanana is a content research platform and API for short-form video (TikTok, YouTube Shorts and Instagram Reels). It is built for developers, content teams and autonomous AI agents that need evidence-backed answers instead of raw posts: every result keeps its source videos and marks what is measured and what is an AI reading.

10 things you can do with the social media research API

  1. Start a research job from one sentence
  2. Start up to 5 research jobs in one call, all or nothing
  3. Follow queued, collecting, analyzing, completed, partially_completed, failed and canceled
  4. Read coverage, freshness, credits charged and cache reuse
  5. Get the AI report with evidence videos and confidence
  6. See what is new since the agent's previous run: outliers, trends and opportunities
  7. Read the results as a Markdown document (?format=markdown)
  8. Schedule research daily, weekly, monthly or every 2-90 days
  9. Cancel a queued job and get the credits back
  10. Let autopilot refine search terms

How it works

  1. POST /research/jobs with a niche (one research run, 100 credits), or POST /research/jobs/batch with up to 5.
  2. Poll GET /research/jobs/{id} every 15 seconds.
  3. Read GET /research/jobs/{id}/results (JSON, or ?format=markdown); new_since_previous lists what changed since the previous run.

Endpoints

EndpointWhat it doesCost
POST /research/jobsStart a full niche research in one call100 credits
POST /research/jobs/batchStart 1-5 research jobs in one call (each item is a POST /research/jobs body100 credits
GET /research/jobsYour research jobs, newest first, with their statusFree
GET /research/jobs/{id}One research job's statusFree
POST /research/jobs/{id}/cancelCancel a job that has not started collecting yet; its credits come backFree
GET /research/jobs/{id}/resultsEverything a finished job foundFree
GET /research/schedulesYour recurring research (agents on a schedule)Free
POST /research/schedulesStart recurring research100 credits
PATCH /research/schedules/{id}Pause or resume (status "paused" | "active"), change cadence or every_days (null…Free
POST /agents/planTurn one sentence into a plan (name, search terms, words to filter out)Free
POST /agentsCreate an agent and start its first run100 credits
GET /agentsYour research agents with their last runFree
GET /agents/{id}One agent, with the done signalFree
PATCH /agents/{id}Change name, terms, excludes, platforms, cadence, en_only, autopilot or status…Free
DELETE /agents/{id}Delete an agent and its resultsFree
POST /agents/{id}/runStart a research run now100 credits
GET /agents/{id}/runsThe last 30 runs with results and credits chargedFree
GET /agents/{id}/runs/{run_id}One runFree
GET /agents/{id}/summaryEverything about an agent in one callFree
GET /agents/{id}/reportThe AI report for the latest run (or ?run_id=)Free
GET /agents/{id}/analysisEvery AI report written for this agent (one per run), newest firstFree
GET /agents/{id}/analysis/latestThe latest AI reportFree
GET /agents/{id}/compareWhat changed since the previous runFree
GET /agents/{id}/activityWhat autopilot changed and whyFree
PUT /agents/{id}/autonomyTurn autopilot on or off (it replaces weak search terms and adds timely keywords;…Free
GET /agents/{id}/adsMeta ads found for this agent's search terms, longest-running first among active ones…Free
GET /jobs/{id}Progress and result of a run or a planFree
POST/api/v1/research/jobs#

Start a full niche research in one call

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.

ParameterInTypeDescription
nichebodystringOne sentence about the niche and audience (15-500 characters). Search terms are planned from it for free when terms is left out
termsbodyarray3-10 search phrases (optional when niche is sent)
plan_job_idbodynumberResume a job whose planning took longer than 40 seconds
agent_idbodynumberRun an existing agent instead
namebodystringA name (default: from the niche)
excludesbodyarrayWords that mark a video as off-topic
platformsbodyarrayAny of tt, yt, ig (default all three)
en_onlybodybooleanEnglish videos only (default true)
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","platforms":["tt","yt","ig"]}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_research_jobs({"niche": "Affordable skincare routines for college students", "platforms": ["tt", "yt", "ig"]})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_research_jobs({ niche: "Affordable skincare routines for college students", platforms: ["tt", "yt", "ig"] });
Example reply
{
  "data": {
    "id": 1001,
    "agent_id": 42,
    "status": "queued",
    "terms": [
      "cheap skincare routine",
      "drugstore skincare for acne",
      "skincare routine under 20 dollars"
    ],
    "credits_used": 100,
    "credits_remaining": 1900,
    "poll_url": "/api/v1/research/jobs/1001"
  }
}
POST/api/v1/research/jobs/batch#

Start 1-5 research jobs in one call (each item is a POST /research/jobs body

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).

ParameterInTypeDescription
niches requiredbodyarray1-5 research job bodies, each like POST /research/jobs: {niche} or {terms} or {agent_id}
curl -X POST "https://lulubanana.com/api/v1/research/jobs/batch" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"niches":[{"niche":"Home espresso for beginners with a first machine"},{"niche":"Latte art at home for coffee lovers on a budget"}]}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_research_jobs_batch({"niches": [{"niche": "Home espresso for beginners with a first machine"}, {"niche": "Latte art at home for coffee lovers on a budget"}]})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_research_jobs_batch({ niches: [{ niche: "Home espresso for beginners with a first machine" }, { niche: "Latte art at home for coffee lovers on a budget" }] });
Example reply
{
  "data": {
    "status": "queued",
    "jobs": [
      {
        "index": 0,
        "id": 1001,
        "agent_id": 42,
        "status": "queued",
        "terms": [
          "espresso for beginners",
          "home espresso setup",
          "dial in espresso"
        ],
        "credits_used": 100,
        "poll_url": "/api/v1/research/jobs/1001",
        "results_url": "/api/v1/research/jobs/1001/results"
      },
      {
        "index": 1,
        "id": 1002,
        "agent_id": 43,
        "status": "queued",
        "terms": [
          "latte art at home",
          "milk frothing tips",
          "latte art for beginners"
        ],
        "credits_used": 100,
        "poll_url": "/api/v1/research/jobs/1002",
        "results_url": "/api/v1/research/jobs/1002/results"
      }
    ],
    "credits_used": 200,
    "credits_remaining": 1640
  }
}
GET/api/v1/research/jobsFree#

Your research jobs, newest first, with their status

Your research jobs, newest first, with their status.

ParameterInTypeDescription
limitquerystring1-100 (default 20)
cursorquerystringnext_cursor from the previous page
curl "https://lulubanana.com/api/v1/research/jobs" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_research_jobs()
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_research_jobs();
GET/api/v1/research/jobs/{id}Free#

One research job's status

One research job's status. Poll every 15 seconds until completed, partially_completed, failed or canceled.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl "https://lulubanana.com/api/v1/research/jobs/1001" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_research_jobs_item(1001)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_research_jobs_item(1001);
Example reply
{
  "data": {
    "id": 1001,
    "agent_id": 42,
    "status": "collecting",
    "detail": "Searching TikTok",
    "created_at": "2026-11-23T09:00:00.000Z",
    "results_url": "/api/v1/research/jobs/1001/results",
    "poll_after_seconds": 15
  }
}
POST/api/v1/research/jobs/{id}/cancelFree#

Cancel a job that has not started collecting yet; its credits come back

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.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl -X POST "https://lulubanana.com/api/v1/research/jobs/1001/cancel" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_research_jobs_cancel(1001, {})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_research_jobs_cancel(1001, {});
GET/api/v1/research/jobs/{id}/resultsFree#

Everything a finished job found

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).

ParameterInTypeDescription
id requiredpathstringThe id in the path
limitquerystringTop videos to include, 1-100 (default 25)
formatqueryjson | markdownjson (default) or markdown
curl "https://lulubanana.com/api/v1/research/jobs/1001/results" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_research_jobs_results(1001)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_research_jobs_results(1001);
GET/api/v1/research/schedulesFree#

Your recurring research (agents on a schedule)

Your recurring research (agents on a schedule).

curl "https://lulubanana.com/api/v1/research/schedules" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_research_schedules()
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_research_schedules();
POST/api/v1/research/schedules#

Start recurring research

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.

ParameterInTypeDescription
nichebodystringOne sentence about the niche and audience (15-500 characters). Search terms are planned from it for free when terms is left out
termsbodyarray3-10 search phrases (optional when niche is sent)
plan_job_idbodynumberResume a job whose planning took longer than 40 seconds
agent_idbodynumberRun an existing agent instead
namebodystringA name (default: from the niche)
excludesbodyarrayWords that mark a video as off-topic
platformsbodyarrayAny of tt, yt, ig (default all three)
en_onlybodybooleanEnglish videos only (default true)
cadencebodydaily | weekly | monthlydaily, weekly or monthly
every_daysbodynumberCustom interval: every N days, 2-90 (instead of cadence)
curl -X POST "https://lulubanana.com/api/v1/research/schedules" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"niche":"Affordable skincare routines for college students","every_days":3}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_research_schedules({"niche": "Affordable skincare routines for college students", "every_days": 3})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_research_schedules({ niche: "Affordable skincare routines for college students", every_days: 3 });
PATCH/api/v1/research/schedules/{id}Free#

Pause or resume (status "paused" | "active"), change cadence or every_days (null…

Pause or resume (status "paused" | "active"), change cadence or every_days (null clears it), terms, platforms or autopilot.

ParameterInTypeDescription
id requiredpathstringThe id in the path
statusbodyactive | pausedactive or paused
cadencebodydaily | weekly | monthlydaily, weekly or monthly
every_daysbodynumberEvery N days, 2-90, or null
termsbodyarray3-10 search phrases
platformsbodyarrayAny of tt, yt, ig
excludesbodyarrayOff-topic words
autopilotbodybooleanAutopilot on or off
curl -X PATCH "https://lulubanana.com/api/v1/research/schedules/42" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"paused"}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.update_research_schedules_item(42, {"status": "paused"})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.update_research_schedules_item(42, { status: "paused" });
POST/api/v1/agents/planFree#

Turn one sentence into a plan (name, search terms, words to filter out)

Turn one sentence into a plan (name, search terms, words to filter out). Body: {brief}. Read the plan from GET /jobs/{job_id}.

ParameterInTypeDescription
brief requiredbodystringOne sentence about the niche, 15-500 characters
en_onlybodybooleanKeep only English videos (default true)
curl -X POST "https://lulubanana.com/api/v1/agents/plan" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brief":"Affordable skincare routines for college students"}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_agents_plan({"brief": "Affordable skincare routines for college students"})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_agents_plan({ brief: "Affordable skincare routines for college students" });
POST/api/v1/agents#

Create an agent and start its first run

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}.

ParameterInTypeDescription
name requiredbodystringAgent name
brief requiredbodystringWhat you want to learn about the niche
terms requiredbodyarray3-10 search terms
excludesbodyarrayWords that mark a video as off-topic
platformsbodyarrayPlatforms to search (default all three)
cadencebodyonce | daily | weekly | monthlyonce, daily, weekly or monthly (default once)
en_onlybodybooleanKeep only English videos (default true)
autopilotbodybooleanLet the agent replace weak search terms and add timely keywords (default false)
curl -X POST "https://lulubanana.com/api/v1/agents" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Student skincare","brief":"Affordable skincare for students","terms":["cheap skincare routine","drugstore skincare","skincare for acne"],"cadence":"weekly"}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_agents({"name": "Student skincare", "brief": "Affordable skincare for students", "terms": ["cheap skincare routine", "drugstore skincare", "skincare for acne"], "cadence": "weekly"})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_agents({ name: "Student skincare", brief: "Affordable skincare for students", terms: ["cheap skincare routine", "drugstore skincare", "skincare for acne"], cadence: "weekly" });
GET/api/v1/agentsFree#

Your research agents with their last run

Your research agents with their last run.

curl "https://lulubanana.com/api/v1/agents" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents()
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents();
GET/api/v1/agents/{id}Free#

One agent, with the done signal

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.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl "https://lulubanana.com/api/v1/agents/42" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_item(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_item(42);
PATCH/api/v1/agents/{id}Free#

Change name, terms, excludes, platforms, cadence, en_only, autopilot or status…

Change name, terms, excludes, platforms, cadence, en_only, autopilot or status ("active" | "paused").

ParameterInTypeDescription
id requiredpathstringThe id in the path
namebodystringNew name
briefbodystringNew brief
termsbodyarray3-10 search terms
excludesbodyarrayOff-topic words
platformsbodyarrayPlatforms to search
cadencebodyonce | daily | weekly | monthlyonce, daily, weekly or monthly
en_onlybodybooleanKeep only English videos
autopilotbodybooleanAutopilot on or off
statusbodyactive | paused"active" or "paused"
curl -X PATCH "https://lulubanana.com/api/v1/agents/42" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"terms":["cheap skincare routine","drugstore skincare","skincare for acne","skincare under 20"]}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.update_agents_item(42, {"terms": ["cheap skincare routine", "drugstore skincare", "skincare for acne", "skincare under 20"]})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.update_agents_item(42, { terms: ["cheap skincare routine", "drugstore skincare", "skincare for acne", "skincare under 20"] });
DELETE/api/v1/agents/{id}Free#

Delete an agent and its results

Delete an agent and its results.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl -X DELETE "https://lulubanana.com/api/v1/agents/42" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.delete_agents_item(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.delete_agents_item(42);
POST/api/v1/agents/{id}/run#

Start a research run now

Start a research run now. If one is already queued or running you get its job back and pay nothing.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl -X POST "https://lulubanana.com/api/v1/agents/42/run" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_agents_run(42, {})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_agents_run(42, {});
GET/api/v1/agents/{id}/runsFree#

The last 30 runs with results and credits charged

The last 30 runs with results and credits charged.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl "https://lulubanana.com/api/v1/agents/42/runs" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_runs(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_runs(42);
GET/api/v1/agents/{id}/runs/{run_id}Free#

One run

One run: status, stage, videos found, outliers, credits used.

ParameterInTypeDescription
id requiredpathstringThe id in the path
run_id requiredpathstringrun_id
curl "https://lulubanana.com/api/v1/agents/42/runs/315" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_runs_by_run_id(42, 315)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_runs_by_run_id(42, 315);
GET/api/v1/agents/{id}/summaryFree#

Everything about an agent in one call

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.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl "https://lulubanana.com/api/v1/agents/42/summary" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_summary(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_summary(42);
GET/api/v1/agents/{id}/reportFree#

The AI report for the latest run (or ?run_id=)

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.

ParameterInTypeDescription
id requiredpathstringThe id in the path
run_idquerystringA past run id (default: the latest report)
curl "https://lulubanana.com/api/v1/agents/42/report" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_report(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_report(42);
GET/api/v1/agents/{id}/analysisFree#

Every AI report written for this agent (one per run), newest first

Every AI report written for this agent (one per run), newest first. Read one in full with /agents/{id}/report?run_id=.

ParameterInTypeDescription
id requiredpathstringThe id in the path
limitquerystringResults per page, 1-50 (default 10)
cursorquerystringnext_cursor from the previous page
curl "https://lulubanana.com/api/v1/agents/42/analysis" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_analysis(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_analysis(42);
GET/api/v1/agents/{id}/analysis/latestFree#

The latest AI report

The latest AI report: key highlight, themes with evidence videos and confidence, viewer ideas from comments, breaking events.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl "https://lulubanana.com/api/v1/agents/42/analysis/latest" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_analysis_latest(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_analysis_latest(42);
GET/api/v1/agents/{id}/compareFree#

What changed since the previous run

What changed since the previous run: headline numbers, new and dropped videos, the biggest view gains.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl "https://lulubanana.com/api/v1/agents/42/compare" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_compare(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_compare(42);
GET/api/v1/agents/{id}/activityFree#

What autopilot changed and why

What autopilot changed and why: replaced search terms, timely keywords from breaking events, weak-term reviews.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl "https://lulubanana.com/api/v1/agents/42/activity" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_activity(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_activity(42);
PUT/api/v1/agents/{id}/autonomyFree#

Turn autopilot on or off (it replaces weak search terms and adds timely keywords;…

Turn autopilot on or off (it replaces weak search terms and adds timely keywords; every change is listed in /agents/{id}/activity).

ParameterInTypeDescription
id requiredpathstringThe id in the path
enabled requiredbodybooleantrue to turn autopilot on, false to turn it off
curl -X PUT "https://lulubanana.com/api/v1/agents/42/autonomy" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":true}'
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.set_agents_autonomy(42, {"enabled": True})
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.set_agents_autonomy(42, { enabled: true });
GET/api/v1/agents/{id}/adsFree#

Meta ads found for this agent's search terms, longest-running first among active ones…

Meta ads found for this agent's search terms, longest-running first among active ones (an ad that keeps running is usually working).

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl "https://lulubanana.com/api/v1/agents/42/ads" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_ads(42)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_ads(42);
GET/api/v1/jobs/{id}Free#

Progress and result of a run or a plan

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.

ParameterInTypeDescription
id requiredpathstringThe id in the path
curl "https://lulubanana.com/api/v1/jobs/1001" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_jobs_item(1001)
import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_jobs_item(1001);

Automated research jobs: frequently asked questions

How long does a research job take?

About 13 minutes (9 in 10 within 17), plus about a minute for the AI report. Poll every 15 seconds.

Do repeated runs cost extra for the same data?

Results collected in the last 14 days are reused instead of collected again, and starting the same agent again within 6 hours returns the last run for free.

Can I start several niches at once?

Yes. POST /research/jobs/batch takes 1-5 bodies of POST /research/jobs and costs one research run each (100 credits). It is all or nothing: your 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 comes back free. If planning the search terms takes over 40 seconds, the reply is status planning with plan_job_ids to send back, and nothing is charged.

What does new_since_previous show?

The outliers, trends (new ones and stage changes) and opportunities this run found that the agent's previous finished run did not, with the previous run id and how the two were compared. The agent's first run has nothing to compare with, so its fields are empty and a note says why.