It's easy to use the Blockdaemon NFT API. Follow the steps in this page to get started.
We provide rapid and robust access to unified Ethereum on-chain and off-chain NFT data. Follow these steps to get started:
Step 1. Sign Up For an API Key
To use the Blockdaemon NFT API, you need an API key. If you don’t have one, sign up for a free API key by creating an account on the Blockdaemon website. Once signed up, you can access your API key from your Blockdaemon dashboard.
Get Your Free API Key!
Access reliable, on-demand NFT data.
Step 2. Using Your API Key
Once you have your API key, you need to authenticate your API requests. There are several methods to do this:
2.1. Using Your API Key as a Query Parameter,
add the apiKey
query parameter to the endpoint URL:
https://svc.blockdaemon.com/nft/v1/{protocol}/{network}/collections/search?apiKey=YOUR_API_KEY
Authentication with a query parameter can be used with any tool - no additional actions are needed.
Info:
Note that if the query has additional parameters, replace
?
with&
.
2.2. Using Your API Key as a Bearer Token
Add the Authorization
header with Bearer YOUR_API_KEY
:
- Bearer Token in cURL
For example, to get NFT collections with names matching a given search string using our NFT REST API, use the following code:
curl --request GET 'https://svc.blockdaemon.com/nft/v1/{protocol}/{network}/collections/search' \
--header 'Authorization: Bearer YOUR_API_KEY'
Or, if you prefer to use short options, run the following:
curl -X GET 'https://svc.blockdaemon.com/nft/v1/{protocol}/{network}/collections/search' \
-H 'Authorization: Bearer YOUR_API_KEY'
- Bearer Token in Postman
- Navigate to the Authorization or Auth tab.
- Select Bearer Token from the Type drop-down menu.
- Paste
YOUR_API_KEY
into the Token input box.
2.3. Using Your API Key as an X-API-Key
You can authenticate Blockdeamon API Suite API requests by passing your YOUR_API_KEY
in the X-API-Key
header. Here are the instructions for doing this in cURL and Postman.
- X-API-Key in cURL
For example, to get NFT collections with names matching a given search string using our NFT REST API, use the following code:
curl --request GET 'https://svc.blockdaemon.com/nft/v1/{protocol}/{network}/collections/search'
--header 'X-API-Key: YOUR_API_KEY'
Or, if you prefer to use short options, run the following:
curl -X GET 'https://svc.blockdaemon.com/nft/v1/{protocol}/{network}/collections/search' \
-H 'X-API-Key: YOUR_API_KEY'
- X-API-Key in Postman
- Go to the Authorization or Auth tab.
- Select API Key from the Type drop-down menu.
- Paste your
YOUR_API_KEY
into the Value input box. - Ensure the Add to option is set to Header.
Step 3. Get Familiar with API Endpoints
Learn about the API endpoints and their usage in the NFT REST API Documentation. This will help you understand how to interact with Ethereum on-chain and off-chain NFT data.
Step 4. Test the API
Try sending a request to test the API. For example, use the GET request to retrieve information about an NFT collection:
Option 1: Using API Reference Docs
Try the Get NFT Collection endpoint to get details about an NFT collection. Remember to generate a Blockdaemon API Suite Key for interactive features.
Option 2: Using Your Preferred API Platform
You can also use tools like Postman. Example endpoint:
https://svc.blockdaemon.com/nft/v1/{protocol}/{network}/collection/{id}
Step 5. Integrate the API Into Your Application
After familiarizing yourself with the API and testing it, integrate it into your application to access NFT data.
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.