Receipt

Look up the receipt behind any response's receipt_id.
GET/v1/account/receipts/{receipt_id}
Open as Markdown
On this page

Price

Pricerequest

Free. Account routes never charge your wallet.

Description

Every SERP, Pages, AI, Business and Ads API response carries a receipt_id. This route returns what that request was charged and how its data was fetched. Only receipts from your organization are found. /v1/receipts/{receipt_id} is the same route. Free. Account routes never charge your wallet.

Request

Endpoint
GET https://api.dataforgaio.com/v1/account/receipts/{receipt_id}
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

  • receipt_idstringrequired
    The receipt_id from a response.
    Example5c1f8e2a-9b3d-4e6f-8a7b-1c2d3e4f5a6b

Response

Shape: v3 task envelope. Expand a field to see its children; every field has a link anchor.

  • versionstring
    Response format version, for example 0.1.20261203.
    Example0.1.20261203
  • Status of the request as a whole. 20000 when it was accepted; each task has its own status_code.
    Example20000
  • Plain-language request status.
    ExampleOk.
  • timestring
    Time the whole request took, for example 1.8410 sec.
    Example0.4210 sec.
  • costnumber
    Sum of every task's cost, in USD.
    Example0
  • Number of tasks in tasks.
    Example1
  • Tasks whose status_code is 40000 or higher.
    Example0
  • tasksarray<object>
    One entry per task you sent, in the order you sent them.
    Show 27 child fields
    • idstring
      Task id (a UUID). For task_post, use it with task_get.
      Example8cbb5b5c-8e15-5c82-9959-45f93cdad009
    • Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table.
      Example20000
    • Plain-language status. For 40501 it names the field that failed.
      ExampleOk.
    • timestring
      Time this task took on our side, for example 1.8203 sec.
      Example0.4210 sec.
    • costnumber
      What this task was charged, in USD. 0 when it returned no data.
      Example0
    • Number of entries in result.
      Example1
    • patharray<string>
      The route this task ran on, split into segments, starting with v1.
      Example["v1","account","receipts"]
    • dataobject
      The task you sent, echoed back. Utility routes echo their query parameters.
      Example{}
    • resultarray<object>|null
      One entry.
      Show 13 child fields
      • The receipt id you looked up.
        Example744695e7-dd8a-5016-bb2b-2d314ea9ef81
      • productstring
        Product key, for example serp.google.organic.
        Exampleserp.google.organic
      • modestring|null
        live, standard, priority, or null.
        Examplelive
      • statusstring
        settled (charged, possibly $0), failed ($0) or open (still running).
        One ofopensettledfailedExamplesettled
      • What the request was charged, USD.
        Example0.0018
      • currencystring
        Always USD.
        ExampleUSD
      • fetch_levelstring|null
        Fetch level that delivered the data: standard, rendered or protected.
        One ofstandardrenderedprotectedExamplestandard
      • upgradedboolean
        True when Auto-upgrade moved the request to a higher level.
        Examplefalse
      • upgrade_reasonstring|null
        Why it was upgraded, in fetch-level terms and HTTP facts.
      • cache_hitboolean
        True when a cached result answered.
        Examplefalse
      • fetched_atstring|null
        When the data was fetched, YYYY-MM-DD HH:MM:SS +00:00, where known.
        Example2026-12-03 10:42:18 +00:00
      • created_atstring|null
        When the request arrived.
        Example2026-12-03 10:42:18 +00:00
      • settled_atstring|null
        When the charge was settled. Null while open.
        Example2026-12-03 10:42:18 +00:00
    • receipt_idstring|null
      Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks.
    • fetch_levelstring|null
      The fetch level that delivered the data: standard, rendered or protected. Null when the route doesn't fetch pages or nothing was fetched.
      One ofstandardrenderedprotected
    • upgradedboolean
      True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that.
      Examplefalse
    • upgrade_reasonstring|null
      Why the request upgraded, in our level names and HTTP facts, for example 403 at standard; challenge page at rendered. Null when it didn't upgrade.
    • cache_hitboolean
      True when the data came from the shared result cache instead of a new fetch.
      Examplefalse

Errors

CodeWhen
40100No credentials were sent (HTTP 401).
40101The API key is missing, malformed or revoked (HTTP 401).
40202Too many requests for this key (HTTP 429, with Retry-After).
40401No receipt with this id in your organization (or not a receipt id).
Tasks that end in an error are not billed. All status codes