API Documentation

Ads Transparency Statistics API

Overview of the Google Ads transparency statistics endpoint and its eleven action modes.

Test API

Endpoint

GET https://api.goanyapi.com/api/v1/ads-statistics

Current configured costs by query mode: advertiserSearch: 5 credits; domainSearch: 5 credits; advertiserStatistics: 5 credits; domainStatistics: 5 credits; titleSearch: 5 credits; titleHostSearch: 5 credits; domainTitles: 5 credits; hostTitleSearch: 5 credits; domainImageAds: 5 credits; domainTitleCountries: 5 credits; domainTitleImageAds: 5 credits.

Authentication

Authorization: Bearer YOUR_API_KEY

Action Modes

Choose one action and follow the matching guide:

ActionPurposeRequired parametersPrerequisiteDefault creditsGuide
advertiserSearchSearch advertisers by keywordkeywordNone1Advertiser Search API
domainSearchSearch domains by keywordkeywordNone1Domain Search API
advertiserStatisticsQuery weekly advertiser statisticsadvertiserId, startDay, endDayFirst call advertiserSearch, then pass an exact data.result[].id value as advertiserId.3Advertiser Statistics API
domainStatisticsQuery weekly domain statisticshostId, startDay, endDayFirst call domainSearch, then pass an exact data.result[].id value as hostId.3Domain Statistics API
titleSearchSearch domains by ad title keywordkeyword, startDay, endDayNone2Title Search API
titleHostSearchReturn all domains matching an ad title keywordkeyword, startDay, endDayNone2Title Search API
domainTitlesQuery titles under a domainhostId, startDay, endDayFirst call domainSearch, then pass an exact data.result[].id value as hostId.2Domain Titles API
hostTitleSearchPage through titles under a domainhostId, startDay, endDayFirst call domainSearch, then pass an exact data.result[].id value as hostId.2Domain Titles API
domainImageAdsQuery image ads under a domainhostId, startDay, endDayFirst call domainSearch, then pass an exact data.result[].id value as hostId.2Domain Image Ads API
domainTitleCountriesQuery country distribution for one domain title adhostId, title, startDay, endDayFirst call titleSearch or domainTitles and pass the same data.result[] item's hostId and exact title; alternatively call hostTitleSearch and use one data.result.items[] item's hostId and exact title.2Title Countries API
domainTitleImageAdsQuery image ads for one domain titlehostId, title, startDay, endDayFirst call titleSearch or domainTitles and pass the same data.result[] item's hostId and exact title; alternatively call hostTitleSearch and use one data.result.items[] item's hostId and exact title.2Title Image Ads API

Common Rules

  • action is required
  • required parameters vary by action and are listed in the Action Modes table
  • for multi-step actions, follow the Prerequisite column and reuse the exact response fields it names
  • titleHostSearch returns all matching domain summaries; hostTitleSearch accepts page and size, where size must be between 1 and 100
  • domain summaries do not include title counts; request the first hostTitleSearch page and use its total field for that domain
  • advertiserStatistics and domainStatistics can cover at most 48 Google Ads weekly buckets (days 1-7, 8-14, 15-21, and 22 through month-end) and return active rows only; other date-based actions have no configured span limit
  • if a statistics request still produces more than 20,000 active weekly rows, the API returns an error and asks you to narrow the date range
  • pass plain numeric advertiserId and hostId; the public API converts them internally
  • domainTitleCountries and domainTitleImageAds also require a raw title
  • public responses remove encryptedId, createTime, multi, and weeklyEndDay

Common Response Shape

{
  "code": "ok",
  "message": "ok",
  "data": {
    "endpoint": "ads-statistics",
    "action": "advertiserSearch",
    "remainingCredits": 99,
    "query": {
      "action": "advertiserSearch",
      "keyword": "ai"
    },
    "result": []
  }
}

Shared Response Fields

FieldDescription
data.endpointFixed value: ads-statistics
data.actionExecuted action
data.costCreditsCredits consumed by this request
data.remainingCreditsRemaining credits after deduction
data.queryNormalized public request parameters
data.resultSanitized result