NFT collection metadata · NFT Collection

by NFT collection metadata

POSTBaseSolanaArbitrumPolygonMonadAvalancheeip155:1329OptimismFraxtaleip155:42220stellar:pubnetalgorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=

$0.002

per call · USD Coin on Base

Fetch NFT collection (ERC-721 / ERC-1155) metadata by contract address on Ethereum, Base, Polygon, Arbitrum, or Optimism: name, symbol, token type, total supply, deployer, OpenSea slug + image, floor (ETH), Twitter/Discord, and verification (safelist) status. Use to label a contract address with its collection identity before pulling tokens or sales.

Endpoint

POST https://agent402.tools/api/nft-collection

4

Calls / 30d

1

Unique payers / 30d

Aug 31

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agent402.tools/api/nft-collection", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "contract": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
    "network": "ethereum"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent402.tools/api/nft-collection" \
  -H "Content-Type: application/json" \
  -d '{"contract":"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d","network":"ethereum"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "contract": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
  "deployedBlockNumber": 12287507,
  "deployerAddress": "0xaba7161a7fb69c88e16ed9f455ce62b791ee4d03",
  "description": "The Bored Ape Yacht Club is a collection of 10,000 unique Bored Ape NFTs.",
  "discordUrl": "https://discord.gg/3P5K3dzgdB",
  "externalUrl": "https://boredapeyachtclub.com",
  "floorPrice": 13.5,
  "floorPriceSource": "opensea",
  "name": "BoredApeYachtClub",
  "network": "ethereum",
  "openSeaImage": "https://...",
  "openSeaSlug": "boredapeyachtclub",
  "safelistStatus": "verified",
  "source": "alchemy-nft-v3",
  "symbol": "BAYC",
  "tokenType": "ERC721",
  "totalSupply": "10000",
  "twitterUsername": "BoredApeYC"
}

Payment details

Pay to0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon, Monad, Avalanche, eip155:1329, Optimism, Fraxtal, eip155:42220, stellar:pubnet, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
Schemesexact, upto

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from NFT collection metadata & similar services