# Phantom API — zkSync NFT Metadata Lookup

> Phantom API — zkSync NFT Metadata Lookup is a paid API for AI agents from phantom-api-omega.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches on-chain NFT metadata for a given token ID and contract address on the zkSync network

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/zksync/nft/metadata
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-zksync-nft-metadata-lookup-5bdd116b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XKVC1uJwiTt3_CUnqIpJh

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 phantom-api-zksync-nft-metadata-lookup-5bdd116b -d '<json body>'
```

Example prompt: Can you pull the NFT metadata for token ID 42 from the zkSync contract at 0x1234abcd...? I need the name, image, and attributes.

## When to prefer this

Choose this endpoint when you specifically need NFT metadata on the zkSync (zkSync Era / zkSync 2.0) network by contract address and token ID. It is preferable over generic blockchain explorers when you need structured, machine-readable metadata in a single pay-per-call API request without managing your own RPC node or zkSync-specific infrastructure.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty response
- Token ID not found on the contract returns a not-found error
- Contract is not an NFT contract (no tokenURI method) results in a metadata retrieval failure
- zkSync network congestion or RPC issues may cause timeouts
- Metadata hosted off-chain (e.g. IPFS) may be unavailable if the gateway is down

## How this service works

Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.

## Output

Returns on-chain NFT metadata for the specified token from the zkSync network, typically including the token name, description, image URL, and attributes/traits array, sourced directly from the smart contract or linked metadata URI.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tokenId": {
   "type": "string"
  },
  "contractAddress": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phantom-api-zksync-nft-metadata-lookup-5bdd116b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from phantom-api-omega.vercel.app](https://www.zero.xyz/host/phantom-api-omega.vercel.app/llms.txt)
