Microsoft Corporation
- symbol
- MSFT
- name
- Microsoft Corporation
- exchange
- NASDAQ
- sector
- Technology
- marketCap
- 1023003487444
- price
- 758.62
- priceChangePercent24h
- -12.41
- volume24h
- 265154672
- createdAt
Overview
stocks / #2
Microsoft Corporation
#2
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stocks/2" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stocks/2" ); 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/2"
);
const stock = (await res.json()) as Stock; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stocks/2"
)
stock = res.json() Response
{
"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"
}