crypto
crypto
Page 3 of 3.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/crypto?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/crypto";
const res = await fetch(
"https://example-data.com/api/v1/crypto?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Crypto>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 49,
"symbol": "EJY",
"name": "appropriate secret",
"slug": "appropriate-secret",
"marketCap": 124006209883,
"price": 22.6690196,
"priceChangePercent24h": 17.2,
"volume24h": 93909401,
"circulatingSupply": 5470294352,
"totalSupply": 5651907307,
"createdAt": "2024-09-03T09:32:45.381Z"
},
{
"id": 50,
"symbol": "LVQ",
"name": "infatuated rawhide",
"slug": "infatuated-rawhide",
"marketCap": 76207663438,
"price": 36.95516574,
"priceChangePercent24h": 18.02,
"volume24h": 80678833,
"circulatingSupply": 2062165381,
"totalSupply": null,
"createdAt": "2024-10-06T02:25:43.931Z"
}
],
"meta": {
"page": 3,
"limit": 24,
"total": 50,
"totalPages": 3
},
"links": {
"self": "/api/v1/crypto?page=3&limit=24",
"first": "/api/v1/crypto?page=1&limit=24",
"last": "/api/v1/crypto?page=3&limit=24",
"next": null,
"prev": "/api/v1/crypto?page=2&limit=24"
}
}