⚙
Getting Started: REST API
The following is an example of how to access Nansen Query API via the Postman API Platform. The process might be different, depending on your network environment and software used. Please consult your IT administrator for access issues.
Nansen Query API allows users to retrieve real-time blockchain data via REST APIs.
To get started:
- Make sure your Nansen account has access to Nansen Query. Contact your Customer Success Manager for help.
- Retrieve your API access token using your account's email and password from this endpoint:
https://zarya-backend-mediator-pidzqxgs7a-uc.a.run.app/auth
The following sample code can be executed from most Linux terminals:
curl -i -H "Accept: application/json" \
-X POST \
-H "Content-Type: application/json" \
-d '{"email": "EMAIL", "password": "PASSWORD"}' \
https://zarya-backend-mediator-pidzqxgs7a-uc.a.run.app/auth
- The access token will be a long text string, we'll use it when we issue a request to one of the API endpoints
- Find the relevant end point from the list below. For this example, we'll use the NFT 24 Hour Market Overview
- From the code above, replace the endpoint URL with the correct URL. In this case
questions/api_nft_hot_last_24h
curl -i -H "Accept: application/json" \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer TOKEN" \
-d '{"params": {}}' \
https://zarya-backend-mediator-pidzqxgs7a-uc.a.run.app/v1/questions/api_nft_hot_last_24h
- As this question doesn't require any parameters, the params section can be empty. The required parameters for each API endpoint is
Last modified 27d ago