Directory / Crypto & onchain data
NFT metadata for ERC721 or ERC1155 tokens via eth_call, with IPFS,…
NFT metadata for ERC721 or ERC1155 tokens via eth_call, with IPFS, Arweave, data URI, and public HTTP(S) resolution
402 OKBaseGETx402 v2
- Price per call
- $0.008
- Endpoint
- https://api.onesource.io/api/chain/nft-metadata
- Provider
- api.onesource.io
- Paid calls (30 days)
- 253
- Unique payers (30 days)
- 253
- Last paid call
- 11 days ago
- Health check
- HTTP 402 4 min ago
- Pays to
- 0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea
- Listed here since
- 2026-11-23 (source: bazaar)
Input
{
"method": "GET",
"queryParams": {
"contract": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"network": "ethereum",
"token_id": "1"
},
"type": "http"
}
Example output
{
"example": {
"data": {
"contract_address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"metadata": {
"attributes": [
{
"trait_type": "Background",
"value": "Orange"
}
],
"image": "ipfs://QmPbxeGcXhYQQNgsC6a36dDyYUcHgMLnGKnF8pVFmGsvqi",
"name": "Bored Ape #1"
},
"protocol": "ipfs",
"resolved_url": "https://ipfs.io/ipfs/QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq/1",
"token_id": "1",
"token_uri": "ipfs://QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq/1"
},
"meta": {
"cost_usdc": "0.001",
"endpoint": "/api/chain/nft-metadata",
"payment_chain": "base",
"payment_token": "USDC",
"request_id": "00000000abcdef01"
}
},
"type": "json"
}
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);
const res = await paidFetch("https://api.onesource.io/api/chain/nft-metadata", { method: "GET" });
console.log(await res.json()); // costs $0.008 in USDC on Base
Machine-readable: /api/tools/1355a4b02798. Listings are informational; check a provider before sending large amounts.