example-data.com
Menu
Browse docs and collections

stocks

stocks

Browse 100 stocks records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Cards

Compact

Detailed

Apple Inc.

symbol
AAPL
name
Apple Inc.
exchange
NASDAQ
sector
Technology
marketCap
7226659649002
price
2589.12
priceChangePercent24h
8.12
volume24h
297600310
createdAt

Microsoft Corporation

symbol
MSFT
name
Microsoft Corporation
exchange
NASDAQ
sector
Technology
marketCap
1023003487444
price
758.62
priceChangePercent24h
-12.41
volume24h
265154672
createdAt

Alphabet Inc.

symbol
GOOGL
name
Alphabet Inc.
exchange
NASDAQ
sector
Technology
marketCap
8345528142941
price
2306.28
priceChangePercent24h
-12.38
volume24h
208261907
createdAt

Amazon.com Inc.

symbol
AMZN
name
Amazon.com Inc.
exchange
NASDAQ
sector
Consumer Discretionary
marketCap
2581799618098
price
2543.61
priceChangePercent24h
7.36
volume24h
304135310
createdAt

Tesla Inc.

symbol
TSLA
name
Tesla Inc.
exchange
NASDAQ
sector
Consumer Discretionary
marketCap
14803899307534
price
3119.57
priceChangePercent24h
9.43
volume24h
146003136
createdAt

Meta Platforms Inc.

symbol
META
name
Meta Platforms Inc.
exchange
NASDAQ
sector
Communication Services
marketCap
18522702534945
price
4622.57
priceChangePercent24h
-3.12
volume24h
203768843
createdAt

Showing first 6 of 24 on this page.

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": 1,
      "symbol": "AAPL",
      "name": "Apple Inc.",
      "exchange": "NASDAQ",
      "sector": "Technology",
      "marketCap": 7226659649002,
      "price": 2589.12,
      "priceChangePercent24h": 8.12,
      "volume24h": 297600310,
      "createdAt": "2025-04-21T22:02:47.230Z"
    },
    {
      "id": 2,
      "symbol": "MSFT",
      "name": "Microsoft Corporation",
      "exchange": "NASDAQ",
      "sector": "Technology",
      "marketCap": 1023003487444,
      "price": 758.62,
      "priceChangePercent24h": -12.41,
      "volume24h": 265154672,
      "createdAt": "2025-08-03T10:41:55.359Z"
    },
    {
      "id": 3,
      "symbol": "GOOGL",
      "name": "Alphabet Inc.",
      "exchange": "NASDAQ",
      "sector": "Technology",
      "marketCap": 8345528142941,
      "price": 2306.28,
      "priceChangePercent24h": -12.38,
      "volume24h": 208261907,
      "createdAt": "2025-07-31T11:10:22.925Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 100,
    "totalPages": 4
  },
  "links": {
    "self": "/api/v1/stocks?page=1",
    "first": "/api/v1/stocks?page=1",
    "last": "/api/v1/stocks?page=4",
    "next": "/api/v1/stocks?page=2",
    "prev": null
  }
}

View full response →