# Phantom API — Linea NFT Metadata

> Phantom API — Linea NFT Metadata 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 on the Linea blockchain network

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/linea/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-linea-nft-metadata-1e96a881
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sA1RQMFWbkgpqtRr16cOj

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-linea-nft-metadata-1e96a881 -d '<json body>'
```

Example prompt: Can you fetch the metadata for token ID 42 from the NFT contract 0xAbCd...1234 on the Linea blockchain — I need the name, image, and any attributes it has?

## When to prefer this

Use this endpoint when you specifically need NFT metadata from the Linea blockchain network and want pay-per-call pricing without a subscription. Prefer over general-purpose blockchain explorers when you need programmatic, structured metadata output for a specific token. Ideal for agents that need to enrich NFT data on Linea without committing to a monthly API plan.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty response
- Token ID not found within the contract returns null or 404-style error
- Contract is not a standard NFT contract (ERC-721/ERC-1155) may cause metadata parse failure
- Linea network congestion or node unavailability causes timeout
- Malformed input (missing contractAddress or tokenId) returns validation error
- Off-chain metadata URI is unreachable causing incomplete metadata

## 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 the on-chain metadata for the specified NFT token on the Linea network, typically including token name, description, image URL, and an array of attributes/traits as stored in or linked from the smart contract.

## 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-linea-nft-metadata-1e96a881/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)
