Skip to main content
GET
/
news
Get news articles
curl --request GET \
  --url https://api.financialdatasets.ai/news \
  --header 'X-API-KEY: <api-key>'
{
  "news": [
    {
      "ticker": "<string>",
      "title": "<string>",
      "source": "<string>",
      "date": "2023-12-25",
      "url": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.financialdatasets.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Market News API lets you pull recent broad market news. Articles cover macro, rates, earnings, geopolitics, energy, crypto, and other market-moving topics. They are sourced directly from publishers like The Motley Fool, Investing.com, Reuters, and more. We are actively adding more publishers to our network. If you have a publisher that you would like us to add, please email us at [email protected]. To get started, please create an account and grab your API key at financialdatasets.ai. You will use the API key to authenticate your API requests.

Getting Started

There are only 3 steps for making a successful API call:
  1. Add your API key to the header of the request as X-API-KEY.
  2. Omit the ticker query param to get broad market news. Optionally add limit to control the number of results.
  3. Execute the API request.

Example

Market News
import requests

# add your API key to the headers
headers = {
    "X-API-KEY": "your_api_key_here"
}

# omit ticker to get broad market news
limit = 10

# create the URL
url = (
    f'https://api.financialdatasets.ai/news'
    f'?limit={limit}'
)

# make API request
response = requests.get(url, headers=headers)

# parse market news from the response
news = response.json().get('news')

Authorizations

X-API-KEY
string
header
required

API key for authentication.

Query Parameters

ticker
string

The ticker symbol of the company. Omit for broad market news.

limit
integer
default:5

The maximum number of news articles to return (default: 5, max: 10).

Required range: x <= 10

Response

News articles response

news
object[]