example-data.com
Menu
Browse docs and collections

Overview

crypto / #30

raw story

symbol
PVYW
name
raw story
slug
raw-story
marketCap
190116418021
price
48.87625632
priceChangePercent24h
-11.15
volume24h
58146918
circulatingSupply
3889750000
totalSupply
4399343649
createdAt

Component variants

Related

Referenced by

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/crypto/30" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/crypto/30"
);
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/30"
);
const crypto = (await res.json()) as Crypto;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/crypto/30"
)
crypto = res.json()

Response

{
  "id": 30,
  "symbol": "PVYW",
  "name": "raw story",
  "slug": "raw-story",
  "marketCap": 190116418021,
  "price": 48.87625632,
  "priceChangePercent24h": -11.15,
  "volume24h": 58146918,
  "circulatingSupply": 3889750000,
  "totalSupply": 4399343649,
  "createdAt": "2024-10-23T23:29:17.727Z"
}