Cosmos
- symbol
- ATOM
- name
- Cosmos
- slug
- cosmos
- marketCap
- 3200400000
- price
- 9.144
- priceChangePercent24h
- -11.04
- volume24h
- 7352173078
- circulatingSupply
- 350000000
- totalSupply
- —
- createdAt
Overview
crypto / #16
Cosmos
#16
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto/16" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto/16" ); const crypto = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/crypto.d.ts https://example-data.com/types/crypto.d.ts
import type { Crypto } from "./types/crypto";
const res = await fetch(
"https://example-data.com/api/v1/crypto/16"
);
const crypto = (await res.json()) as Crypto; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/16"
)
crypto = res.json() Response
{
"id": 16,
"symbol": "ATOM",
"name": "Cosmos",
"slug": "cosmos",
"marketCap": 3200400000,
"price": 9.144,
"priceChangePercent24h": -11.04,
"volume24h": 7352173078,
"circulatingSupply": 350000000,
"totalSupply": null,
"createdAt": "2024-07-22T10:12:01.631Z"
}