Domain Statistics API

Query weekly domain statistics from Google Ads transparency data.

Endpoint

GET /api/v1/ads-statistics?action=domainStatistics&hostId=53293&startDay=2026-03-01&endDay=2026-03-31

Parameters

ParameterTypeRequiredDescription
actionstringYesFixed value: domainStatistics
hostIdnumberYesPlain host ID
startDaystringYesDate in YYYY-MM-DD; the selected range can cover at most 8 Google Ads weekly buckets
endDaystringYesDate in YYYY-MM-DD; the selected range can cover at most 8 Google Ads weekly buckets

Limits

  • startDay and endDay can cover at most 8 Google Ads weekly buckets: days 1-7, 8-14, 15-21, and 22-end of each month.
  • The response contains active weekly rows only. Zero-count advertiser/week rows are omitted.
  • If the selected range still produces more than 20,000 active weekly rows, the API returns an error. Narrow the date range and retry.

Example

GET /api/v1/ads-statistics?action=domainStatistics&hostId=53293&startDay=2026-03-01&endDay=2026-03-31
Authorization: Bearer YOUR_API_KEY

Response Example

{
  "code": "ok",
  "message": "ok",
  "data": {
    "endpoint": "ads-statistics",
    "action": "domainStatistics",
    "costCredits": 3,
    "remainingCredits": 97,
    "query": {
      "action": "domainStatistics",
      "hostId": "53293",
      "startDay": "2026-03-01",
      "endDay": "2026-03-31"
    },
    "result": {
      "adsHostDomain": {
        "domain": "z.ai",
        "host": "www.z.ai",
        "id": 53293
      },
      "advertiserWeekStatistics": [
        {
          "adCount": 23,
          "advertiser": {
            "advertiser": "Sinointeractive Digital Marketing Co., Ltd.",
            "country": "HK",
            "countryName": "Hong Kong",
            "id": 5315
          },
          "month": 202603,
          "week": 1
        }
      ],
      "weekAdvertiserStatistics": [
        {
          "month": 202603,
          "week": 1,
          "adsHostAdvertiserWeeklyList": [
            {
              "id": 800001,
              "adCount": 23,
              "advertiserId": 5315,
              "hostId": 53293,
              "month": 202603,
              "week": 1,
              "advertiser": {
                "advertiser": "Sinointeractive Digital Marketing Co., Ltd.",
                "country": "HK",
                "countryName": "Hong Kong",
                "id": 5315
              },
              "countries": [
                {
                  "adCount": 5,
                  "country": "US",
                  "countryName": "United States"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}

Response Fields

FieldDescription
data.endpointFixed value: ads-statistics
data.actionFixed value: domainStatistics
data.costCreditsCredits consumed by this request
data.remainingCreditsRemaining credits after deduction
data.query.actionNormalized action name
data.query.hostIdPlain host ID
data.query.startDayNormalized start date
data.query.endDayNormalized end date
data.result.adsHostDomainDomain profile object
data.result.advertiserWeekStatisticsActive advertiser-level weekly statistics; zero-count advertiser/week rows are omitted
data.result.advertiserWeekStatistics[].advertiserAdvertiser profile for that row
data.result.advertiserWeekStatistics[].adCountAd count for that advertiser/week
data.result.weekAdvertiserStatisticsWeek-grouped detailed rows
data.result.weekAdvertiserStatistics[].adsHostAdvertiserWeeklyListActive detailed weekly records