# x402-experiments Market Snapshot (lab.paidapis.net)

> x402-experiments Market Snapshot (lab.paidapis.net) is a paid API for AI agents from lab.paidapis.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns a real-time Base mainnet market snapshot including ETH/USD price, gas price in Gwei, and the latest Base block number and timestamp.

## Facts

- Endpoint: GET https://lab.paidapis.net/api/market-snapshot
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-experiments-market-snapshot-lab-paidapis-net-2b7f51f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1Q-9k8585bHNsaXL47V9a

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 x402-experiments-market-snapshot-lab-paidapis-net-2b7f51f0
```

Example prompt: What's the current ETH price in USD and the gas price on Base right now? Also tell me the latest Base block number.

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.01 USDC) real-time snapshot of ETH/USD price and Base network gas conditions in a single call. Ideal for agents that need onchain oracle-style data without running their own RPC node or subscribing to a full data provider. Best when you want Base-native data specifically (not Ethereum L1 gas or prices from a CEX).

## Known failure modes

- Payment not provided or invalid — returns HTTP 402 requiring USDC payment on Base mainnet
- Base RPC node temporarily unavailable — stale or missing data
- Invalid referral wallet address format — may cause request rejection or ignored referral
- Network congestion causing delayed block/gas data

## How this service works

Aggregated market snapshot: Ethereum mainnet gas price (Gwei), ETH/USD spot price, and the latest Base mainnet block number and timestamp — combined into one call. Optional ?ref=<address> pays that wallet a 20% referral cut, sent as a separate on-chain transfer after settlement.

## Output

A JSON object containing: the timestamp of the data (dataAsOf), the current ETH/USD price as a number (ethUsdPrice), the current gas price in Gwei (gasPriceGwei), and the latest Base block details including its number (integer) and timestamp (string).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ref": {
   "type": "string",
   "description": "Wallet address to pay a referral cut to."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dataAsOf": {
   "type": "string"
  },
  "ethUsdPrice": {
   "type": "number"
  },
  "gasPriceGwei": {
   "type": "number"
  },
  "latestBaseBlock": {
   "type": "object",
   "properties": {
    "number": {
     "type": "integer"
    },
    "timestamp": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-experiments-market-snapshot-lab-paidapis-net-2b7f51f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lab.paidapis.net](https://www.zero.xyz/host/lab.paidapis.net/llms.txt)
