Apinoa Docs

Advertisers

Find advertisers in the Meta Ad Library by name: each with the id that ads takes as advertiser.

View raw .mdx
GET | POST /v1/meta-ads/advertisers

Send parameters as a query string with GET, or as a JSON body with POST. Both are equivalent.

Request

curl "https://gateway.apinoa.com/v1/meta-ads/advertisers?query=nike" \
  -H "x-api-key: $APINOA_API_KEY"

What to Pass

PassReadsNotes
queryAdvertisers by nameThe advertiser or brand name, as you would type it into the Ad Library's search box

country and adType narrow the search the way they narrow ads.

Parameters

ParameterTypeRequiredNotes
querystringyesAn advertiser's name (or part of it): the advertisers the Ad Library's search box suggests, each with the id that ads?advertiser= takes.
adTypeenumall (default), or one special category: political (social issues, elections or politics), housing, employment, credit. all political housing employment credit
countrystringWhere the ads ran: an ISO 3166-1 alpha-2 code, or ALL (default).

The same parameters, and every response type, are in the OpenAPI document.

Response

Returns an AdvertiserPage in data. A real response, shortened: arrays keep their first entries and long text is cut.

{
  "success": true,
  "data": {
    "library": "meta-ads",
    "items": [
      {
        "library": "meta-ads",
        "id": "15087023444",
        "url": "https://www.facebook.com/nike",
        "name": "Nike",
        "avatarUrl": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868…",
        "verified": true,
        "ext": {
          "handle": "nike",
          "category": "Sportswear Store",
          "likes": 39488470,
          "verification": "BLUE_VERIFIED",
          "entityType": "PERSON_PROFILE",
          "igUsername": "nike",
          "igFollowers": 290733139,
          "igVerified": true,
          "deleted": false
        }
      },
      {
        "library": "meta-ads",
        "id": "51212153078",
        "url": "https://www.facebook.com/nikefootball",
        "name": "Nike Football",
        "avatarUrl": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.30808-1/387181570_86332575516…",
        "verified": true,
        "ext": {
          "handle": "nikefootball",
          "category": "Product/service",
          "likes": 39922622,
          "verification": "BLUE_VERIFIED",
          "entityType": "PERSON_PROFILE",
          "igUsername": "nikefootball",
          "igFollowers": 44677977,
          "igVerified": true,
          "deleted": false
        }
      }
    ],
    "ext": {
      "keywords": [
        "nike jordan",
        "nike for kids"
      ],
      "exactPhrase": "\"nike\""
    }
  }
}

Errors

StatusCodeMeaning
400INVALID_PARAMSA parameter is missing, unknown or out of range. The message names it.
401UNAUTHORIZEDThe x-api-key header is missing, or the key is revoked or unknown.
402INSUFFICIENT_CREDITSYour credits do not cover this call. Choose a plan or top up in the dashboard.
429MARKETPLACE_SATURATEDToo many concurrent calls. Retry after the Retry-After seconds.
502UPSTREAM_ERRORThe library answered with something unusable. Retry with backoff.

Every code is listed in Errors. Failed calls are not billed.

Pricing

Price 1 credit per call. Plans and credits.

Notes

  • Up to 15 advertisers per call, in the order the Ad Library suggests them. A name nothing matches returns an empty items.
  • An advertiser is a Facebook Page. id is what ads takes as advertiser; country is where the Page is registered, when the Ad Library states it.
  • Each advertiser's ext carries what only Meta states: handle (the Page's vanity name), category, likes, verification, entityType, the linked Instagram account (igUsername, igFollowers, igVerified) and deleted. The answer's own ext has the search box's keyword suggestions and the exact-phrase form of the query.

On this page