# CoinGecko Coins List with Market Data API

> Get all the supported coins with price, market cap, volume and market related data

Source: https://www.sandbase.ai/model/coingecko/coins-markets
API reference: https://www.sandbase.ai/model/coingecko/coins-markets/docs

## Facts

- Provider: CoinGecko
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/coingecko/coins-markets`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, coingecko, crypto
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/coingecko/coins-markets` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `vs_currency` | string | yes |  |
| `category` | string | no |  |
| `ids` | string | no |  |
| `include_rehypothecated` | boolean | no |  |
| `include_tokens` | string | no | top, all |
| `locale` | string | no | ar, bg, cs, da, de, el, en, es, fi, fr, he, hi, hr, hu, id, it, ja, ko, lt, nl, no, pl, pt, ro, ru, sk, sl, sv, th, tr, uk, vi, zh, zh-tw |
| `names` | string | no |  |
| `order` | string | no | market_cap_asc, market_cap_desc, volume_asc, volume_desc, id_asc, id_desc |
| `page` | integer | no |  |
| `per_page` | integer | no |  |
| `precision` | string | no | full, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 |
| `price_change_percentage` | string | no |  |
| `sparkline` | boolean | no |  |
| `symbols` | string | no |  |

## FAQ

### How do I use the CoinGecko Coins List with Market Data API?

Send a POST request to https://api.sandbase.ai/v1/api/coingecko/coins-markets with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the CoinGecko Coins List with Market Data API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the CoinGecko Coins List with Market Data API accept?

Required: vs_currency (string). Optional: category (string), ids (string), include_rehypothecated (boolean), include_tokens (one of top, all), locale (one of ar, bg, cs, da, de, el, en, es, fi, fr, he, hi, hr, hu, id, it, ja, ko, lt, nl, no, pl, pt, ro, ru, sk, sl, sv, th, tr, uk, vi, zh, zh-tw) and names (string) and 7 more. The Parameters table and the Playground on this page list every field.

### What does the CoinGecko Coins List with Market Data API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a CoinGecko developer account or API key?

No. CoinGecko Coins List with Market Data runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for CoinGecko API access separately.

## README

### CoinGecko Coins List with Market Data API

Get all the supported coins with price, market cap, volume and market related data

The response is the official CoinGecko API response, unchanged.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "coingecko/coins-markets", "vs_currency": "usd"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `category` | string | No | Filter based on coins' category. *refers to [`/coins/categories/list`](/reference/coins-categories-list) |
| `ids` | string | No | Coins' IDs, comma-separated if querying more than 1 coin. *refers to [`/coins/list`](/reference/coins-list) |
| `include_rehypothecated` | boolean | No | Include rehypothecated tokens in results. When true, returns `market_cap_rank_with_rehypothecated` field. Default: false |
| `include_tokens` | string | No | For `symbols` lookups, specify `all` to include all matching tokens. Default `top` returns top-ranked tokens by market cap or volume. |
| `locale` | string | No | Language background. Default: en |
| `names` | string | No | Coins' names, comma-separated if querying more than 1 coin. |
| `order` | string | No | Sort result by field. Default: market_cap_desc |
| `page` | integer | No | Page through results. Default: 1 |
| `per_page` | integer | No | Total results per page. Default: 100 Valid values: 1...250 |
| `precision` | string | No | Decimal places for currency price value |
| `price_change_percentage` | string | No | Include price change percentage timeframe, comma-separated if querying more than 1 timeframe. Valid values: `1h`, `24h`, `7d`, `14d`, `30d`, `200d`, `1y` |
| `sparkline` | boolean | No | Include sparkline 7-day data. Default: false |
| `symbols` | string | No | Coins' symbols, comma-separated if querying more than 1 coin. |
| `vs_currency` | string | Yes | Target currency of coins and market data. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies) |

#### Pricing

Flat price per call. Failed calls are not charged.
