NFT API Overview
NFT API is the Advanced API method group for NFT-related data across supported chains. Use it when your application needs indexed NFT ownership, collection membership, metadata, or holder data without scanning contracts or building a custom NFT indexer.
NFT API usecases: best suited for wallets, marketplaces, portfolio dashboards, collection analytics, and support tools that need normalized NFT data from one or more chains.
What You Can Build
NFT API supports common NFT workflows used by production applications:
- Display wallet NFTs: retrieve NFTs owned by a wallet address, including collection and token details.
- Enrich token views: fetch metadata for a specific NFT contract and token ID.
- Analyze collections: retrieve holders for a collection to power collection analytics or holder-gated experiences.
- Support multichain NFT apps: query supported chains through the same Advanced API request model.
Request Model
NFT API uses JSON-RPC 2.0 over the Advanced API multichain HTTPS endpoint. A request includes the endpoint URL, method name, params object, and JSON-RPC metadata:
Successful responses include a result object. Failed responses include an error object with details, so clients should inspect the response body before treating a request as successful.
Methods
ankr_getNFTHolders: retrieves wallet addresses that hold NFTs from a specified NFT contract. Use it to understand holder distribution for a collection.ankr_getNFTMetadata: retrieves metadata for a specific NFT. Use it to display token attributes, media, collection details, and other token-level metadata returned by the API.ankr_getNFTsByOwner: retrieves NFTs owned by a wallet address. Use it for wallet galleries, portfolio views, ownership checks, and account-level NFT discovery.