# NFT Metadata – tokenURI / uri Lookup

> NFT Metadata – tokenURI / uri Lookup is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-01).

Fetches ERC-721 or ERC-1155 NFT metadata (tokenURI/uri, collection name, and symbol) for a given token ID via eth_call on Base or Ethereum.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/nft-metadata?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nft-metadata-tokenuri-uri-lookup-648621f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eeuXbHmISk97r0SyWXkGX

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 nft-metadata-tokenuri-uri-lookup-648621f7
```

Example prompt: Can you look up the tokenURI, collection name, and symbol for token ID 1234 of the NFT contract 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D on Ethereum?

## When to prefer this

Choose this endpoint when you need on-chain tokenURI/uri and collection name/symbol for a specific ERC-721 or ERC-1155 token on Base or Ethereum without setting up your own RPC node or indexer. It is ideal for lightweight, per-token metadata resolution where you don't need full indexing or historical data. Prefer this over general-purpose blockchain RPC endpoints when you want a single paid, low-latency call that bundles tokenURI and collection info together.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty result
- Token ID does not exist on the contract — may return empty/zero tokenURI
- Contract does not implement ERC-721 or ERC-1155 — eth_call may revert or return unexpected data
- Unsupported chain specified — only Base and Ethereum are supported
- Network or RPC timeout on the underlying eth_call
- Payment not processed (x402 payment required at $0.01 USDC per call)

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns the tokenURI (for ERC-721) or uri (for ERC-1155) exactly as stored on-chain, plus the collection's name and symbol retrieved via eth_call — all for the specified contract address, token ID, and chain (Base or Ethereum).

## 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": [
      "address",
      "token_id"
     ],
     "properties": {
      "address": {
       "type": "string"
      },
      "network": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string"
      },
      "token_id": {
       "type": "integer"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "token_uri is returned as-is; external URIs are not fetched.",
  "address": "0x0000000000000000000000000000000000000001",
  "network": "base",
  "product": "scanpay.nft_metadata",
  "chain_id": "eip155:8453",
  "standard": "erc721",
  "token_id": 1,
  "price_usd": 0.008,
  "token_uri": "ipfs://QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco/1",
  "uri_scheme": "ipfs",
  "is_contract": true,
  "collection_name": "Example NFT",
  "collection_symbol": "EXMPL"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nft-metadata-tokenuri-uri-lookup-648621f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
