# Crypto Market Data Token prices API (crypto_market.token_price)

- Canonical page: https://everyinfra.com/en/crypto-market-api/token_price
- Endpoint: POST /api/v1/social with {"platform": "crypto_market", "action": "token_price", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed and empty results are not charged
- Returns: list
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=crypto_market&action=token_price

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| token | not declared | yes | not declared | Tokens as `chain:contract-address` (such as `ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7`) or `coingecko:id` (such as `coingecko:bitcoin`). `token_price` takes up to 20, comma-separated; `token_chart` takes exactly one. Other formats are rejected before any charge. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| token | The token as written in the request (chain:contract-address or coingecko:id). |
| symbol | Token symbol, such as BTC or USDT. |
| price_usd | Price in US dollars. |
| price_at | Time of this price, ISO 8601 UTC. |
| decimals | Token decimals (contract-address tokens only, token_price). |
| confidence | Price confidence from 0 to 1; lower values mean less trading backs the price. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "crypto_market",
  "action": "token_price",
  "params": {
    "token": "coingecko:bitcoin,ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "crypto_market",
        "action": "token_price",
        "params": {
            "token": "coingecko:bitcoin,ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "crypto_market",
  "action": "token_price",
  "results": [
    {
      "token": …,
      "symbol": …,
      "price_usd": …,
      "price_at": …,
      "decimals": …,
      "confidence": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=crypto_market
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
