api-ninjas-com Stock News API

The Stock News API returns the latest stock-market news headlines aggregated from major financial publishers, optionally filtered by one or more ticker symbols. Results are always sorted most recent first.

Operations 1

GET /v1/stocknews Get latest stock news headlines #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/api-ninjas-com:api-ninjas-com-stock-news-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

api-ninjas-com-stock-news-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas Stock News API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: Stock News
  description: The Stock News API returns the latest stock-market news headlines aggregated from major financial publishers, optionally filtered by one or more ticker symbols. Results are always sorted most recent first.
paths:
  /v1/stocknews:
    get:
      tags:
      - Stock News
      summary: Get latest stock news headlines
      description: Returns up to 50 of the latest stock-market news headlines, sorted most recent first. Optionally filter by one or more ticker symbols. This endpoint is available to premium subscribers only.
      operationId: getStockNews
      parameters:
      - name: ticker
        in: query
        description: Single ticker (e.g., AAPL) or comma-separated tickers (e.g., AAPL,MSFT). If omitted, the most recent news across all publishers is returned. Share classes and preferred shares can be written in any common form, e.g. BRK.B, BRK-B, BRK/B or BRKB, and BAC.PRL or BAC-PL.
        required: false
        schema:
          type: string
      - name: offset
        in: query
        description: Pagination offset. Each page has 50 results. Maximum 10000.
        required: false
        schema:
          type: integer
          default: 0
          minimum: 0
          maximum: 10000
      - name: date
        in: query
        description: Filter to a single calendar day (UTC). Format YYYY-MM-DD. Mutually exclusive with start_date/end_date.
        required: false
        schema:
          type: string
          format: date
      - name: start_date
        in: query
        description: Inclusive lower bound on published date (UTC). Format YYYY-MM-DD.
        required: false
        schema:
          type: string
          format: date
      - name: end_date
        in: query
        description: Inclusive upper bound on published date (UTC). Format YYYY-MM-DD.
        required: false
        schema:
          type: string
          format: date
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/StockNewsItem'
        '400':
          description: Bad Request (invalid parameters or non-premium subscriber)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockNewsOpenapi_ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockNewsOpenapi_ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockNewsOpenapi_ErrorResponse'
      security:
      - ApiKeyAuth: []
components:
  schemas:
    StockNewsItem:
      type: object
      properties:
        title:
          type: string
          description: Headline of the article.
        url:
          type: string
          description: Canonical URL of the article.
        source:
          type: string
          description: Canonical publisher slug (e.g., cnbc, benzinga, marketwatch).
        published:
          type: integer
          description: Unix timestamp (seconds since epoch) of when the article was published.
        tickers:
          type: array
          items:
            type: string
          description: Ticker symbols associated with the article.
        author:
          type:
          - string
          - 'null'
          description: Article author.
    StockNewsOpenapi_ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message describing the problem.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api