Skip to content
Skip to Content

Count ads

How many ads carry each visual format, hook tactic or niche, among the ads a list with the same filters holds, most ads first. Takes List ads' filters plus query; followed=true counts only followed brands. One call. Same as the MCP tool count_ads.

get/api/v1/ads/counts

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

  • byenumrequired

    What to count the ads by: format (visual formats), hook (hook tactics) or niche. One of format, hook, niche.

  • followedboolean

    true: only the ads of the brands the workspace follows.

  • sortenum

    count (default): most ads first; name: A to Z. One of count, name.

  • workspacestring

    A workspace id or exact name from List workspaces, case-insensitive. Defaults to the current workspace. Only your own organization's workspaces resolve. 1 to 120 characters.

Response fields

  • byenum

    One of format, hook, niche.

  • tagsarray of object

  • tag_urlstring

    The app list of one tag, with {slug} for its slug.

  • urlstring (uri)

Responses

  • 200

    The counts. Body: TagCountList.

  • 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. workspace_locked: the workspace is past the plan's workspace count. Use an open one, or ask an admin to change the plan. Body: Problem.

  • 404

    workspace_not_found: the organization has no workspace with that id or name. List workspaces lists them. 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.