NFT APIs allow you to read NFT metadata and ownership information. These API's include:
Get NFT metadata (both ERC721 and ERC1155) and current ownership information (for ERC721)
Get NFTs of the current authenticated wallet
Check if the current authenticated wallet owns an NFT
Get collectors of an NFT
More APIs will be added in the near future.
Supported Networks
Ethereum Mainnet
Optimism
Polygon
Base
Sepolia
Goerli (deprecated)
Rinkeby (deprecated)
Filtering Data
Most APIs take in an array of filters and attribute filters, in the following format:
/**
* 1. Filter for specific tokens by passing in a tokenId
* 2. Filter for a set of tokens by passing in an array of tokenIds
* 3. Filter for a range of tokens by passing in the minTokenId and maxTokenId
* 4. Filter for a set of token attributes by passing in an array of TokenAttribute
* You can use either 1, 2 or 3, but not all of them together.
```
*/
interface Filter {
contractAddress: string;
tokenId?: string;
tokenIds?: Array<string>
minTokenId?: string;
maxTokenId?: string;
attributes?: Array<Attribute>;
}
interface Attribute {
traitType?: string;
value: string;
}