Skip to content
ProspectAPIs

API reference / Account

API version

Written and maintained by The ProspectAPIs team

GET/v1/version

GET /v1/version is the ProspectAPIs operation getVersion, in the Account group of the REST API. The API version and the deployed git sha. Free, no key. Cost: free, no key. It needs no API key.

The quickstart shows this call in context, next to the first requests most integrations make.

Parameters

This operation takes no path or query parameters.

Responses

Response codes of GET /v1/version
StatusMeaning
200The API version.

200 response fields

The API version. The body is a Version.

Fields of the 200 response
FieldTypeDescription
version requiredstringThe SemVer API version.
git_sha requiredstring or nullThe deployed commit, when set.

Code samples

Each sample sends the same request. No key is needed. Values come from the spec's examples; replace them with your own.

curl
curl https://api.prospectapis.com/v1/version
JavaScript (fetch)
const res = await fetch("https://api.prospectapis.com/v1/version");
if (!res.ok) throw new Error(`${res.status}: ${(await res.json().catch(() => ({}))).error ?? res.statusText}`);
const data = await res.json();
console.log(data);
Python (requests)
import requests

res = requests.get(
    "https://api.prospectapis.com/v1/version",
    timeout=30,
)
res.raise_for_status()
data = res.json()
print(data)

Billing

This call is free and needs no key: it never spends credits or free records, so you can call it as often as the rate limit allows. Metered calls on the same key report your balance after each response in X-Credits-Remaining, and GET /v1/account shows it at any time.

Previous operation: Send feedback. Next operation: Live price list. Every operation, grouped by area, is on the API reference index.

Create a free account to get a key, then run the samples above with your own values.

Was this page helpful?