NewConnect Claude, Gemini, 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
366ms385ms459ms601ms1127ms

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.

  • date  optional

    Filter to a single calendar day (UTC). Format YYYY-MM-DD. Mutually exclusive with start_date/end_date.

  • start_date  optional

    Inclusive lower bound on the article's published date (UTC). Format YYYY-MM-DD.

  • end_date  optional

    Inclusive upper bound on the article's published date (UTC). Format YYYY-MM-DD.

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
date
start_date
end_date

Try this endpoint live with a free API key

Instant access — no credit card required.

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
[
    {
      title:"Apple, Boeing, UnitedHealth And More On CNBC's 'Final Trades'",
      url:"https://benzinga.com/trading-ideas/long-ideas/26/05/52556928/apple-boeing-unitedhealth-and-more-on-cnbcs-final-trades",
      source:"benzinga_tv_(video_feed)",
      published:1778760923,
      tickers:[
        "AAPL",
        "BA",
        "CNBC",
        "KWEB",
        "NEWS",
        "UNH",
        "MEDIA"
      ],
      author:"Avi Kapoor"
    },
    "..."
]

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.

Frequently Asked Questions

  • Yes, but you must have a premium subscription. Commercial use of the Stock News API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • 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.
  • 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.
  • It powers ticker-specific news feeds, sentiment and event-driven trading signals, and research dashboards, returning headlines aggregated from major publishers like CNBC, MarketWatch, Yahoo Finance, Benzinga, and the Wall Street Journal. Pair it with the Stock Price or Earnings APIs to correlate news with price moves and reporting dates.
  • Pass the ticker parameter with a single symbol (e.g. AAPL) or a comma-separated list (e.g. AAPL,MSFT,TSLA); omit it to get the latest news across all publishers. To narrow by time, use date for a single UTC day in YYYY-MM-DD format, or the start_date/end_date pair for an inclusive range, and resolve symbols first with the Ticker API if needed.
  • Each headline object includes title, the canonical article url, a publisher source slug (e.g. cnbc, benzinga), a published Unix timestamp in seconds, a tickers array of associated symbols, and an author field that may be null. See error codes for the response returned when a request is unsuccessful.
  • This is a Premium-only endpoint that returns up to 50 of the most recent headlines sorted newest first; use the offset parameter (default 0, maximum 10000) to page through additional results in increments of 50. See pricing for premium access details, or browse the full catalog at API Ninjas APIs.