Get trends
Which visual formats, hook tactics and asset types take a bigger share of a niche's ads tracked on Meta, the last 30 days against the 30 before, as on the app's Trends page. A share says what brands make more of, never what performs. Without a plan, each list holds its first 10.
/api/v1/trendsAuthentication
API key, OAuth token or signed-in session, sent as Authorization: Bearer <key or token> (a session rides on its cookie). An OAuth token needs mcp:read. See authentication.
Query parameters
nichestringA niche slug or plain name from List niches, read as List ads reads it. Omit for the whole library. 1 to 120 characters.
axisenumOnly one list: format, hook or asset. One of
format,hook,asset.limitintegerTags per list, 1 to 40 (default 10). Default
10.
Response fields
nicheanycorrected_filtersarray of objectPresent when the niche was read as another slug. Say which niche the shares are for.
periodobjectWith
from,to,before_from.active_adsintegeractive_ads_beforeintegerformatsarray of TrendTagEach with
name,slug,share_now,share_before,change,ads,examples,url,axis.hooksarray of TrendTagEach with
name,slug,share_now,share_before,change,ads,examples,url,axis.asset_typesarray of TrendTagEach with
name,slug,share_now,share_before,change,ads,examples,url,axis.risingarray of TrendTagThe tags whose share grew most, biggest gain first.
notestringurlstring (uri)
Responses
- 200
The tag shares. Body:
TrendShares. - 400
A parameter is missing or out of range. Body:
Problem. - 401
No credentials, or the token is invalid or expired. The oauth2 security scheme says how to get one. Body:
Problem. - 403
The token lacks the mcp:read scope. Body:
Problem. - 404
No such brand, niche, format, visual format, hook tactic or ad. Body:
Problem. - 429
rate_limited: more than 60 requests a minute from this account.quota_exceeded: the plan's MCP/API allowance is used up (10,000 a month on Pro, 50,000 a month on Agency, 200 a day on the 7-day free trial, UTC), or an account with no plan has used its 20 preview calls.detailsays which limit and when it resets.resolutionsays what to do next and links to the plans page. Show both to the person. Body:Problem. - 503
The library could not be read; retry shortly. Body:
Problem.