example-data.com
Menu
Browse docs and collections

Overview

crypto / #11

Polygon

symbol
MATIC
name
Polygon
slug
polygon
marketCap
7993536000
price
0.85952
priceChangePercent24h
-12.77
volume24h
4574752558
circulatingSupply
9300000000
totalSupply
10000000000
createdAt

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 11,
  "symbol": "MATIC",
  "name": "Polygon",
  "slug": "polygon",
  "marketCap": 7993536000,
  "price": 0.85952,
  "priceChangePercent24h": -12.77,
  "volume24h": 4574752558,
  "circulatingSupply": 9300000000,
  "totalSupply": 10000000000,
  "createdAt": "2024-07-20T02:09:28.343Z"
}