Implementation workflows for ads connections, social listening, search operations, Slack alerts, API testing, and safe automation.
Base URL
https://api.trendsagi.com114
Routes
16
Guides
3
Languages
Connect ad accounts in one click, select a positive trend category, and run preview/apply targeting updates for mapped campaign entities with safety guardrails.
1) GET /api/integrations/ads/providers
2) GET /api/integrations/ads/{platform}/auth
3) Complete authorization in browser
4) PUT /api/integrations/ads/{platform}/selection (trend_category + strict_safety)
5) POST /api/integrations/ads/meta_ads/preview
6) POST /api/integrations/ads/meta_ads/applyCombine recommendations + trend velocity to reprioritize SEO briefs and monitor query opportunities in your own search analytics workflows.
1) GET /api/intelligence/recommendations
2) GET /api/trends?category=...
3) Compare with your search analytics metrics
4) Generate briefs with top overlap topicsConnect Slack once, select an alerts channel, and route high-priority trend events into an operator queue with minimal manual setup.
1) GET /api/integrations/slack/auth
2) Complete authorization in browser
3) GET /api/integrations/slack/channels
4) POST /api/integrations/slack/save-channel
5) PUT /api/integrations/slack/settingsPre-made scripts are included under `scripts/api_cookbook` and were validated on February 19, 2026 against the live API.
`01_status_and_trends.sh`
Checks `/status` and `/api/trends` baseline health.
`02_webhook_lifecycle.sh`
Create, test, inspect executions, and delete webhook.
`03_ads_reporting_preview_export.sh`
Catalog query, report preview, and CSV export validation.
`04/05_integration_status_matrix`
Status matrix in Node (`.mjs`) and Python (`.py`).
export TRENDSAGI_API_KEY="<TRENDSAGI_API_KEY>"
cd scripts/api_cookbook
bash ./01_status_and_trends.sh
bash ./02_webhook_lifecycle.sh
bash ./03_ads_reporting_preview_export.sh
node ./04_integration_status_matrix.mjs
python3 ./05_integration_status_matrix.pyFor any write action in ad or social runtimes, store prior state and idempotency keys so degraded outcomes can be rolled back deterministically.
- Generate run_id per workflow
- Persist request payload + prior target state
- Retry transient errors with same idempotency key
- Route 4xx validation failures to manual review
Platform Integrations (Ads First)
Ads platform integrations are prioritized for conversion workflows, followed by social/search channel playbooks.
Ads Platform Connectors
One-click Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, Microsoft Ads, Snapchat Ads, and Pinterest Ads connections
Mapped endpoints: 25
Ads Executors (Advanced Setup)
Run provider writes from your own runtime and credential vault
Mapped endpoints: 2
Social and search connectors are available after ads integrations.
X (Twitter)
Social pulse ingestion and response routing
Mapped endpoints: 3
Reddit
Community-level topic and sentiment tracking
Mapped endpoints: 3
YouTube
Video-topic momentum and audience alignment
Mapped endpoints: 3
Google Trends
Validate signal momentum against query-interest curves
Mapped endpoints: 3