example-data.com
Menu
Browse docs and collections

stocks

stocks

Page 3 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": 49,
      "symbol": "PCJ",
      "name": "Klocko Group Corp.",
      "exchange": "TSX",
      "sector": "Technology",
      "marketCap": 3862806694768,
      "price": 1025.96,
      "priceChangePercent24h": -4.78,
      "volume24h": 33749464,
      "createdAt": "2026-04-05T01:05:27.536Z"
    },
    {
      "id": 50,
      "symbol": "LZ",
      "name": "Cruickshank - Okuneva Corp.",
      "exchange": "TSX",
      "sector": "Health Care",
      "marketCap": 6925126901279,
      "price": 3553.84,
      "priceChangePercent24h": -7.32,
      "volume24h": 61910267,
      "createdAt": "2026-03-14T07:02:24.803Z"
    },
    {
      "id": 51,
      "symbol": "LPK",
      "name": "Bergnaum Group Corp.",
      "exchange": "TSX",
      "sector": "Communication Services",
      "marketCap": 2869960984492,
      "price": 3090.93,
      "priceChangePercent24h": -1.81,
      "volume24h": 40859925,
      "createdAt": "2024-08-15T12:10:28.835Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 100,
    "totalPages": 5
  },
  "links": {
    "self": "/api/v1/stocks?page=3&limit=24",
    "first": "/api/v1/stocks?page=1&limit=24",
    "last": "/api/v1/stocks?page=5&limit=24",
    "next": "/api/v1/stocks?page=4&limit=24",
    "prev": "/api/v1/stocks?page=2&limit=24"
  }
}