CoinWorldCap Developer Support Request a key

Choosing fields with select

/quotes, /assets, /rwa and /dex/tokens take an optional select: a comma-separated list of the row fields you want. Each row of items then carries those fields and id, and nothing else.

bash
curl -H "X-Api-Key: <your-api-key>" \
  "https://open-api.coinworldcap.com/openapi/v1/quotes?slug=bitcoin&select=price,percent_change"
json
{
  "code": 0,
  "message": "success",
  "message_key": "SUCCESS",
  "result": {
    "items": [
      {
        "id": 1,
        "price": "66079.916784987",
        "percent_change": { "1h": "0.1", "24h": "1.2", "7d": "3.4", "30d": "5.6", "3m": "7.8", "1y": "9", "ytd": "1.1", "all": "2.2" }
      }
    ],
    "page": 1,
    "total_page": 1,
    "total": 1
  }
}