HTTP API Quickstart

To get started now, try this to make a Get asset call for mfer #1 using just the contract address and token ID:

curl https://api.center.dev/v1/ethereum-mainnet/0x79FCDEF22feeD20eDDacbB2587640e45491b757f/1.json

This endpoint returns key data for this NFT, including the collection name, attributes, a description, and links to the NFT media.

Response:

{
  "address": "0x79FCDEF22feeD20eDDacbB2587640e45491b757f",
  "token_id": "1",
  "tokenId": "1",
  "collection_name": "mfers",
  "collectionName": "mfers",
  "url": "/collections/0x79FCDEF22feeD20eDDacbB2587640e45491b757f/1",
  "name": "mfer #1",
  "metadata": {
    "attributes": [
      {
        "trait_type": "background",
        "value": "red"
      },
      {
        "trait_type": "type",
        "value": "charcoal mfer"
      },
      {
        "trait_type": "eyes",
        "value": "nerd glasses"
      },
      {
        "trait_type": "mouth",
        "value": "smile"
      },
      {
        "trait_type": "headphones",
        "value": "white headphones"
      },
      {
        "trait_type": "4:20 watch",
        "value": "sub red"
      },
      {
        "trait_type": "hat under headphones",
        "value": "bandana dark gray"
      },
      {
        "trait_type": "shirt",
        "value": "collared shirt blue"
      }
    ],
    "description": "mfers by sartoshi",
    "image": "ipfs://QmWmgfYhDWjzVheQyV2TnpVXYnKR25oLWCB2i9JeBxsJbz",
    "name": "mfer #1"
  },
  "small_preview_image_url": "https://cdn.center.app/1/0x79FCDEF22feeD20eDDacbB2587640e45491b757f/1/5bce72d15ad00440e6581250ed27a79d36649199249d61a71915e8f5769d693b.png",
  "smallPreviewImageUrl": "https://cdn.center.app/1/0x79FCDEF22feeD20eDDacbB2587640e45491b757f/1/5bce72d15ad00440e6581250ed27a79d36649199249d61a71915e8f5769d693b.png",
  "mediumPreviewImageUrl": "https://cdn.center.app/1/0x79FCDEF22feeD20eDDacbB2587640e45491b757f/1/afe259bceee6638a7e24f6cdd80011e9d8c71c16a0073f74477ca7307a2832a4.png"
}