Apple Inc.
- symbol
- AAPL
- name
- Apple Inc.
- exchange
- NASDAQ
- sector
- Technology
- marketCap
- 7226659649002
- price
- 2589.12
- priceChangePercent24h
- 8.12
- volume24h
- 297600310
- createdAt
Overview
stocks / #1
Apple Inc.
#1
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stocks/1" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stocks/1" ); const stock = 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 } from "./types/stocks";
const res = await fetch(
"https://example-data.com/api/v1/stocks/1"
);
const stock = (await res.json()) as Stock; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stocks/1"
)
stock = res.json() Response
{
"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"
}