Skip to content
Skip to Content

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.

get/api/v1/trends

Authentication

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

  • nichestring

    A niche slug or plain name from List niches, read as List ads reads it. Omit for the whole library. 1 to 120 characters.

  • axisenum

    Only one list: format, hook or asset. One of format, hook, asset.

  • limitinteger

    Tags per list, 1 to 40 (default 10). Default 10.

Response fields

  • nicheany

  • corrected_filtersarray of object

    Present when the niche was read as another slug. Say which niche the shares are for.

  • periodobject

    With from, to, before_from.

  • active_adsinteger

  • active_ads_beforeinteger

  • formatsarray of TrendTag

    Each with name, slug, share_now, share_before, change, ads, examples, url, axis.

  • hooksarray of TrendTag

    Each with name, slug, share_now, share_before, change, ads, examples, url, axis.

  • asset_typesarray of TrendTag

    Each with name, slug, share_now, share_before, change, ads, examples, url, axis.

  • risingarray of TrendTag

    The tags whose share grew most, biggest gain first.

  • notestring

  • urlstring (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. detail says which limit and when it resets. resolution says 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.