Loading API docs...
Map X keyword streams and account monitoring to TrendsAGI signal filters for social listening, escalation, and content strategy loops. This page lists the required credentials, setup example, mapped endpoints, and production notes.
Base URL
https://api.trendsagi.com114
Routes
16
Guides
3
Languages
Social pulse ingestion and response routing
Map X keyword streams and account monitoring to TrendsAGI signal filters for social listening, escalation, and content strategy loops.
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/trends", API_BASE_URL);
url.search = new URLSearchParams({
search: "AI policy",
category: "Technology",
period: "4h",
limit: "10",
}).toString();
const response = await fetch(url, {
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const signals = await response.json();
// route top signals to X playbooks
console.log((signals.trends ?? []).slice(0, 3));
}
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