Browse

Usage per product for a date range. Counts requests and credits per product from the request log. from and to accept an ISO date (UTC) or date-time. A date-only to includes that whole day. The default range is the last 30 days.

GET https://YOUR_API_HOST/v1/usage

Credits

Free. This endpoint never spends credits.

Query parameters

FieldTypeRequiredNotes
fromstringnoExample 2026-10-01.
tostringnoExample 2026-10-31.

Example request

Terminal
curl https://YOUR_API_HOST/v1/usage \
  -H "Authorization: Bearer $LOOKVALID_API_KEY"

Response

FieldTypeNotes
fromstringInclusive start. Format: date-time.
tostringExclusive end. Format: date-time.
totalobject-
total.requestsinteger-
total.credits_chargedinteger-
productsarray of object-
products[].productstring-
products[].requestsinteger-
products[].foundintegerLookups that returned data, including cache hits.
products[].not_foundinteger-
products[].failedintegerInvalid input, rate limited, unknown product, unavailable provider, insufficient credits or internal error.
products[].cache_hitsinteger-
products[].credits_chargedinteger-

Response shape

Each value is a stand-in that shows the field type.

{
  "from": "string",
  "to": "string",
  "total": {
    "requests": 0,
    "credits_charged": 0
  },
  "products": [
    {
      "product": "string",
      "requests": 0,
      "found": 0,
      "not_found": 0,
      "failed": 0,
      "cache_hits": 0,
      "credits_charged": 0
    }
  ]
}

Errors