Each API request requires authentication to identify the member. Authentication is provided
through an access token. The token is unique, issued for each client.
You can authenticate in one of two ways.
Access token (recommended)
Include the Authorization HTTP header with Bearer {access_token} in every request.
GET /v1/{PATH} HTTP/1.1
Host: api.cryptoquant.com
Authorization: Bearer {access_token}
import requests
headers = {"Authorization": "Bearer " + access_token}
response = requests.get(URL, headers=headers)
Query parameter
Alternatively, pass your key as the api_key query parameter.
GET /v1/{PATH}?api_key={API_KEY} HTTP/1.1
Host: api.cryptoquant.com
import requests
response = requests.get(URL, params={"api_key": API_KEY})
Prefer the Authorization header over the query parameter — URLs are often logged by
proxies and analytics, which can leak keys passed as query parameters.