Users on the Token Terminal API plan can query the data with their designated API key, which can be found on their account page.

The API key should be kept a secret, so make sure to not share it or store it in publicly accessible areas such as GitHub, client-side code, and so forth.

If you don’t have an API key, make sure to upgrade your plan to the API plan in your account billing page.

If you’re interested in talking to our team about using the API, please reach out to us at sales@tokenterminal.xyz for assistance.

The API is read-only, supports REST calls, uses predictable resource-oriented URLs, and returns JSON-encoded responses and error messages.

We use standard HTTP response codes

CodeExplanation
200for success
308for redirects when e.g. project_id has been renamed (only when projects make a significant rebranding)
400for when query parameters are invalid, see included JSON formatted error message for advice
402for when subscription isn’t valid
403for invalid access
429for too many requests (rate limit: 60 requests per minute)
500if we ever mess up

Rate limiting

The API has a rate limit of 60 requests per minute. If you exceed this limit, you will receive a 429 HTTP response code.

Authentication

The API uses HTTP Token Auth to authenticate requests. This means each request must have an Authorization header (your API key).

curl -X GET "https://api.tokenterminal.com/v2/projects" \
     -H "Authorization: Bearer <YOUR_API_KEY>"