TrendsAGI API Docs
Complete API reference for trends, automations, and integrations. Connect Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, Microsoft Ads, Snapchat Ads, and Pinterest Ads, Shopify, Reddit Ads, BigQuery, Google Sheets, n8n, Slack, and webhooks with a mix of one-click OAuth and direct REST workflows.
Base URL: https://api.trendsagi.com
Best for backend jobs, orchestration workers, and data pipelines.
pip install trendsagiBest default path for JavaScript and TypeScript services, jobs, and web apps.
No TrendsAGI package requiredQuick Start
Install command
# No TrendsAGI package required
# Use native fetch in Node.js 18+ or modern browsersAPI usage
const API_BASE_URL = process.env.API_BASE_URL ?? "https://api.trendsagi.com";
const API_KEY = process.env.TRENDSAGI_API_KEY;
if (!API_KEY) throw new Error("Set TRENDSAGI_API_KEY first");
async function main() {
const response = await fetch(`${API_BASE_URL}/api/trends?category=Technology&limit=5`, {
headers: { Authorization: `Bearer ${API_KEY}` },
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const trends = await response.json();
console.log((trends.trends ?? []).map((item) => item.name));
}
main().catch(console.error);Run command
# Save as quickstart.mjs
node quickstart.mjsIntegration Checklist
Follow this order for the fastest path from first call to production-ready automation.
Step 1
Generate API key
Create and store `TRENDSAGI_API_KEY` in your runtime secrets.
Open API key managerStep 2
Choose integration path
Use one-click setup for speed, or advanced custom setup for execution in your own stack.
Step 3
Run first signal pull
Validate connectors with `GET /api/integrations/ads/providers`.
Step 4
Enable category-driven automation
Save a trend category with safety guardrails, then run preview/apply.
Popular Integration Paths
Jump directly into the most requested workflows.
n8n
Dedicated workflow connector for live n8n handoffs
Slack
Workspace connection + channel routing for production alerts
Webhooks
Generic POST delivery for custom systems and third-party tools
Shopify
Trend-aware product enrichment for storefront workflows
BigQuery
Warehouse destination for trend and automation row delivery
Ads Platform Connectors
One-click Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, Microsoft Ads, Snapchat Ads, and Pinterest Ads connections
Python SDK, REST patterns, frameworks, social/search, and automation connectors.
Grouped by domain with request/response schema details.
One-click and advanced setup paths for Google, Meta, TikTok, and LinkedIn workflows.
Playbooks for social listening, content ops, and search workflows.