# OneSource NFT Metadata Lookup

> OneSource NFT Metadata Lookup is a paid API for AI agents from skills.onesource.io, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Fetches NFT metadata, traits, and image URI for any ERC721 or ERC1155 token by contract address and token ID via live Ethereum RPC with IPFS resolution

## Facts

- Endpoint: GET https://skills.onesource.io/api/chain/nft-metadata
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/skills-onesource-io-a94bdef9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gsZuQw0LpFxQStGJJOB-2

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 skills-onesource-io-a94bdef9
```

Example prompt: What are the traits and image for Bored Ape Yacht Club token ID 1234 on Ethereum — can you pull the full metadata from the contract 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D?

## When to prefer this

Use this endpoint when you need to resolve NFT metadata including traits and images for ERC721 or ERC1155 tokens on Ethereum mainnet or supported EVM-compatible chains (Base, Avalanche, Sepolia, MegaETH). Preferred when IPFS resolution is needed alongside on-chain eth_call, and when you want a single call that returns fully resolved metadata rather than a raw tokenURI string.

## Known failure modes

- Invalid contract address format returns validation error
- Token ID does not exist on the contract returns not found or empty metadata
- IPFS resolution timeout if metadata hosted on slow IPFS nodes
- Contract is not ERC721 or ERC1155 compliant returns call failure
- Unsupported network name returns enum validation error
- Token metadata stored off-chain on unreachable server returns fetch error

## How this service works

Fetches metadata for NFTs on-chain.

## Output

Returns NFT metadata including token name, description, image URI (with IPFS resolved to a usable URL), and an array of trait/attribute key-value pairs for the specified ERC721 or ERC1155 token on the given EVM network.

## Example request

```json
{
 "network": "ethereum",
 "contract": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
 "token_id": "1234"
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "contract",
      "token_id"
     ],
     "properties": {
      "network": {
       "enum": [
        "ethereum",
        "sepolia",
        "robinhood"
       ],
       "type": "string",
       "default": "ethereum"
      },
      "contract": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "token_id": {
       "type": "string",
       "pattern": "^[0-9]+$"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data",
      "meta"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "metadata": {
         "type": "object",
         "properties": {
          "name": {
           "type": "string"
          },
          "image": {
           "type": "string"
          },
          "attributes": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "value": {
              "type": "string"
             },
             "trait_type": {
              "type": "string"
             }
            }
           }
          }
         }
        },
        "protocol": {
         "type": "string"
        },
        "token_id": {
         "type": "string"
        },
        "token_uri": {
         "type": "string"
        },
        "resolved_url": {
         "type": "string"
        },
        "contract_address": {
         "type": "string"
        }
       },
       "description": "Endpoint-specific response payload"
      },
      "meta": {
       "type": "object",
       "required": [
        "endpoint",
        "request_id"
       ],
       "properties": {
        "endpoint": {
         "type": "string"
        },
        "cost_usdc": {
         "type": "string"
        },
        "request_id": {
         "type": "string"
        },
        "payment_cha
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/skills-onesource-io-a94bdef9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from skills.onesource.io](https://www.zero.xyz/host/skills.onesource.io/llms.txt)
