example-data.com
Menu
Browse docs and collections

stocks

stocks

Page 4 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": 73,
      "symbol": "JSK",
      "name": "Buckridge and Sons Corp.",
      "exchange": "LSE",
      "sector": "Consumer Discretionary",
      "marketCap": 1587464500722,
      "price": 366.1,
      "priceChangePercent24h": 0.35,
      "volume24h": 85755988,
      "createdAt": "2025-11-01T23:15:09.226Z"
    },
    {
      "id": 74,
      "symbol": "UAX",
      "name": "D'Amore LLC Corp.",
      "exchange": "TSX",
      "sector": "Energy",
      "marketCap": 428631115660,
      "price": 149.14,
      "priceChangePercent24h": 12.31,
      "volume24h": 72860921,
      "createdAt": "2025-01-02T18:46:58.945Z"
    },
    {
      "id": 75,
      "symbol": "HIU",
      "name": "Sauer Group Corp.",
      "exchange": "HKEX",
      "sector": "Utilities",
      "marketCap": 4749798632285,
      "price": 1513.92,
      "priceChangePercent24h": 7.81,
      "volume24h": 44589940,
      "createdAt": "2025-09-26T15:56:40.121Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 100,
    "totalPages": 5
  },
  "links": {
    "self": "/api/v1/stocks?page=4&limit=24",
    "first": "/api/v1/stocks?page=1&limit=24",
    "last": "/api/v1/stocks?page=5&limit=24",
    "next": "/api/v1/stocks?page=5&limit=24",
    "prev": "/api/v1/stocks?page=3&limit=24"
  }
}