# 47620 Polygon Block Header API

> 47620 Polygon Block Header API is a paid API for AI agents from 47620.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Fetches block header and summary data for a Polygon network block by number or 'latest', returning hash, timestamp, transaction count, gas used, and base fee.

## Facts

- Endpoint: GET https://47620.xyz/x/polygon/block/0?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/47620-polygon-block-header-api-ca685f55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jRxP-sqaSVHp6V9a2UXFE

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 47620-polygon-block-header-api-ca685f55
```

Example prompt: Can you look up the latest Polygon block and tell me the block hash, how many transactions it contains, the gas used, and the base fee?

## When to prefer this

Choose this endpoint when you need lightweight Polygon block header data (hash, timestamp, tx count, gas used, base fee) on demand without running your own Polygon node. Ideal for agents that need to monitor network state, verify block finality, or track gas conditions on Polygon specifically — as opposed to Ethereum, Base, or Solana chains which have separate endpoints on the same platform.

## Known failure modes

- Invalid or non-existent block number returns an error or empty result
- Network timeout if Polygon RPC is slow or unavailable
- Payment failure (402) if x402 payment is not attached or insufficient
- Malformed block number string causes a bad request error
- Field filter parameter references non-existent keys, returning empty filtered result

## How this service works

Header + summary for a polygon block by number (or "latest"): hash, timestamp, tx count, gas used and base fee.

## Output

A JSON object containing a boolean 'ok' status plus block-level fields: block hash, timestamp, transaction count, total gas used, and base fee per gas for the requested Polygon block number.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "number"
     ],
     "properties": {
      "number": {
       "type": "string",
       "description": "Header + summary for a polygon block by number (or \"latest\"): hash, timestamp, tx count, gas used and base fee."
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "fields": {
       "type": "string",
       "description": "Optional comma-separated top-level response keys to keep (e.g. \"health,slot,solUsd\"). Omit for the full payload."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "endpoint"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "endpoint": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/47620-polygon-block-header-api-ca685f55/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 47620.xyz](https://www.zero.xyz/host/47620.xyz/llms.txt)
