Tesla Inc.
- symbol
- TSLA
- name
- Tesla Inc.
- exchange
- NASDAQ
- sector
- Consumer Discretionary
- marketCap
- 14803899307534
- price
- 3119.57
- priceChangePercent24h
- 9.43
- volume24h
- 146003136
- createdAt
Overview
stocks / #5
Tesla Inc.
#5
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stocks/5" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stocks/5" ); 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/5"
);
const stock = (await res.json()) as Stock; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stocks/5"
)
stock = res.json() Response
{
"id": 5,
"symbol": "TSLA",
"name": "Tesla Inc.",
"exchange": "NASDAQ",
"sector": "Consumer Discretionary",
"marketCap": 14803899307534,
"price": 3119.57,
"priceChangePercent24h": 9.43,
"volume24h": 146003136,
"createdAt": "2025-11-15T07:59:35.618Z"
}