Loading API docs...
Track topic momentum to prioritize video briefs and title experiments based on live market attention. This page lists the required credentials, setup example, mapped endpoints, and production notes.
Base URL
https://api.trendsagi.com114
Routes
16
Guides
3
Languages
Video-topic momentum and audience alignment
Track topic momentum to prioritize video briefs and title experiments based on live market attention.
Install
# No TrendsAGI package required
# Use native fetch in your existing JS runtimeRequired credentials
const API_BASE_URL = process.env.API_BASE_URL ?? "https://api.trendsagi.com";
const apiKey = process.env.TRENDSAGI_API_KEY;
if (!apiKey) throw new Error("Set TRENDSAGI_API_KEY first");
async function main() {
const url = new URL("/api/intelligence/recommendations", API_BASE_URL);
url.searchParams.set("limit", "10");
const response = await fetch(url, {
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const recommendations = await response.json();
for (const rec of recommendations.recommendations ?? []) {
const brief = rec.decision_brief;
console.log({
source: rec.source_trend_name,
recommendation: rec.title,
whyNow: brief?.why_now,
evidenceCompleteness: brief?.confidence?.score,
actionable: brief?.actionable,
});
}
}
main().catch(console.error);# Save as quickstart.mjs
node quickstart.mjs1. Install
Add SDK/dependency for this integration path.
2. Authenticate
Set API key and any provider-specific credentials.
3. Map Endpoints
Use mapped endpoints below to build deterministic flow.
4. Harden
Add rate-limit backoff, idempotency, and safety gates.
Endpoint Mapping
Each integration is mapped to specific API endpoints so teams can compose deterministic workflows.
Production Notes