Berkshire Hathaway Inc. (Class B) (BRK.B) Stock Price API
Berkshire Hathaway Class B (BRK.B) is the more accessible share class of Warren Buffett's diversified holding company, listed on the NYSE. Berkshire owns GEICO, BNSF Railway, Berkshire Hathaway Energy, See's Candies, and large equity stakes in Apple, American Express, and Coca-Cola. BRK.B's stock price is driven by insurance underwriting, equity portfolio marks, and capital deployment decisions. The BRK.B Stock Price API delivers real-time and historical price data for Berkshire Hathaway.
From 3,661 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 387ms | 413ms | 475ms | 593ms | 1234ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/stockprice GET
https://api.api-ninjas.com/v1/stockprice
Parameters
tickerrequiredStock or index ticker symbol. Use
BRK.Bfor Berkshire Hathaway Inc. (Class B). See the full Stock Price API documentation.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON object with the following fields or an error if the request is unsuccessful.
tickerThe ticker symbol of the stock (e.g.,
BRK.B).nameThe full company name associated with the ticker symbol.
priceThe current price of the stock.
exchangeThe exchange where the stock is listed (e.g.,
NYSE).updatedThe Unix timestamp of the price update.
currencyThe currency in which the stock is priced (e.g.,
USD).volumeThe trading volume for the most recent session.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/stockprice?ticker=BRK.BHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/stockprice?ticker=BRK.B" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed above, you can still make API calls by using any HTTP request library and following the documentation above.
/v1/stockpricehistorical GET Premium Only
https://api.api-ninjas.com/v1/stockpricehistorical
Returns historical Berkshire Hathaway Inc. (Class B) (BRK.B) stock price data in OHLCV (Open, High, Low, Close, Volume) format. Data is returned in descending order (most recent first).
Parameters
tickerrequiredUse
BRK.Bfor Berkshire Hathaway Inc. (Class B).periodoptionalTime interval between data points. Valid values:
1m,5m,15m,30m,1h,4h,1d. Default is1h.startoptionalStart timestamp in Unix format. Defaults to 24 hours ago.
endoptionalEnd timestamp in Unix format. Defaults to current time.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects or an error if the request is unsuccessful.
openOpening price.
highHighest price.
lowLowest price.
closeClosing price.
volumeTrading volume.
timeUnix timestamp of the period.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/stockpricehistorical?ticker=BRK.B&period=1hHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/stockpricehistorical?ticker=BRK.B&period=1h" \
-H "X-Api-Key: YOUR_API_KEY"