Stock News API
The Stock News API returns the latest stock-market news headlines aggregated from major financial publishers (CNBC, MarketWatch, Yahoo Finance, Benzinga, Seeking Alpha, Nasdaq, Forbes, the Wall Street Journal, SEC EDGAR, and more). Filter by one or more tickers, paginate through results, and always get the most recent news first.
From 4,522 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 298ms | 328ms | 375ms | 752ms | 1233ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/stocknews GET Premium Only
https://api.api-ninjas.com/v1/stocknews
Returns up to 50 of the most recent stock-market news headlines, sorted most recent first. Use the optional ticker parameter to filter by one or more symbols. This endpoint is available to premium subscribers only.
Parameters
tickeroptionalSingle ticker (e.g.
AAPL) or a comma-separated list (e.g.AAPL,MSFT,TSLA). When omitted, the latest news across all publishers is returned.offsetoptionalPagination offset. Each page returns 50 results. Defaults to
0. Maximum10000.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of up to 50 headline objects, each with the following fields, or an error if the request is unsuccessful.
titleHeadline of the article.
urlCanonical URL of the article.
sourceCanonical publisher slug (e.g.
cnbc,benzinga,marketwatch).publishedUnix timestamp (in seconds) of when the article was published.
tickersArray of ticker symbols associated with the article.
authorArticle author, when available. May be
null.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/stocknews?ticker=AAPLHeaders
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/stocknews?ticker=AAPL" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.