Procter & Gamble Co.
- symbol
- PG
- name
- Procter & Gamble Co.
- exchange
- NYSE
- sector
- Consumer Staples
- marketCap
- 5963025487793
- price
- 4814.62
- priceChangePercent24h
- 4.8
- volume24h
- 183923462
- createdAt
Overview
stocks / #12
Procter & Gamble Co.
#12
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stocks/12" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stocks/12" ); 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/12"
);
const stock = (await res.json()) as Stock; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stocks/12"
)
stock = res.json() Response
{
"id": 12,
"symbol": "PG",
"name": "Procter & Gamble Co.",
"exchange": "NYSE",
"sector": "Consumer Staples",
"marketCap": 5963025487793,
"price": 4814.62,
"priceChangePercent24h": 4.8,
"volume24h": 183923462,
"createdAt": "2026-05-18T17:49:09.266Z"
}