stocks
stocks
Page 5 of 5.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stocks?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/stocks?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/stocks.d.ts https://example-data.com/types/stocks.d.ts
import type { Stock, ListEnvelope } from "./types/stocks";
const res = await fetch(
"https://example-data.com/api/v1/stocks?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Stock>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stocks",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 97,
"symbol": "POHI",
"name": "Lubowitz - Schulist Corp.",
"exchange": "NYSE",
"sector": "Materials",
"marketCap": 3411034432244,
"price": 2165.53,
"priceChangePercent24h": 13.13,
"volume24h": 72289355,
"createdAt": "2024-11-29T18:57:01.967Z"
},
{
"id": 98,
"symbol": "KHJ",
"name": "Gibson, Adams and Leannon Corp.",
"exchange": "HKEX",
"sector": "Technology",
"marketCap": 11337057401037,
"price": 4961.42,
"priceChangePercent24h": -2.8,
"volume24h": 5970075,
"createdAt": "2024-07-06T20:46:32.829Z"
},
{
"id": 99,
"symbol": "HTDC",
"name": "Hackett Inc Corp.",
"exchange": "NYSE",
"sector": "Real Estate",
"marketCap": 12068681797926,
"price": 4914.48,
"priceChangePercent24h": 12.63,
"volume24h": 41707986,
"createdAt": "2025-03-31T21:40:29.003Z"
}
],
"meta": {
"page": 5,
"limit": 24,
"total": 100,
"totalPages": 5
},
"links": {
"self": "/api/v1/stocks?page=5&limit=24",
"first": "/api/v1/stocks?page=1&limit=24",
"last": "/api/v1/stocks?page=5&limit=24",
"next": null,
"prev": "/api/v1/stocks?page=4&limit=24"
}
}