A free stock news API with sentiment and topic tags (no API key)

a-free-stock-news-api-with-sentiment-and-topic-tags-(no-api-key)

Most “stock news API” tutorials start the same way: sign up, verify your email, paste a key into an env var, then find out the free tier gives you 100 calls a day. For a side project — a watchlist digest, a Discord bot, a dashboard widget — that’s a lot of ceremony.

I run Quotelinks, a free stock research site, and I built a small news API for it that skips all of that: plain JSON over HTTPS, no key, CORS enabled. This post shows what it returns and three small things you can build with it.

It’s for personal, non-commercial use, and it returns headlines and links, not article text. Full docs and a live preview: Quotelinks Stock News API.

The 10-second version

curl --compressed "https://api.quotelinks.com/v1/news/AAPL"

That’s the 50 newest articles about Apple, newest first. There’s one more endpoint:

Endpoint Returns
GET /v1/news/{symbol} The 50 newest articles about one stock
GET /v1/news/latest The 100 newest articles across all covered stocks

Coverage is about 10,000 US-listed stocks. Tickers are case-insensitive and share classes work with a dot or a dash (BRK.B, brk-b).

What an item looks like

Every article comes back with the same shape (values here are examples):

{
  "id": "3f9c1a7e52d04b8a",
  "published": "2026-11-19T06:40:00Z",
  "time_exact": true,
  "title": "Example headline about Apple",
  "url": "https://www.example.com/news/apple-example",
  "image_url": "https://www.example.com/images/apple.jpg",
  "image_type": "article",
  "publisher": { "name": "Example News", "domain": "example.com" },
  "symbols": ["AAPL"],
  "tags": ["product_launch"],
  "sentiment": { "score": 0.42, "label": "positive" }
}

The fields that make it more useful than a raw RSS feed:

  • id is stable. The same article has the same ID in every response, so deduplicating across tickers or across polls is a set lookup.
  • symbols can hold several tickers — a story about a merger is filed under both companies.
  • tags come from a fixed list of 22 topics: earnings, guidance, dividend, buyback, analyst_rating, merger_acquisition, insider_trade, fda, clinical_trial, price_move and so on. An item can have zero or several.
  • sentiment is a headline score from −1 to +1 with a label (positive at +0.05 or above, negative at −0.05 or below, otherwise neutral). It’s a rule-based VADER model with a finance word list, so “beats estimates” reads as positive. It describes the wording of the headline, not whether the stock is a good buy — treat it as a filter, not a signal to trade on.
  • time_exact tells you whether the publisher gave a real timestamp or only a date.

Duplicate stories from several feeds appear once, and templated junk (law-firm solicitations, promotional press releases) is filtered out before it gets to you.

There are no server-side filters for date, topic or sentiment. You get the list and filter it yourself, which is what the examples below do.

Example 1: a morning digest for your watchlist (Python)

Fetch a few tickers, drop anything older than 24 hours, deduplicate by id, and group by topic. Standard library only.

import json
import time
import urllib.request
from collections import defaultdict
from datetime import datetime, timedelta, timezone

WATCHLIST = ["AAPL", "MSFT", "NVDA", "JPM", "KO"]
API = "https://api.quotelinks.com/v1/news/{}"
since = datetime.now(timezone.utc) - timedelta(hours=24)

def get(symbol):
    req = urllib.request.Request(API.format(symbol),
                                 headers={"User-Agent": "watchlist-digest/1.0"})
    with urllib.request.urlopen(req, timeout=15) as r:
        return json.load(r)["items"]

seen, by_tag = set(), defaultdict(list)
for sym in WATCHLIST:
    for n in get(sym):
        published = datetime.fromisoformat(n["published"].replace("Z", "+00:00"))
        if published < since or n["id"] in seen:
            continue
        seen.add(n["id"])
        by_tag[n["tags"][0] if n["tags"] else "other"].append(n)
    time.sleep(0.6)  # stay under 2 requests per second

for tag, items in sorted(by_tag.items()):
    print(f"n== {tag} ({len(items)})")
    for n in items:
        label = n["sentiment"]["label"][:3]
        print(f"  [{label}] {', '.join(n['symbols'])}: {n['title']}")
        print(f"        {n['url']}")

Run it from cron at 7 a.m. and pipe it into an email, and you have a free news digest.

Example 2: the market-wide feed, filtered in the browser (JavaScript)

/v1/news/latest is a feed of the 100 newest articles across every covered stock. Because CORS is open, you can call it straight from a page:

const res = await fetch("https://api.quotelinks.com/v1/news/latest");
const { items } = await res.json();

// Dividend news only
const dividends = items.filter(n => n.tags.includes("dividend"));
for (const n of dividends) {
  console.log(n.published, n.symbols.join(","), n.title);
}

// How does the tape "feel" right now?
const mood = items.reduce((acc, n) => {
  acc[n.sentiment.label] = (acc[n.sentiment.label] || 0) + 1;
  return acc;
}, {});
console.log(mood); // e.g. { positive: 35, neutral: 33, negative: 32 }

Swap "dividend" for "analyst_rating" to get upgrades and downgrades, or "insider_trade" for director and officer trades.

Example 3: only show what’s new (polling the right way)

Responses are cached for up to five minutes, so polling more often than that just returns the same data. Poll every five minutes and use id to show only new headlines:

const seen = new Set();

async function poll(symbol) {
  const res = await fetch(`https://api.quotelinks.com/v1/news/${symbol}`);
  if (res.status === 429) {
    const wait = Number(res.headers.get("Retry-After") || 60);
    return setTimeout(() => poll(symbol), wait * 1000);
  }
  if (!res.ok) return; // 404 = unknown ticker or no news yet

  const { items } = await res.json();
  const fresh = items.filter(n => !seen.has(n.id));
  fresh.forEach(n => seen.add(n.id));
  // On the first run everything is "fresh"; after that, only new stories
  for (const n of fresh.reverse()) {
    console.log(`${n.sentiment.label.padEnd(8)} ${n.title}`);
  }
}

poll("TSLA");
setInterval(() => poll("TSLA"), 5 * 60 * 1000);

Limits and fine print

  • Rate limit: up to 2 requests per second per IP, or 10 per second with a free API key (?api_token=YOUR_KEY). Over the limit you get a 429 with Retry-After.
  • Errors are JSON: {"status":404,"message":"No news for this symbol"}.
  • Freshness: S&P 500 companies are checked every hour, other stocks at least once a day.
  • History: the symbol endpoint always returns the 50 newest items, so for a quiet stock that can reach back several months; for a busy one like NVDA, it’s a day or two.
  • Use: personal and non-commercial; no redistribution. Headlines, links and images belong to their publishers. Tickers, tags and sentiment are assigned automatically and can be wrong.

If you’d rather not write code

The same news shows up on the site — for example the NVIDIA news page and the market-wide news feed — next to quotes and charts on each stock page like NVDA.

The Stock News API docs have the full field reference, the tag list, a live preview where you can type a ticker and see the cards, and PHP examples. The other free APIs (SEC fundamentals, exchange rates, credit market data) are on the Quotelinks API page.

Feedback is welcome — especially headlines that got the wrong tag or a sentiment label that’s clearly off. It’s in beta and that’s exactly what I’m tuning.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
openai’s-chief-scientist-has-thoughts-on-how-to-limit-ai-development

OpenAI’s chief scientist has thoughts on how to limit AI development

Related Posts