# Polygon PoS NFT Onchain Data

> Polygon PoS NFT Onchain Data is a paid API for AI agents from onchaincheck.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-29).

Fetches metadata for an ERC-721 or ERC-1155 token on Polygon PoS, including collection name, current owner, token URI, decoded metadata JSON, and a browser-loadable image URL.

## Facts

- Endpoint: GET https://onchaincheck.dev/polygon/nft?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polygon-pos-nft-onchain-data-ebc77591
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pV2o2LMfVAcbk10fmTlQB

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 polygon-pos-nft-onchain-data-ebc77591
```

Example prompt: Look up the on-chain metadata for token ID 5 on the Polygon NFT contract 0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d — I want the collection name, current owner, attributes, and a loadable image URL.

## When to prefer this

Use this endpoint when you need comprehensive NFT metadata for a specific token on Polygon PoS, including decoded metadata from IPFS, Arweave, HTTPS, or inline data URIs, along with a ready-to-display image URL. Prefer this over generic blockchain RPCs when you need the metadata JSON resolved and decoded automatically without handling IPFS gateways yourself. Best for ERC-721 or ERC-1155 tokens specifically on the Polygon PoS network.

## Known failure modes

- Invalid contract address format returns a validation error
- Non-existent token ID returns an error or empty response
- IPFS/Arweave metadata unreachable causes fetch failure
- Token on a different chain than Polygon PoS will not be found
- Malformed or non-standard token URI may result in incomplete metadata
- Rate limiting or payment failure (402) if USDC payment not provided

## How this service works

Metadata for an ERC-721 or ERC-1155 token on Polygon PoS: collection name, current owner (ERC-721), token URI, and the metadata JSON fetched and decoded from IPFS, Arweave, HTTPS or an inline data URI, with a browser-loadable image URL.

## Output

Returns a JSON object with: chain identifier ('polygon'), contract address, token ID, NFT standard (ERC-721 or ERC-1155), collection name, current owner address (ERC-721), token URI, fetchedFrom source (IPFS/Arweave/HTTPS/inline data URI), a browser-loadable imageUrl, and the full decoded metadata object including name, description, image, and attributes array.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "contract",
      "tokenId"
     ],
     "properties": {
      "tokenId": {
       "type": "string",
       "pattern": "^\\d{1,78}$",
       "description": "Token id as a decimal string"
      },
      "contract": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "NFT collection contract on Polygon PoS"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "polygon",
  "owner": "0x7241DDDec3A6aF367882eAF9651b87E1C7549Dff",
  "tokenId": "5",
  "contract": "0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d",
  "imageUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNzUiIGhlaWdodD0iMjc1IiBmaWxsPSJub25lIj48Zz48cGF0aCBmaWxsPSJ1cmwoI3llbGxvdykiIGQ9Ik0wIDBoMjc1djQxNUgweiIvPjwvZz… (240 chars, truncated in this example)",
  "metadata": {
   "name": "Profile #5",
   "image": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNzUiIGhlaWdodD0iMjc1IiBmaWxsPSJub25lIj48Zz48cGF0aCBmaWxsPSJ1cmwoI3llbGxvdykiIGQ9Ik0wIDBoMjc1djQxNUgweiIvPjwvZz… (240 chars, truncated in this example)",
   "attributes": [
    {
     "value": "5",
     "trait_type": "ID",
     "display_type": "number"
    },
    {
     "value": "0x05",
     "trait_type": "HEX ID"
    },
    {
     "value": "1",
     "trait_type": "DIGITS"
    },
    {
     "value": "1652809016",
     "trait_type": "MINTED AT",
     "display_type": "date"
    },
    {
     "value": "gold",
     "trait_type": "Background"
    }
   ],
   "description": "Lens Protocol - Profile #5"
  },
  "standard": "ERC-721",
  "tokenUri": "data:application/json;base64,eyJuYW1lIjo…",
  "collection": "Lens Protocol Profiles",
  "fetchedFrom": "inline data URI"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polygon-pos-nft-onchain-data-ebc77591/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaincheck.dev](https://www.zero.xyz/host/onchaincheck.dev/llms.txt)
