Usage

Your organization's spend and request counts across every product.
GET/v1/usage
Open as Markdown
On this page

Price

Pricerequest

Free.

Description

Every billed request: crawls, map, searches (native and the SERP API routes), Pages, AI, Business, Ads, audits and visibility runs. Amounts are what you were charged. All-time unless from / to narrow it. Free.

Request

Endpoint
GET https://api.dataforgaio.com/v1/usage
Authentication
HTTP Basic auth: any login, with your dg_ API key as the password. A Bearer header with the key also works. Create a key.
Body
No request body

Fields

  • fromstringoptional
    First day to count, YYYY-MM-DD (UTC), inclusive.
    Example2026-11-01
  • tostringoptional
    Last day to count, YYYY-MM-DD (UTC), inclusive.
    Example2026-11-30

Response

Shape: Native. Expand a field to see its children; every field has a link anchor.

  • statusstring
    Always ok.
    Exampleok
  • currencystring
    Always USD.
    ExampleUSD
  • fromstring|null
    The from you sent, or null.
    Example2026-11-01
  • tostring|null
    The to you sent, or null.
    Example2026-11-30
  • costnumber
    Total spend, USD.
    Example0.79036
  • unitsobject
    Counts.
    Show 6 child fields
  • spendobject
    Spend by product group.
    Show 2 child fields
    • crawl_usdnumber
      Crawl spend, USD.
      Example0.4213
    • serp_usdnumber
      Search spend, USD.
      Example0.27756
  • productsarray<object>
    Requests and spend per product and mode.
    Show 5 child fields
    • productstring
      Product key, for example serp.google.organic or crawl_job.
      Exampleai.chat_gpt.llm_responses
    • modestring|null
      live, standard, priority, or null.
      Examplelive
    • requestsinteger
      Requests.
      Example25
    • Requests that were billed.
      Example25
    • Charged, USD.
      Example0.0915
  • Same as units.crawl_tasks. Kept for older clients.
    Example1840
  • Same as cost, as a decimal string. Kept for older clients.
    Example0.79036

Errors

CodeWhen
invalid_requestHTTP 400. from or to isn't a YYYY-MM-DD date, or from is after to.
unauthorizedHTTP 401. Missing, malformed or revoked API key.
rate_limitedHTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor Retry-After.
Tasks that end in an error are not billed. All status codes