# Base NFT ERC-721 Metadata Fetcher

> Base NFT ERC-721 Metadata Fetcher is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-23).

Fetches and parses ERC-721 token metadata (including rewritten image URL) for a given contract address and token ID on the Base blockchain, resolving tokenURIs from IPFS or Arweave gateways only.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/base-nft-metadata?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-nft-erc-721-metadata-fetcher-4dce394f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__OKkjjl0uLNSxnUgw_IPt

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 base-nft-erc-721-metadata-fetcher-4dce394f -d '<json body>'
```

Example prompt: Can you pull the full metadata — name, image, and attributes — for token ID 42 on the Base NFT contract 0xAbCd1234abcd1234abcd1234abcd1234abcd1234?

## When to prefer this

Use this endpoint when you need to reliably fetch and parse ERC-721 token metadata specifically on the Base blockchain, with the assurance that image URLs are safely rewritten to trusted IPFS or Arweave gateways (no arbitrary URL fetching). Prefer this over generic NFT APIs when you need sandboxed, SSRF-safe metadata resolution with a predictable JSON output and per-call micropayment pricing via x402.

## Known failure modes

- Token ID does not exist on the contract — returns an error
- tokenURI points to a non-IPFS/non-Arweave URL (arbitrary URLs are blocked) — returns an error
- tokenURI resolves to a non-JSON document — returns an error
- Invalid contract address format — request rejected
- Unpaid request to paid endpoint — HTTP 402 Payment Required (use /v1/sandbox/base-nft-metadata for free testing)
- Contract address is not an ERC-721 on Base — error returned

## How this service works

Call when an agent needs parsed ERC-721 metadata for a Base contract and token id. tokenURI is fetched only from fixed IPFS and Arweave gateways. The image field is rewritten to that gateway. A missing token or non-JSON document errors. No arbitrary URL. Send JSON {"contract":"0x1111111111111111111111111111111111111111","token_id":"1"}. Exact $0.005 USDC on Base. Try unpaid POST /v1/sandbox/base-nft-metadata first.

## Output

Returns the parsed ERC-721 metadata JSON for the specified token, including fields such as name, description, image (rewritten to the IPFS or Arweave gateway URL), and any attributes/traits. Errors if the token does not exist or the tokenURI does not resolve to valid JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "contract": {
   "type": "string",
   "examples": [
    "0x1111111111111111111111111111111111111111"
   ],
   "description": "ERC-721 contract on Base. Example: 0x1111111111111111111111111111111111111111. tokenURI is read-only."
  },
  "token_id": {
   "type": "string",
   "pattern": "^(0|[1-9]\\d*)$",
   "examples": [
    "1"
   ],
   "description": "ERC-721 token id as a decimal integer. Example: 1. A JSON number is accepted when it is a safe integer. A missing token errors."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-nft-erc-721-metadata-fetcher-4dce394f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
