Real-Time API for Financial News

Real-time Finance News API using the JSON payload to extract dynamic financial data

{
    "pagination": {
     "limit": 25,
    "offset": 0,
    "count": 25,
    "total": 10000
    },
	"data": [
    {
        "title": "AT&T: Best Investment For 
Investors Seeking Value And Growth"
, "url": "https://seekingalpha.com/
article/4457821-at-and
-t-value-and-growth"
, "description": "AT&T and Discovery
merger provides investors with
the potential for valuation and
dividend appreciation. See more
on how this merger can boost T
stock here."
, "source": "seekingalpha.com", "tickers": [ "dis", "disca", "discb", "disck", "nflx", "tmus", "vz" ], "tags": [ "Business", "Communication Services", "Consumer Cyclical", "Dis", "Disca", "Discb", "Disck", "Nflx", "Stock", "T", "Tmus", "Vz" ], "published_at": "2021-09-30T14:53:
42+00:00"
}, {...} ] }

Trusted by thousands
of developers worldwide

Gorillaz Tal Tech Wanderlust Much Better Adventures Fx Skross Xero One Finestay

Trusted by thousands of developers worldwide

Your trusted partner for real-time finance news

Real Time Data

Real-Time News and Data

Tap into a Simple API for finance news from hundreds of sources updated in real time. Come for the data, stay for the insights.
Simple Scalable

Simple and Scalable

Connect to 100+ financial markets via one integration and get up to data stock quotes! With our API you can embed live finance news and article feeds on any website or application.
Financial Facts

Over 100,000 financial facts

Gain access to financial news, stock quotes, government economic reports, company financials and more, aggregated in an easy to parse structured format.
World

Real-time and historical data

The API covers global financial data across the board — from a multi-year history all the way to real-time news.

Get easy access to financial news data from hundreds of sources worldwide

  • Real-time financial data
  • Historical financial data
  • Reliable data sources
  • Scalable infrastructure
  • Extensive API Documentation
Map

Code Samples

The financelayer news API supports any client and server-side programming language. We have prepared code examples for the languages PHP, Python, jQuery, Go and Ruby.
$queryString = http_build_query([
  'access_key' => 'ACCESS_KEY',
  'keywords' => 'bitcoin etherum 2021 -etherum, // the word "etherum" will be removed
  sources => 'forbes.com,
  'sort' => asc,
]);

$ch = curl_init(sprintf('%s?%s', 'https://api.financelayer.com/v1/news', $queryString));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$json = curl_exec($ch);

curl_close($ch);

$apiResult = json_decode($json, true);

print_r($apiResult);
# Python 3
import http.client, urllib.parse

conn = http.client.HTTPConnection('api.financelayer.com')

params = urllib.parse.urlencode({
    'access_key': 'ACCESS_KEY',
    sources: '-forbes.com',
    'sort': 'desc',
    'limit': 10,
    })

conn.request('GET', '/v1/news?{}'.format(params))

res = conn.getresponse()
data = res.read()

print(data.decode('utf-8'))
$.ajax({
    url: 'https://api.financelayer.com/v1/news',
    data: {
      access_key: 'ACCESS_KEY',
      tags: 'bitcoin',
      limit: 30,
      offset: 30,
    }
  }).done(function(data) {
    console.log(JSON.parse(data));
});
require 'uri'
require 'net/http'

uri = URI('https://api.financelayer.com/v1/news')

params = {
    'access_key' => 'ACCESS_KEY',
    'keywords' => 'Bitcoin 2021 -etherum,
    sources => '-bloomberg.com,
    'sort' => asc,
}

uri.query = URI.encode_www_form(params)

response = Net::HTTP.get_response(uri)

puts response.read_body
package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.financelayer.com")

	baseURL.Path += "v1/news"

	params := url.Values{}
	// Access Key
	params.Add("access_key", "ACCESS_KEY")
	// Parameters
	params.Add("sources", "forbes.com, bloomberg.com")
	params.Add("keywords", "bitcoin,crypto")
	params.Add("tags", "-etherum") // It will exclude etherum results

	baseURL.RawQuery = params.Encode()

	req, _ := http.NewRequest("GET", baseURL.String(), nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()

	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(string(body))
}

API Documentation

Interested in our API? Please read below for detailed documentation and integration guide equipped with a
library with 100+ pre-written code examples that can get you going in minutes.

API Features

The full set of available real-time news articles can be accessed using a simple API request to the financelayer API's news endpoint. Below you will find an example API request as well as a series of optional parameters you can use to filter your news results.

Delayed news on Free Plan: Please note that accounts subscribed to the Free Plan will receive live news only with a 60-minute delay. To lift this limitation and get news in real-time, please sign up or upgrade to the Standard Plan or higher.

API Request:

GET https://api.financelayer.com/v1/news
	? access_key = API_KEY
	& keywords = salesforce
	& sources = forbes.com
Sign up for the Free Trial to get instant access to different finance data