Skip to content
Skip to Content

Get ads

Up to 25 ads in one request, each as Get ad answers it, in the order asked. Use it to read the ads a search or list returned in one round trip. It counts one call per ad. An id the library lacks, or an item that is not an ad id, comes back under missing and the rest still return. Without a plan, the first 10 ids are read, as one call. Same answer as the MCP tool get_ads.

get/api/v1/ads/batch

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

  • idsarray of stringrequired

    Ad ids, comma-separated: 1 to 25, from List ads or Search library. A shortened id (8 characters or more) or an ad page URL also works.

  • compactboolean

    true: a leaner answer for reading many ads. Leaves out make_yours and breakdown.remix (the same script and modes as remix_spec) and remix_spec.scenes (the same as breakdown.scenes). Default false. Default false.

Response fields

  • adsarray of Ad

  • countinteger

    How many ads came back.

  • missingobject

    Present when an id matched no ad. The ads that were found are in ads.

  • notestring

    With no plan, only the first 3 ids are read and this says so.

  • full_accessstring

Responses

  • 200

    The ads. Body: AdBatch.

  • 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.