# 4SEC Crypto Market Data API — Token Lookup by ID

> 4SEC Crypto Market Data API — Token Lookup by ID is a paid API for AI agents from api.foursec.xyz, paid per call via x402, $0.005/call, status down (last checked 2026-09-15).

Fetches real-time aggregated crypto market data for a specific token by ID, sourced from multiple DEXes, paid per-request with USDC on Base via x402.

## Facts

- Endpoint: GET https://api.foursec.xyz/api/v1/market/%7Bid%7D
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/4sec-crypto-market-data-api-token-lookup-by-id-758a8304
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JlQKndPtEQFck7_yRrTNR

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 4sec-crypto-market-data-api-token-lookup-by-id-758a8304
```

Example prompt: Can you pull the current price and market cap for the token with ID 'ethereum' from 4SEC's multi-DEX aggregated market data feed?

## When to prefer this

Choose this endpoint when you need real-time, multi-DEX aggregated price and market cap data for a specific token and want a pay-per-request model with no subscription — especially useful in agentic workflows on Base where USDC micropayments via x402 are already supported.

## Known failure modes

- Invalid or unknown token ID returns an error or empty response
- Payment failure via x402 protocol causes request rejection
- Token not listed on any supported DEX results in no data
- Network or API downtime causes request timeout
- Malformed ID parameter causes a 400-level error

## How this service works

Real-time multi-DEX aggregated crypto market data. Pay per request with USDC on Base via x402 protocol.

## Output

Returns a JSON object containing the token's ID, name, symbol, current price (in USD or base currency), and market cap, aggregated from multiple decentralized exchanges in real time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "id": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "symbol": {
   "type": "string"
  },
  "market_cap": {
   "type": "number"
  },
  "current_price": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/4sec-crypto-market-data-api-token-lookup-by-id-758a8304/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.foursec.xyz](https://www.zero.xyz/host/api.foursec.xyz/llms.txt)
