Retrieve a Collection
This endpoint allows you to retrieve a Collection by providing their collection address.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
collectionAddressstringRequired
Mint address for the NFT Collection
Query parameters
pagenumber | nullableOptional
limitnumber | nullableOptional
Responses
200
Returns a Collection with a paginated list of NFTs
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
get
/v1/collections/:collectionAddressExample
curl "https://api.underdogprotocol.com/v1/collections/6TpvoRVJfJe6VdqfML4yjvp9Qc49LuVNb7uzWtPRZzVV" \
-H "Authorization: Bearer {token}"import axios from 'axios';
const collectionAddress = '6TpvoRVJfJe6VdqfML4yjvp9Qc49LuVNb7uzWtPRZzVV';
const getCollection = async () => {
try {
const response = await axios.get(`https://api.underdogprotocol.com/v1/collections/${collectionAddress}`, {
headers: {
'Authorization': `Bearer ${token}`
}
});
console.log(response.data);
} catch (error) {
console.error(error);
}
}Last updated