TrendsAGI Recommendations API
The Recommendations API from TrendsAGI — 2 operation(s) for recommendations.
The Recommendations API from TrendsAGI — 2 operation(s) for recommendations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/trendsagi-com:trendsagi-com-recommendations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TrendsAGI Recommendations API
version: 1.0.0
description: 'REST API for measured trending-topic volume, velocity and growth, AI-generated trend insights, recommendations, alerts, exports and integrations. A free Developer plan includes 100 API calls per day; paid plans raise the limits. Documentation: https://trendsagi.com/api-docs'
termsOfService: https://trendsagi.com/terms
contact:
name: TrendsAGI
url: https://trendsagi.com
servers:
- url: https://api.trendsagi.com
security:
- ApiKeyAuth: []
- BearerAuth: []
tags:
- name: Recommendations
paths:
/api/intelligence/recommendations:
get:
tags:
- Recommendations
operationId: getRecommendations
summary: Retrieve prioritized decision briefs grounded in the latest measured evidence…
description: 'Retrieve prioritized decision briefs grounded in the latest measured evidence for each source trend. Briefs explain why a recommendation matters, what is known or missing, when to act, and how to verify the outcome.
The confidence score measures evidence completeness; it is not a forecasted probability of success.
When evidence is missing or stale, data_quality names the gap, actionable is false, and the next steps begin with verification.'
x-plan-tier: Developer
parameters:
- name: type
in: query
required: false
description: Optional. One of 'pr_response', 'content_idea', 'marketing_angle', 'seo_optimization', 'influencer_collab', 'product_improvement', 'crm_strategy', 'monitoring', or 'other'.
schema:
type: string
- name: sourceTrendQ
in: query
required: false
description: Optional. Case-insensitive source-trend name search; maximum 100 characters.
schema:
type: string
- name: priority
in: query
required: false
description: Optional. Filter by 'critical', 'high', 'medium', or 'low'.
schema:
type: string
- name: status
in: query
required: false
description: 'Optional. Filter by ''new'', ''viewed'', ''actioned'', or ''dismissed''. Default: ''new''.'
schema:
type: string
- name: match_user_interests
in: query
required: false
description: Optional. Use true or 1 to restrict results to tracked interests.
schema:
type: boolean
- name: sort
in: query
required: false
description: 'Optional. Use ''priority'' or ''newest''. Default: ''priority''.'
schema:
type: string
- name: limit
in: query
required: false
description: 'Optional. Page size from 1 to 100. Default: 10.'
schema:
type: integer
- name: offset
in: query
required: false
description: 'Optional. Zero-based pagination offset. Default: 0.'
schema:
type: integer
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
example:
recommendations:
- id: 42
type: marketing_angle
title: Test a barrier-repair creative angle
details: Measured interest is accelerating across the latest snapshots.
source_trend_id: '123'
source_trend_name: Barrier repair skincare
priority: high
status: new
created_at: '2026-07-18T09:00:00Z'
decision_brief:
why_now: Barrier repair skincare is accelerating (1.5) on a fresh snapshot, so the useful response window may be short.
evidence:
- metric: recommendation_created_at
label: Recommendation generated
value: '2026-07-18T09:00:00Z'
interpretation: current
source: recommendations
observed_at: '2026-07-18T09:00:00Z'
- metric: source_trend
label: Source trend
value: Barrier repair skincare
source: trends
source_url: /trends/123/insights
- metric: freshness
label: Latest observation
value: '2026-07-18T08:45:00Z'
interpretation: fresh
source: trend_snapshots
source_url: /trends/123/insights
observed_at: '2026-07-18T08:45:00Z'
- metric: volume
label: Current signal volume
value: 1200
unit: signals
source: trend_snapshots
source_url: /trends/123/insights
observed_at: '2026-07-18T08:45:00Z'
- metric: velocity_per_hour
label: Signal velocity
value: 84.25
unit: signals/hour
interpretation: gaining activity
source: trend_snapshots
source_url: /trends/123/insights
observed_at: '2026-07-18T08:45:00Z'
- metric: acceleration
label: Momentum
value: 1.5
interpretation: accelerating
source: trend_snapshots
source_url: /trends/123/insights
observed_at: '2026-07-18T08:45:00Z'
- metric: structured_insights_generated_at
label: Structured insights generated
value: '2026-07-18T08:00:00Z'
interpretation: fresh
source: trend_insight_metadata
source_url: /trends/123/insights
observed_at: '2026-07-18T08:00:00Z'
- metric: key_themes
label: Key themes
value:
- skin barrier
- glass skin
source: trend_insights
source_url: /trends/123/insights
- metric: audience_segments
label: Audience segments
value:
- ingredient-aware skincare buyers
source: trend_insights
source_url: /trends/123/insights
- metric: sentiment
label: Sentiment
value: positive
source: trend_insights
source_url: /trends/123/insights
confidence:
score: 100
level: high
method: evidence_completeness_v1
reasons:
- The recommendation resolves to a stored source trend.
- The latest snapshot is fresh.
- Structured themes support the proposed angle.
missing_signals: []
expected_benefit:
outcome: A more timely and specific creative test.
basis: The recommendation is tied to measured momentum rather than topic popularity alone.
measurement: Compare click-through and conversion rate with the current control.
urgency:
level: act_now
window: Next 24 hours
reason: The source snapshot is fresh and momentum is positive.
next_steps:
- Review the full source evidence.
- Run a controlled creative test for the matched audience.
- Record the measured result.
data_quality:
status: strong
freshness: fresh
snapshot_at: '2026-07-18T08:45:00Z'
evidence_count: 10
missing_signals: []
actionable: true
meta:
total: 15
limit: 10
offset: 0
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
/api/intelligence/recommendations/{recommendation_id}/action:
post:
tags:
- Recommendations
operationId: postRecommendationAction
summary: Record one workflow state change or one piece of feedback for a recommendation
description: 'Record one workflow state change or one piece of feedback for a recommendation. The recommendation must belong to the authenticated user.
A low-data recommendation may be viewed or dismissed, but the API returns 409 if action is ''actioned'' while decision_brief.actionable is false.'
x-plan-tier: Developer
parameters:
- name: recommendation_id
in: path
required: true
description: The recommendation ID returned by the list endpoint.
schema:
type: integer
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
example:
id: 42
user_id: 7
type: marketing_angle
title: Test a barrier-repair creative angle
details: Measured interest is accelerating across the latest snapshots.
source_trend_id: '123'
source_trend_name: Barrier repair skincare
priority: high
created_at: '2026-07-18T09:00:00Z'
updated_at: '2026-07-18T09:15:00Z'
status: viewed
user_feedback: null
decision_brief:
why_now: Fresh, complete evidence for Barrier repair skincare is not available. Treat this as a watch item and refresh the source signal before acting.
evidence:
- metric: recommendation_created_at
label: Recommendation generated
value: '2026-07-18T09:00:00Z'
interpretation: current
source: recommendations
observed_at: '2026-07-18T09:00:00Z'
confidence:
score: 0
level: low
method: evidence_completeness_v1
reasons:
- The recommendation copy is current.
missing_signals:
- resolved_source_trend
- snapshot_timestamp
- volume
- velocity_per_hour
- acceleration
- current_structured_insights
expected_benefit:
outcome: Benefit is unverified until the source signal is refreshed.
basis: Fresh, complete evidence is not available.
measurement: Evidence freshness and completeness before any business KPI
urgency:
level: verify_first
window: Before acting
reason: The source lacks enough fresh measured evidence for a responsible action.
next_steps:
- Refresh the source trend.
- Review the new themes and audience evidence.
- Create a preview only after the evidence-completeness score reaches at least 50.
data_quality:
status: insufficient
freshness: unknown
snapshot_at: null
evidence_count: 1
missing_signals:
- resolved_source_trend
- snapshot_timestamp
- volume
- velocity_per_hour
- acceleration
- current_structured_insights
actionable: false
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
description: Submit exactly one field. Do not send action and feedback together.
required: true
content:
application/json:
schema:
type: object
properties:
action:
type: string
description: Optional. One of 'new', 'viewed', 'actioned', or 'dismissed'.
feedback:
type: string
description: Optional. Non-empty feedback of at most 500 characters.
components:
responses:
Unauthorized:
description: Missing or invalid API key
content:
application/json:
schema:
type: object
properties:
detail:
type: string
RateLimited:
description: Daily or per-second plan limit reached
content:
application/json:
schema:
type: object
properties:
detail:
type: string
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: API key from your TrendsAGI account settings.
BearerAuth:
type: http
scheme: bearer
description: 'The same API key sent as `Authorization: Bearer <key>`.'
externalDocs:
description: TrendsAGI API documentation
url: https://trendsagi.com/api-docs