Skip to content

Usage Endpoint

There are two ways to monitor your API consumption:

  1. Response headers — present on every API response, ideal for agents and in-flight self-regulation
  2. GET /v1/usage endpoint — returns a full breakdown, suitable for dashboards, logging pipelines, or pre-flight checks before a batch job

When to use which:

  • Use the headers if you just need to know whether to keep going. Your client receives X-Giltiq-Usage on every validation response — no extra request needed.
  • Use this endpoint when you want to log usage at the start of a run, build a dashboard widget, or check remaining quota before triggering a large batch.

These headers are present on every API response (not just /v1/usage):

HeaderFormatDescription
X-Giltiq-Usage84/100Validations used vs. total limit for the current period
X-Giltiq-UpgradeURL stringPresent only when usage exceeds 80% of your plan limit; links to the upgrade page

Example headers:

X-Giltiq-Usage: 84/100
X-Giltiq-Upgrade: https://giltiq.de/pricing/

X-Giltiq-Upgrade is omitted when usage is below 80%. When it appears, the value is always https://giltiq.de/pricing/.

Cross-reference: see the Authentication guide for full header documentation.

Returns your current plan and consumption for the billing period.

Authentication: Required (API key — Tier 1 and above)

Terminal window
curl https://api.giltiq.de/v1/usage \
-H "X-API-Key: gq_live_your_key_here"
FieldTypeDescription
planstringCurrent plan: free, starter, business, or enterprise
period.startISO 8601Start of the current billing period
period.endISO 8601End of the current billing period
requests.usedintegerValidations consumed so far this period
requests.remainingintegerValidations remaining (limit − used)
requests.limitintegerTotal validations included in your plan for this period
{
"plan": "free",
"period": {
"start": "2026-03-01T00:00:00Z",
"end": "2026-04-01T00:00:00Z"
},
"requests": {
"used": 84,
"remaining": 16,
"limit": 100
}
}

Not every API call consumes quota. The counting rules are:

OutcomeCounted?Notes
Valid response (any source)YesYou received usable data
Cached/stale result returnedYesYou received usable data
SOURCE_UNAVAILABLE with no cached fallbackNoAll upstream sources were down; no usable data returned

In plain terms: you only pay for lookups that return usable data. If all upstream sources (VIES, BZSt, and fallbacks) are unavailable and no cached result can be served, the call is not counted against your quota.

Abuse cap: To prevent quota gaming, a maximum of 3 uncounted retries per unique VAT ID per hour are allowed. Retries beyond this cap are counted regardless of outcome.

Anonymous callers (no API key) cannot access this endpoint. A 401 Unauthorized response is returned with a registration prompt:

{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required. Register at https://giltiq.de to get started.",
"request_id": "abc123"
}
}

To use this endpoint, register for a free API key.