NewConnect Claude, Cursor, ChatGPT, and other AI agents to API Ninjas via our MCP server

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.

(4.6)

From 4,522 users

1,100+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
298ms328ms375ms752ms1233ms

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

  • ticker  optional

    Single ticker (e.g. AAPL) or a comma-separated list (e.g. AAPL,MSFT,TSLA). When omitted, the latest news across all publishers is returned.

  • offset  optional

    Pagination offset. Each page returns 50 results. Defaults to 0. Maximum 10000.

Headers

  • X-Api-Key  required

    API 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.

  • title

    Headline of the article.

  • url

    Canonical URL of the article.

  • source

    Canonical publisher slug (e.g. cnbc, benzinga, marketwatch).

  • published

    Unix timestamp (in seconds) of when the article was published.

  • tickers

    Array of ticker symbols associated with the article.

  • author

    Article author, when available. May be null.

Sample Request Live Demo!

ticker
offset

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v1/stocknews?ticker=AAPL

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON

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.