The TrendsIQ API.
A public, stable REST API is on the roadmap. Until then, here are the internal endpoints the TrendsIQ web app calls — for transparency, not for production integration.
The public, customer-facing https://api.trendsiq.io/v1/* endpoints are still in design — we're stabilising the data model before promising a contract. The list below is the real internal API surface that powers the TrendsIQ web app today. Auth is cookie-based; endpoints require an active user session and (where indicated) a connected BYOK key.
Auth
/api/auth/signupCreate a TrendsIQ account.
/api/auth/loginEmail/password login → returns access cookie.
/api/auth/forgot-passwordTrigger a Resend-sent password-reset email.
/api/auth/meReturn the current authed user.
Integrations
/api/integrationsList the user's connected BYOK keys with live quota.
/api/integrationsAdd or update a BYOK key (YouTube / SerpApi / Supadata / Gemini).
/api/integrations/{id}Revoke a connected key. Deletion is immediate and permanent.
/api/integrations/statusPer-provider connection + live quota snapshot (5-min TTL).
YouTube Data
/api/youtube/trendingDiscover pipeline — 3-stage candidate pool, guaranteed ≥20 results for common combos.
/api/youtube/searchFree-text YouTube search via your BYOK key.
/api/youtube/channelChannel deep-look — videos, stats, sub count.
/api/youtube/categoriesRegion-aware list of YouTube video categories.
AI
/api/ai/titlesGenerate title variants with predicted CTR + clarity.
/api/ai/hooksGenerate 8 hook patterns with predicted retention.
/api/ai/scriptLong-form script generation — streams as NDJSON to bypass edge timeouts.
/api/ai/deep-diveReverse-engineer a topic: angles, hooks, comment intents, supporting videos.
/api/ai/thumbnailsLayout-aware thumbnail concept briefs.
/api/ai/thumbnailImage generation via Gemini 2.5 Flash Image Preview (Nano Banana).
/api/ai/channel-researchReverse-engineer a competitor channel via grounded analysis.
/api/ai/gapsFind under-served sub-topics in a niche.
/api/ai/calendar30-day content calendar tailored to your niche + voice.
Dashboard
/api/dashboard/hot-opportunitiesSnapshot of your trending YouTube breakouts (cron-refreshed every 6h).
Library
/api/savedList items saved to your library.
/api/savedSave an item (trend / hook / title / thumbnail) to your library.
Pipeline
/api/pipelineList your 4-stage video-production kanban items.
Public
/api/trend-reportsWeekly auto-generated niche trend reports.