# api2ls.com Crypto Spot Price API

> api2ls.com Crypto Spot Price API is a paid API for AI agents from api2ls.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the live spot price for one or more cryptocurrency/asset pairs (e.g. BTC-USD, ETH-USD) by pair, batch of pairs, or symbol+currency

## Facts

- Endpoint: GET https://api2ls.com/api/price
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api2ls-com-crypto-spot-price-api-3e62cb67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LwHRklz1WH49gXl5zTQFS

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 api2ls-com-crypto-spot-price-api-3e62cb67
```

Example prompt: What's the current live spot price for BTC-USD and ETH-USD right now?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call real-time spot price for one or more cryptocurrency pairs without a subscription. Especially useful for AI agents that need occasional price checks (not high-frequency streaming), support batch lookups of up to 25 pairs in a single call, and operate in x402 micropayment environments. Prefer this over subscription-based market data APIs when cost-per-call economics favor low-volume or on-demand pricing.

## Known failure modes

- Invalid or unsupported pair symbol returns an error or empty result
- Exceeding 25 pairs in a batch request may result in an error
- Missing required query parameters (pair, pairs, or symbol) may return a validation error
- Network or upstream data source outage may cause stale or failed responses
- Payment failure (x402 protocol) blocks the request entirely

## How this service works

Get the live spot price of a crypto/asset pair

## Output

A JSON object containing success status, the asset pair string, the current spot price amount as a string, the base asset, quote currency, and an asOf timestamp indicating when the price was captured.

## 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",
     "properties": {
      "pair": {
       "type": "string",
       "description": "Single asset pair, e.g. BTC-USD"
      },
      "pairs": {
       "type": "string",
       "description": "Comma-separated batch of pairs, e.g. BTC-USD,ETH-USD (max 25; returns all in one call)"
      },
      "symbol": {
       "type": "string",
       "description": "Asset symbol, e.g. ETH (used with currency)"
      },
      "currency": {
       "type": "string",
       "description": "Quote currency, e.g. USD (default USD)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "pair",
      "amount"
     ],
     "properties": {
      "asOf": {
       "type": "string"
      },
      "base": {
       "type": "string"
      },
      "pair": {
       "type": "string"
      },
      "amount": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "currency": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api2ls-com-crypto-spot-price-api-3e62cb67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api2ls.com](https://www.zero.xyz/host/api2ls.com/llms.txt)
