Johnson & Johnson
- symbol
- JNJ
- name
- Johnson & Johnson
- exchange
- NYSE
- sector
- Health Care
- marketCap
- 17058646682368
- price
- 2510.64
- priceChangePercent24h
- -4.74
- volume24h
- 473301500
- createdAt
Overview
stocks / #10
Johnson & Johnson
#10
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stocks/10" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stocks/10" ); 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/10"
);
const stock = (await res.json()) as Stock; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stocks/10"
)
stock = res.json() Response
{
"id": 10,
"symbol": "JNJ",
"name": "Johnson & Johnson",
"exchange": "NYSE",
"sector": "Health Care",
"marketCap": 17058646682368,
"price": 2510.64,
"priceChangePercent24h": -4.74,
"volume24h": 473301500,
"createdAt": "2024-08-04T07:31:35.578Z"
}