# Zerion API - Get NFT by ID

> Zerion API - Get NFT by ID is a paid API for AI agents from api.zerion.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-29).

Fetches detailed metadata and attributes for a single NFT identified by chain, contract address, and token ID

## Facts

- Endpoint: GET https://api.zerion.io/v1/nfts/%7Bnft_id%7D?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zerion-api-get-nft-by-id-dfd0c498
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xI0hsnPfs1XwPMziJjy_o

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability zerion-api-get-nft-by-id-dfd0c498
```

Example prompt: Can you pull up the full details for the NFT at contract 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D token #1234 on Ethereum?

## When to prefer this

Use this endpoint when you need detailed metadata for a single, known NFT and you have its exact chain, contract address, and token ID. It is ideal for agents that need to display, verify, or analyze a specific NFT rather than searching or listing collections. Prefer this over the search/list NFT endpoint when the full NFT ID is already known and you need structured attribute data.

## Known failure modes

- Invalid NFT ID format (must be chain:contract:token_id) returns 400 Bad Request
- NFT not found or not indexed by Zerion returns 404 Not Found
- Insufficient USDC balance for x402 pay-per-call returns 402 Payment Required
- Unsupported chain identifier returns 400 or 404
- Rate limiting or overload returns 429 Too Many Requests

## How this service works

Interpreted wallet data for more than 40 chains and Solana: portfolios, DeFi positions, PnL, transactions and NFTs. REST for apps, x402 pay-per-call for agents.

## Output

A JSON object with a data field containing the NFT's resource ID, resource type, and attributes (metadata specific to that NFT such as name, image, traits, collection info), plus a links object with a self-referencing URL to the resource on the Zerion API.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "nft_id"
     ],
     "properties": {
      "nft_id": {
       "type": "string",
       "description": "NFT ID in format chain:contract:token_id"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string",
         "description": "Resource ID."
        },
        "type": {
         "type": "string",
         "description": "Resource type."
        },
        "attributes": {
         "type": "object",
         "description": "Resource attributes; see https://developers.zerion.io"
        }
       }
      },
      "links": {
       "type": "object",
       "description": "Self and pagination links."
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "id": "<resource id>",
   "type": "<resource type>",
   "attributes": {}
  },
  "links": {
   "self": "https://api.zerion.io/v1/..."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zerion-api-get-nft-by-id-dfd0c498/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zerion.io](https://www.zero.xyz/host/api.zerion.io/llms.txt)
