# LightReel > LightReel (https://lightreel.ai) is an AI UGC marketing researcher. Ask it any question — what videos are trending, what your competitors are doing, what's happening with your brand — and it searches thousands of TikToks and Instagram posts in real time to answer with live data. It covers UGC trends, creator discovery, viral hooks and formats, brand activity, and competitor content. ## Primary URLs - Home: https://lightreel.ai/ - API documentation: https://lightreel.ai/docs - Blog index: https://lightreel.ai/blogs - UGC Playbook: https://lightreel.ai/blogs/ugc-guide - Sitemap: https://lightreel.ai/sitemap.xml Weekly UGC research articles are published under https://lightreel.ai/blogs/{slug} — use the sitemap for the current list. # LightReel API The API at https://api.lightreel.ai lets you ask LightReel questions from your own code. Human-readable docs: https://lightreel.ai/docs ## Getting started - Base URL: https://api.lightreel.ai - Auth: send your API key in the `Authorization: Bearer ` header on every request. Keys look like `lr_live_...` and are created from the LightReel dashboard (https://lightreel.ai/). - Official SDKs: Node.js (`npm install lightreel`) and Python (`pip install lightreel`). The API key can be passed to the client constructor or set via the `LIGHTREEL_API_KEY` environment variable. - The more context you give in your questions, the better the responses will be. ## Ask a question `POST /v1/chat` with body `{ "question": string, "conversation_id"?: string, "response_fields"?: object }`. - The answer text comes back in the `answer` field (a string, unless `response_fields` is used). - `conversationId` is returned; pass it back as `conversation_id` to continue the same conversation. ```bash curl -X POST https://api.lightreel.ai/v1/chat \ -H "Authorization: Bearer lr_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "question": "find me the top fitness hooks this week" }' ``` ## Structured output (response_fields) Add `response_fields` to get JSON back instead of prose. Requested fields come back nested inside `answer` (so `answer` is an object, not a string). - Up to 5 fields. Types are `"string"` or `"array"` only. Only requested keys are returned. - In each field's `description`, say what the field is supposed to be and any supporting context / evidence you want. - For multiple attributes about the same items, use multiple arrays and state in the descriptions that they should be index-aligned. ## Fetch transcripts - `GET /v1/chat/:id` — full transcript of one conversation (a `messages` array of `{ role, question/answer }`). - `GET /v1/chats` — your latest 50 API chats (`{ "conversations": [...] }`). ## Errors Failures return a non-2xx status with a body like `{ "error": { "message": "...", "type": "..." } }` — e.g. type `authentication_error` or `invalid_request_error`. The SDKs raise/throw a `LightreelError` carrying `.status` and `.type`. ## Usage notes - Requests run the agent live and can take several minutes — set a generous client timeout. - API requests draw from your normal LightReel usage, the same as the dashboard. Team seats do not increase API limits. - Questions? Email support@lightreel.ai. ## Examples ### Find winning videos Get every video that recently started working for an account, with the explanation of what changed included right in the field. (https://lightreel.ai/docs/examples/find-winning-videos) Request body: ```json { "question": "get me every video that started working for @hoopify and explain what they started doing differently", "response_fields": { "videos": { "type": "array", "description": "Include the URLs followed by the explanation for why it started doing well" } } } ``` Response: ```json { "conversationId": "...", "answer": { "videos": [ "https://www.tiktok.com/@account/video/7384... — switched to faster hooks and native captions", "https://www.tiktok.com/@account/video/7390... — leaned into trending audio with a bold on-screen claim" ] } } ``` ### Score and critique accounts Get structured feedback on any account — one entry per handle, formatted however you ask. (https://lightreel.ai/docs/examples/score-and-critique-accounts) Request body: ```json { "question": "https://www.instagram.com/hoopify see if you have any feedback for these accounts", "response_fields": { "feedback": { "type": "array", "description": "One entry per account formatted as handle | feedback" } } } ``` Response: ```json { "conversationId": "...", "answer": { "feedback": [ "@hoopify | strong hooks, but post more consistently and lean into faster cuts", "@dunkdaily | great editing, captions are too small and CTAs are missing" ] } } ``` ### Discover hooks Pull the exact hooks similar products are running right now, with the video and app each one came from. (https://lightreel.ai/docs/examples/discover-hooks) Request body: ```json { "question": "I am building a screen time app that makes you do pushups whenever you want to use your phone. Find hooks that similar screen time apps are using, ideally from the last 7 days.", "response_fields": { "hooks": { "type": "array", "description": "The hook line, one per video" }, "videos": { "type": "array", "description": "URL of the video the hook is from, index-aligned with hooks" }, "app_names": { "type": "array", "description": "The screen time app being promoted, index-aligned with hooks" } } } ``` Response: ```json { "conversationId": "...", "answer": { "hooks": [ "I gave my phone a bouncer. He charges 20 pushups at the door", "POV: your screen time app just made you earn Instagram" ], "videos": ["https://www.tiktok.com/@lockedinapp/video/74...", "https://www.tiktok.com/@gymtoksaru/video/74..."], "app_names": ["Lockout", "ScreenFit"] } } ``` ### Find micro-influencers Cast a wide net for niche creators under a follower cap, with existing brand deals flagged. (https://lightreel.ai/docs/examples/find-micro-influencers) Request body: ```json { "question": "I am building an AI coding startup that lets people code from their Apple Watch. I need tech micro influencers with under 50,000 followers who post on Instagram — be very broad and find as many as you can. I'm focusing on breadth over depth here.", "response_fields": { "handles": { "type": "array", "description": "One creator handle per entry" }, "descriptions": { "type": "array", "description": "What the creator posts, index-aligned with handles" }, "brand_partnerships": { "type": "array", "description": "Brands they have partnered with, index-aligned with handles — leave \"\" if none" } } } ``` Response: ```json { "conversationId": "...", "answer": { "handles": ["@buildwithmarco", "@thecodingpa", "@lofidev"], "descriptions": [ "Day-in-the-life builds of indie iOS apps", "Explains dev tools in 30-second reels", "Codes side projects on camera with lo-fi audio" ], "brand_partnerships": ["Raycast", "", "Notion, Warp"] } } ``` ### Find trending topics Monitor a niche for new coverage — every occurrence in a time window, tagged by issue. (https://lightreel.ai/docs/examples/find-trending-topics) Request body: ```json { "question": "I run a podcast about environmental events — think pollution in new cities, datacenters being created, tech-adjacent news. Find every occurrence of environmental-tech news in the last 2 days.", "response_fields": { "video_urls": { "type": "array", "description": "One video per entry" }, "environmental_issues": { "type": "array", "description": "The issue the video covers, index-aligned with video_urls" } } } ``` Response: ```json { "conversationId": "...", "answer": { "video_urls": ["https://www.tiktok.com/@climatewatch/video/74...", "https://www.tiktok.com/@gridnews/video/74..."], "environmental_issues": [ "New hyperscale datacenter straining the local water supply in Phoenix", "Microplastic levels spiking in a newly industrialized river delta" ] } } ``` ### Meta ad inspiration Give the agent deep context about what already works for you, and get back emerging formats to feed future ads. (https://lightreel.ai/docs/examples/meta-ad-inspiration) Request body: ```json { "question": "I'm creating a D2C protein muffin company. We sell muffins to consumers that have 20 grams of protein, and we mainly advertise through Meta ads. What has worked well for us in the past is videos showing extremely skinny people doing before and afters, specifically if there's some level of humor or an absurd background element. I don't need exact copies of this — just general video inspiration or hooks that are really breaking out right now on TikTok that can be used as inspiration. For context, I'm the head of marketing and have A LOT of context about the current social media landscape — surface really nuanced formats and details that JUST started working so I can use them for future ads. You're not constrained to just this — if you find some format that might generally be useful that I can use, show it to me too.", "response_fields": { "formats": { "type": "array", "description": "The format or hook, described specifically enough to brief an editor" }, "video_urls": { "type": "array", "description": "A breakout example of the format, index-aligned with formats" }, "why_applicable": { "type": "array", "description": "Why this works for a D2C protein brand, index-aligned with formats" } } } ``` Response: ```json { "conversationId": "...", "answer": { "formats": [ "Fake street interview where the interviewer keeps getting distracted by the product", "Before/after where the 'after' is absurdly minor but played completely straight" ], "video_urls": ["https://www.tiktok.com/@snackfluent/video/74...", "https://www.tiktok.com/@gymbrolabs/video/74..."], "why_applicable": [ "Started spiking 4 days ago — the interruption showcases packaging without feeling like an ad", "Same before/after energy as your past winners, but the deadpan absurdity is the part that's newly working" ] } } ``` ### Pull contact info for creators Find creators matching a profile and pull their contact info in one call. (https://lightreel.ai/docs/examples/pull-creator-contacts) Request body: ```json { "question": "Find me creators who are tier 1 (UCLA / Berkeley) college students making day in the life videos", "response_fields": { "emails": { "type": "array", "description": "One per creator formatted as handle | email" } } } ``` Response: ```json { "conversationId": "...", "answer": { "emails": [ "@bruindays | jordan.lee@ucla.edu", "@berkeleymornings | mia.k@berkeley.edu" ] } } ```