APIs / CoinMarketCap / Search
CoinMarketCap: Search
Search from CoinMarketCap as JSON. 1 credit per successful call.
GET /v1/coinmarketcap/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
page | integer | Optional | Any |
per_page | integer | Optional | Any |
q | string | Required | Up to 100 characters |
Example request
CoinMarketCap
GET/v1/coinmarketcap/search?q=bitcoin
{
"success": true,
"data": {
"query": "bitcoin",
"search": [
{
"id": 1,
"name": "Bitcoin",
"symbol": "BTC",
"slug": "bitcoin",
"rank": 1,
"type": 1
},
{
"id": 3717,
"name": "Wrapped Bitcoin",
"symbol": "WBTC",
"slug": "wrapped-bitcoin",
"rank": 7764,
"type": 1,
"contract_address": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"
},
{
"id": 1831,
"name": "Bitcoin Cash",
"symbol": "BCH",
"slug": "bitcoin-cash",
"rank": 20,
"type": 1,
"contract_address": "0x8fF795a6F4D97E7887C79beA79aba5cc76444aDf"
}
],
"pagination": {
"page": 1,
"per_page": 100,
"total": 259,
"total_pages": 3,
"has_more": true
}
},
"meta": {
"endpoint_family": "search",
"source": "coinmarketcap",
"request_id": "req_e681b75b2c484e73adcdf6d32f62d194",
"credits_charged": 1,
"credits_remaining": 998
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.search has these 7 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
id | integer |
name | string |
symbol | string |
slug | string |
rank | integer |
type | integer |
contract_address | string |