Base URL: https://api.mintsquare.io/v0
Supported networks (replace {network} with one of the following values):
• starknet-mainnet
• starknet-testnet
• zksync-testnet
**GET** /nft/{network}/{contract_address}/{token_id}
Response
{
"collection": {
"type": "ERC721", // ERC721 or ERC1155
"contract_address": "0x07d4dc2bf13ede97b9e458dc401d4ff6dd386a02049de879ebe637af8299f91d",
"network": "starknet-mainnet",
...
},
"token_id": "116",
"token_uri": "<https://sn.almanacNFT.xyz/116>",
"metadata": {
"name": "Almanac #116",
"description": "ETH/BTC on Saturday, July 16th 2022",
"attributes": [
{
"trait_type": "Exchange",
"value": "Coinbase"
},
{
"trait_type": "Pair",
"value": "ETH/BTC"
},
{
"trait_type": "Date",
"value": "Saturday, July 16th 2022"
},
...
],
"external_url": "<https://www.almanacnft.xyz/#/gallery/116>",
"image_type": "image/png",
"image": "<https://spaces.irreparabile.xyz/almanac/starknet/image/00116.png>",
"animation_type": "video/mp4",
"animation_url": "<https://spaces.irreparabile.xyz/almanac/starknet/video/00116.mp4>",
/*
Cached image and animation
*/
"hosted_image_url": "<https://mintsquare.sfo3.cdn.digitaloceanspaces.com/…>",
"hosted_image_thumbnail_url": "<https://cdn.mintsquare.io/…>",
"hosted_animation_url": "<https://mintsquare.sfo3.cdn.digitaloceanspaces.com/…>"
},
"owner": { // NFT owner (only for ERC721)
"address": "0x0272de9b3e3e72c9ad3b18e9db8e4642a1d9a5cdf8fd9cb5fd801f1892f94da8",
"username": "StarkWareFan",
"avatar_url": "<https://mintsquare.sfo3.cdn.digitaloceanspaces.com/…>",
"avatar_thumbnail_url": "<https://cdn.mintsquare.io/…>"
},
"owners": [ // NFT owners (only for ERC1155) and limited to top 10 holders
{
"amount": 2,
"owner": {
"address": "0x0272de9b3e3e72c9ad3b18e9db8e4642a1d9a5cdf8fd9cb5fd801f1892f94da8",
...
},
},
...
],
"mint": {
"creator": { // Wallet address that minted the NFT
"address": "0x0294bde661d31f00f09e39eae84f805418c3d7aea34b1698b5f3b7c9584e8b05",
...
},
"timestamp": "1660980494" // NFT minted timestamp
}
}
Get all NFTs
**GET** /nfts/{network}
Get NFTs in a collection
**GET** /nfts/{network}?collection={contract_address}
Get NFTs of a wallet address
**GET** /nfts/{network}?owner_address={wallet_address}
Get NFTs in a collection that a wallet address owns
**GET** /nfts/{network}?collection={contract_address}&owner_address={wallet_address}
Query Params
"almanac #90"