Visor Usage API
Read your API account's metered usage. Not billable.
Read your API account's metered usage. Not billable.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/visor-vin:visor-vin-usage-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Visor Public Usage API
version: 1.0.0-beta
summary: US vehicle listings, market facets, VIN history, and dealer data.
description: 'US vehicle listing data collected from dealer websites. Search active and sold listings, count and aggregate them by facet (prices, trims, market mix), look up a VIN''s status, build, and latest listing, find dealers and their inventory, and turn shopper search text into ready-to-run listing queries, and read OpenSpec vehicle specs by spec_ref. Authenticate with Authorization: Bearer ; create a key at https://visor.vin/account/api. Data requests are billed per request against prepaid API credit; GET /v1/usage and the /v1/specs routes are free. This document is public at https://api.visor.vin/v1/openapi.json.'
termsOfService: https://visor.vin/legal/api-license/2026-06-12.html
contact:
name: Visor support
url: https://visor.vin/support
license:
name: Visor API License Agreement
url: https://visor.vin/legal/api-license/2026-06-12.html
servers:
- url: https://api.visor.vin
description: Production public API
security:
- bearerAuth: []
tags:
- name: Usage
description: Read your API account's metered usage. Not billable.
paths:
/v1/usage:
get:
tags:
- Usage
operationId: publicUsage.usage
parameters:
- name: start_date
in: query
schema:
type: string
format: date
required: false
description: Inclusive UTC start date in YYYY-MM-DD format. Defaults to 29 days before end_date.
- name: end_date
in: query
schema:
type: string
format: date
required: false
description: Inclusive UTC end date in YYYY-MM-DD format. Defaults to today.
- name: metering_class
in: query
schema:
type: array
items:
type: string
enum:
- listing_search
- listing_search_historical
- listing_search_dealer_filtered
- listing_search_dealer_filtered_historical
- listing_search_enriched
- dealer_inventory_search
- dealer_inventory_search_historical
- facet_counts
- facet_counts_historical
- vehicle_detail
- vehicle_detail_enriched
- dealer_lookup
required: false
description: Comma-separated metering classes to include. Defaults to all classes.
style: form
explode: false
example:
- listing_search
- vehicle_detail
security:
- bearerAuth:
- usage.read
responses:
'200':
description: Successful public API response.
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
date:
type: string
description: UTC usage date in YYYY-MM-DD format.
metering_class:
type: string
enum:
- listing_search
- listing_search_historical
- listing_search_dealer_filtered
- listing_search_dealer_filtered_historical
- listing_search_enriched
- dealer_inventory_search
- dealer_inventory_search_historical
- facet_counts
- facet_counts_historical
- vehicle_detail
- vehicle_detail_enriched
- dealer_lookup
description: Metering class for this daily usage bucket.
requests:
description: Billable request count in this bucket.
type: number
charged_micros:
description: Total charged USD micros in this bucket.
type: number
required:
- date
- metering_class
- requests
- charged_micros
additionalProperties: false
description: Daily public API usage bucket.
description: Daily usage buckets ordered by date and metering class.
totals:
type: object
properties:
requests:
description: Total billable requests in the response range.
type: number
charged_micros:
description: Total charged USD micros in the response range.
type: number
required:
- requests
- charged_micros
additionalProperties: false
meta:
type: object
properties:
start_date:
type: string
description: Inclusive UTC start date used for the summary.
end_date:
type: string
description: Inclusive UTC end date used for the summary.
interval:
type: string
enum:
- day
description: Aggregation interval.
currency:
type: string
enum:
- USD
description: Currency used by charged_micros.
source:
type: string
description: Identifier of the usage data source for this summary.
freshness:
type: string
description: Freshness note for usage analytics.
required:
- start_date
- end_date
- interval
- currency
- source
- freshness
additionalProperties: false
required:
- data
- totals
- meta
additionalProperties: false
description: Public API usage summary response envelope.
examples:
success:
summary: Daily usage summary for selected metering classes
value:
data:
- date: '2026-06-09'
metering_class: listing_search
requests: 1
charged_micros: 2000
totals:
requests: 1
charged_micros: 2000
meta:
start_date: '2026-05-11'
end_date: '2026-06-09'
interval: day
currency: USD
source: public_api_usage_events
freshness: Usage analytics are eventually consistent with the billing ledger.
headers:
X-RateLimit-Tier:
description: Effective account Usage Tier code used for rate limiting.
schema:
type: string
X-RateLimit-Limit-10s:
description: Maximum requests allowed in the 10-second burst window.
schema:
type: string
X-RateLimit-Remaining-10s:
description: Remaining requests in the current 10-second burst window after this request.
schema:
type: string
X-RateLimit-Limit-60s:
description: Maximum requests allowed in the 60-second sustained window.
schema:
type: string
X-RateLimit-Remaining-60s:
description: Remaining requests in the current 60-second sustained window after this request.
schema:
type: string
'400':
description: 'Invalid request: an unknown query parameter, an invalid parameter value, or an unknown route. error.message says what to change. Requests from unsupported Visor CLI releases get type client_error and code unsupported_cli_version.'
content:
application/json:
schema:
$ref: '#/components/schemas/PublicApiValidationError'
examples:
error:
summary: Unknown query parameter
value:
error:
type: validation_error
code: unknown_query_parameter
message: 'Unknown query parameter: zip. Did you mean postal_code?'
_tag: PublicApiValidationError
'401':
description: 'Missing or invalid API key. Send it as Authorization: Bearer <api_key>; query-string keys are rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/PublicApiAuthenticationError'
examples:
error:
summary: Missing API key
value:
error:
type: authentication_error
code: missing_api_key
message: 'Missing API key. Send it as `Authorization: Bearer <key>`. Create an API key at https://visor.vin/account/api.'
docs_url: https://api.visor.vin/docs/authentication
signup_url: https://visor.vin/account/api
_tag: PublicApiAuthenticationError
'402':
description: 'The API account cannot make billable requests: its billing state blocks requests (add credit at error.top_up_url) or the request would exceed its monthly spend cap.'
content:
application/json:
schema:
$ref: '#/components/schemas/PublicApiBillingError'
examples:
error:
summary: Billing state blocks requests
value:
error:
type: billing_error
code: billing_state_blocked
message: Your API account cannot make requests in its current billing state. Add prepaid credit or review billing at https://visor.vin/account/api?tab=billing.
docs_url: https://api.visor.vin/docs/errors-and-retries
top_up_url: https://visor.vin/account/api?tab=billing
_tag: PublicApiBillingError
'403':
description: The API key is valid but does not include the scope this operation requires.
content:
application/json:
schema:
$ref: '#/components/schemas/PublicApiPermissionError'
examples:
error:
summary: Missing scope
value:
error:
type: permission_error
code: missing_scope
message: 'Missing required scope: usage.read.'
_tag: PublicApiPermissionError
'429':
description: The account's rate limit was exceeded. Wait the number of seconds in Retry-After, then retry.
content:
application/json:
schema:
$ref: '#/components/schemas/PublicApiRateLimitError'
examples:
error:
summary: Rate limit exceeded
value:
error:
type: rate_limit_error
code: rate_limit_exceeded
message: Rate limit exceeded. Retry after 11 seconds.
docs_url: https://api.visor.vin/docs/usage-tiers
_tag: PublicApiRateLimitError
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
minimum: 1
'500':
description: Unexpected server error. Retry with backoff. The body is { _tag, path, message }, not an error object.
content:
application/json:
schema:
type: object
properties:
_tag:
type: string
enum:
- InternalServerError
path:
type: string
description: Request path.
message:
type: string
description: Generic error message.
required:
- _tag
- message
examples:
error:
summary: Unexpected error
value:
_tag: InternalServerError
path: /v1/usage
message: Internal error handling GET /v1/usage
'503':
description: Temporary platform failure while authenticating, pricing, metering, rate limiting, or reading data. Retry with backoff.
content:
application/json:
schema:
$ref: '#/components/schemas/PublicApiPlatformError'
examples:
error:
summary: Data temporarily unavailable
value:
error:
type: platform_error
code: data_unavailable
message: Public API data is unavailable for this request.
_tag: PublicApiPlatformError
description: 'Get your API account''s billable request counts and charges per day and metering class, for up to 366 days (default: the last 30 days). Use it to track spend and reconcile billing. Totals are eventually consistent with billing.
Required API key scope: usage.read. Not billable. Works when API Credit is exhausted; still requires usage.read and counts toward rate limits. Account and billing suspensions still apply.'
summary: Summarize API usage
x-visor-example-request:
method: GET
path: /v1/usage
query:
metering_class: listing_search,vehicle_detail
components:
schemas:
PublicApiBillingError:
type: object
properties:
_tag:
type: string
enum:
- PublicApiBillingError
description: Error class name. Prefer error.type and error.code.
error:
type: object
properties:
type:
type: string
description: Error category. Each HTTP status has one type, for example validation_error for 400.
enum:
- billing_error
code:
type: string
description: Machine-readable error code. Branch on type and code, not on message.
enum:
- billing_state_blocked
- monthly_spend_cap_exceeded
message:
type: string
description: Human-readable explanation, usually with the fix.
current_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. The CLI version that sent the request.
minimum_supported_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Oldest CLI version that can make this request.
reason_code:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Why the CLI version is unsupported.
update_url:
type: string
description: Visor CLI unsupported_cli_version errors only. Where to download a supported CLI.
update_command:
type: string
description: Visor CLI unsupported_cli_version errors only. Command that updates the CLI.
docs_url:
type: string
description: Documentation page for this error, when available.
signup_url:
type: string
description: Page where you can create an API key. Sent with authentication errors.
top_up_url:
type: string
description: Page where you can add prepaid API credit. Sent with billing_state_blocked.
suggestions:
type: array
items:
type: string
description: The closest existing spec_refs, best first. Sent when a spec_ref names nothing.
required:
- type
- code
- message
additionalProperties: false
description: Error details.
required:
- _tag
- error
additionalProperties: false
description: Error response body. Branch on error.type and error.code.
PublicApiAuthenticationError:
type: object
properties:
_tag:
type: string
enum:
- PublicApiAuthenticationError
description: Error class name. Prefer error.type and error.code.
error:
type: object
properties:
type:
type: string
description: Error category. Each HTTP status has one type, for example validation_error for 400.
enum:
- authentication_error
code:
type: string
description: Machine-readable error code. Branch on type and code, not on message.
enum:
- missing_api_key
- invalid_api_key
message:
type: string
description: Human-readable explanation, usually with the fix.
current_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. The CLI version that sent the request.
minimum_supported_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Oldest CLI version that can make this request.
reason_code:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Why the CLI version is unsupported.
update_url:
type: string
description: Visor CLI unsupported_cli_version errors only. Where to download a supported CLI.
update_command:
type: string
description: Visor CLI unsupported_cli_version errors only. Command that updates the CLI.
docs_url:
type: string
description: Documentation page for this error, when available.
signup_url:
type: string
description: Page where you can create an API key. Sent with authentication errors.
top_up_url:
type: string
description: Page where you can add prepaid API credit. Sent with billing_state_blocked.
suggestions:
type: array
items:
type: string
description: The closest existing spec_refs, best first. Sent when a spec_ref names nothing.
required:
- type
- code
- message
additionalProperties: false
description: Error details.
required:
- _tag
- error
additionalProperties: false
description: Error response body. Branch on error.type and error.code.
PublicApiPermissionError:
type: object
properties:
_tag:
type: string
enum:
- PublicApiPermissionError
description: Error class name. Prefer error.type and error.code.
error:
type: object
properties:
type:
type: string
description: Error category. Each HTTP status has one type, for example validation_error for 400.
enum:
- permission_error
code:
type: string
description: Machine-readable error code. Branch on type and code, not on message.
enum:
- missing_scope
message:
type: string
description: Human-readable explanation, usually with the fix.
current_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. The CLI version that sent the request.
minimum_supported_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Oldest CLI version that can make this request.
reason_code:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Why the CLI version is unsupported.
update_url:
type: string
description: Visor CLI unsupported_cli_version errors only. Where to download a supported CLI.
update_command:
type: string
description: Visor CLI unsupported_cli_version errors only. Command that updates the CLI.
docs_url:
type: string
description: Documentation page for this error, when available.
signup_url:
type: string
description: Page where you can create an API key. Sent with authentication errors.
top_up_url:
type: string
description: Page where you can add prepaid API credit. Sent with billing_state_blocked.
suggestions:
type: array
items:
type: string
description: The closest existing spec_refs, best first. Sent when a spec_ref names nothing.
required:
- type
- code
- message
additionalProperties: false
description: Error details.
required:
- _tag
- error
additionalProperties: false
description: Error response body. Branch on error.type and error.code.
PublicApiValidationError:
type: object
properties:
_tag:
type: string
enum:
- PublicApiValidationError
description: Error class name. Prefer error.type and error.code.
error:
type: object
properties:
type:
type: string
description: Error category. Each HTTP status has one type, for example validation_error for 400.
enum:
- validation_error
code:
type: string
description: Machine-readable error code. Branch on type and code, not on message.
enum:
- invalid_query_parameter
- unknown_query_parameter
- invalid_path_parameter
- unknown_endpoint
message:
type: string
description: Human-readable explanation, usually with the fix.
current_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. The CLI version that sent the request.
minimum_supported_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Oldest CLI version that can make this request.
reason_code:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Why the CLI version is unsupported.
update_url:
type: string
description: Visor CLI unsupported_cli_version errors only. Where to download a supported CLI.
update_command:
type: string
description: Visor CLI unsupported_cli_version errors only. Command that updates the CLI.
docs_url:
type: string
description: Documentation page for this error, when available.
signup_url:
type: string
description: Page where you can create an API key. Sent with authentication errors.
top_up_url:
type: string
description: Page where you can add prepaid API credit. Sent with billing_state_blocked.
suggestions:
type: array
items:
type: string
description: The closest existing spec_refs, best first. Sent when a spec_ref names nothing.
required:
- type
- code
- message
additionalProperties: false
description: Error details.
required:
- _tag
- error
additionalProperties: false
description: Error response body. Branch on error.type and error.code.
PublicApiPlatformError:
type: object
properties:
_tag:
type: string
enum:
- PublicApiPlatformError
description: Error class name. Prefer error.type and error.code.
error:
type: object
properties:
type:
type: string
description: Error category. Each HTTP status has one type, for example validation_error for 400.
enum:
- platform_error
code:
type: string
description: Machine-readable error code. Branch on type and code, not on message.
enum:
- authentication_unavailable
- pricing_unavailable
- metering_unavailable
- rate_limit_unavailable
- data_unavailable
message:
type: string
description: Human-readable explanation, usually with the fix.
current_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. The CLI version that sent the request.
minimum_supported_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Oldest CLI version that can make this request.
reason_code:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Why the CLI version is unsupported.
update_url:
type: string
description: Visor CLI unsupported_cli_version errors only. Where to download a supported CLI.
update_command:
type: string
description: Visor CLI unsupported_cli_version errors only. Command that updates the CLI.
docs_url:
type: string
description: Documentation page for this error, when available.
signup_url:
type: string
description: Page where you can create an API key. Sent with authentication errors.
top_up_url:
type: string
description: Page where you can add prepaid API credit. Sent with billing_state_blocked.
suggestions:
type: array
items:
type: string
description: The closest existing spec_refs, best first. Sent when a spec_ref names nothing.
required:
- type
- code
- message
additionalProperties: false
description: Error details.
required:
- _tag
- error
additionalProperties: false
description: Error response body. Branch on error.type and error.code.
PublicApiRateLimitError:
type: object
properties:
_tag:
type: string
enum:
- PublicApiRateLimitError
description: Error class name. Prefer error.type and error.code.
error:
type: object
properties:
type:
type: string
description: Error category. Each HTTP status has one type, for example validation_error for 400.
enum:
- rate_limit_error
code:
type: string
description: Machine-readable error code. Branch on type and code, not on message.
enum:
- rate_limit_exceeded
message:
type: string
description: Human-readable explanation, usually with the fix.
current_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. The CLI version that sent the request.
minimum_supported_version:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Oldest CLI version that can make this request.
reason_code:
anyOf:
- type: string
- type: 'null'
description: Visor CLI unsupported_cli_version errors only. Why the CLI version is unsupported.
update_url:
type: string
description: Visor CLI unsupported_cli_version errors only. Where to download a supported CLI.
update_command:
type: string
description: Visor CLI unsupported_cli_version errors only. Command that updates the CLI.
docs_url:
type: string
description: Documentation page for this error, when available.
signup_url:
type: string
description: Page where you can create an API key. Sent with authentication errors.
top_up_url:
type: string
description: Page where you can add prepaid API credit. Sent with billing_state_blocked.
suggestions:
type: array
items:
type: string
description: The closest existing spec_refs, best first. Sent when a spec_ref names nothing.
required:
- type
- code
- message
additionalProperties: false
description: Error details.
required:
- _tag
- error
additionalProperties: false
description: Error response body. Branch on error.type and error.code.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key sent as Authorization: Bearer <api_key>. Live keys start with vis_live_. Create one at https://visor.vin/account/api. Keys carry scopes: inventory.read (listings, facets, listing and VIN detail, dealer inventory, specs), dealers.read (dealer search and detail), and usage.read (/v1/usage). Each operation lists the scope it requires. Query-string keys are rejected.'
externalDocs:
description: Guides, examples, and changelog
url: https://api.visor.vin/docs