International Business Machines Corporation (IBM) Stock Price API
International Business Machines Corporation (IBM) is a global enterprise technology company listed on the NYSE, focused on hybrid cloud (Red Hat), software, consulting, and the watsonx generative-AI platform. IBM's stock price is driven by software growth, Red Hat ARR, consulting bookings, and AI-related deal momentum. The IBM Stock Price API delivers real-time and historical price data for IBM.
From 3,661 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 343ms | 356ms | 390ms | 594ms | 1103ms |
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
IBMfor International Business Machines Corporation. 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.,
IBM).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 our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/stockprice?ticker=IBMHeaders
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=IBM" \
-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 International Business Machines Corporation (IBM) stock price data in OHLCV (Open, High, Low, Close, Volume) format. Data is returned in descending order (most recent first).
Parameters
tickerrequiredUse
IBMfor International Business Machines Corporation.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 our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/stockpricehistorical?ticker=IBM&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=IBM&period=1h" \
-H "X-Api-Key: YOUR_API_KEY"Frequently Asked Questions
Can I use the Stock Price API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Stock Price API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the Stock Price API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Stock Price API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.How do I look up the current price of a stock or market index?
Send a GET request to the/v1/stockpriceendpoint with thetickerparameter set to a stock symbol such asAAPLor an index symbol such as^DJIfor the Dow Jones Industrial Average. The response returns the currentprice,updatedtimestamp andvolume, whilename,exchangeandcurrencyare premium only fields; for company metadata see the Ticker API.How fresh are the stock prices, and how do I get live (non-delayed) data?
Premium members receive live, real-time prices while free users get 15-minute delayed data; theupdatedfield gives the Unix timestamp of the last price update. You can upgrade for live pricing on the pricing page.Does the Stock Price API provide historical price data?
Yes. The premium/v1/stockpricehistoricalendpoint returns OHLCV data as a JSON array of objects withopen,high,low,close,volumeandtimefields, and you can control the interval with theperiodparameter (values from1mup to1d) along with optionalstartandendUnix timestamps. Historical access is unlocked via pricing.How can I get the full list of supported companies and tickers?
Use the premium/v1/stockpricelistendpoint, which returns a paginated JSON array of objects withtickerandnamefields; control paging with theoffsetandlimitparameters (limit must be between1and1000). For fund pricing instead, see the related ETF API and Mutual Fund API.