GEThttps://api.veriko.mx/v1/api/usage

Get API usage metrics

Visibility
public
Auth
API key
Permission
validations.records.read
How-to guide →

Returns the authenticated user's API usage metrics:

  • API key requests today and this month.
  • Quota of the plan in force.
  • The 15 most recent API key requests.
  • Validations consumed per month.
  • Current Banxico CEP service status.
Request
curl -X GET 'https://api.veriko.mx/v1/api/usage' \
  -H 'Authorization: Bearer veriko_••••'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response 200ApiUsage
— Usage statistics
FieldTypeDescription
requests_todayinteger

Number of the user's API key requests on the current calendar day (UTC).

e.g. 42
requests_monthinteger

Number of the user's API key requests in the current calendar month (UTC).

e.g. 580
quotaobject

Current validation quota state: limit, usage, balance, and reset.

plan_slugstring

Unique, human-readable plan identifier. It corresponds to the user's active plan.

e.g. free
plan_namestring

Plan name shown in the interfaces.

e.g. Free
limitinteger

Effective validation limit for the current cycle.

e.g. 500
usedinteger

Validations consumed in the current cycle.

e.g. 350
remaininginteger

Validations available in the current cycle (max(0, limit - used)).

e.g. 150
resets_atstring (date-time)

ISO 8601 timestamp in UTC with an explicit Z suffix; for example, "2026-05-01T05:14:38Z". The *_at, *_end, *_start, and *_date fields follow this format. meta.datetime describes the same contract in the response.

e.g. 2026-05-01T05:14:38Z
billing_modelstring

The plan's billing model. With hybrid the plan includes validations and, with overage enabled, keeps validating up to limit. Additive.

e.g. hybrid
overage_enabledboolean

true when overage is enabled: validations above included_validations are billed separately and limit is the plan's cap. Additive.

e.g. true
included_validationsinteger | nullnullable

Validations included in the plan per cycle. null when the plan does not separate what is included from the limit. Additive.

e.g. 650
recent_requestsarray

User's 15 most recent API key requests, from most to least recent.

banxico_statusstring

Current Banxico CEP service status — operational: Available and responding normally; degraded: Available but with partial errors; down: Completely unavailable (all recent records are errors); unknown: Insufficient recent data to determine status.

e.g. operational
usage_historyarray

Validations consumed per calendar month (history).

Response status codesGET /v1/api/usage
StatusClassDescriptionBody
2002xx
Usage statistics
ApiUsage
4014xx
Authentication is required or the provided credentials are invalid.
ErrorResponse
4294xx
Rate limit exceeded (rate_limit_exceeded: wait a few seconds).
RetryAfterError
Errors from GET /v1/api/usage
StatusCodeExample
401unauthorized

This request requires authentication.

Envelope
meta.request_id
c4d5e6f7a8b99b8a7f6e5d4c
429rate_limit_exceeded

You exceeded the request limit.

Envelope
meta.request_id
f7a8b9c0d1e22e1d0c9b8a7f
Response headers
  • Retry-After: integer — Seconds to wait before retrying. Matches the endpoint's rate-limit window (typically 60s for list endpoints, 1-5s for in-flight idempotent operations).
  • X-RateLimit-Limit: integer — Configured request cap for this bucket. It is emitted on every 429 and, on the authenticated API, also on successful responses, where it is the per-key cap of the account plan.
  • X-RateLimit-Remaining: integer — Requests remaining in the current window. Always 0 at the moment of the 429; on a successful response of the authenticated API it is what is left of the per-key cap.
  • X-RateLimit-Reset: integer — Absolute Unix epoch (seconds) when the window resets. Emitted on every 429, alongside Retry-After, and on successful responses of the authenticated API.