Adsense API

Overview of the Adsense endpoint and its two query modes.

Test API

Endpoint

GET /api/v1/adsense

Authentication

Authorization: Bearer YOUR_API_KEY

Query Modes

Choose one of the following guides:

ModePurposeGuide
domainQuery publisher IDs by domainAdsense Domain API
pubIdReverse lookup domains by publisher IDAdsense PubId API

Validation Rules

  • domain and pubId cannot be provided together
  • at least one of them must be provided

Common Response Shape

{
  "code": "ok",
  "message": "ok",
  "data": {
    "endpoint": "adsense",
    "costCredits": 3,
    "remainingCredits": 97
  }
}

Shared Response Fields

FieldDescription
data.endpointFixed value: adsense
data.costCreditsCredits consumed by this request
data.remainingCreditsRemaining credits after deduction