We could not find a public developer key on any Seeking Alpha site, so a Seeking Alpha API in practice means reading the pages and feeds the site already gives to anyone who is not signed in. This repo does that through ScrapingBee and stops at the edge of what a logged out visitor sees. Three public surfaces cover most research jobs, and each one costs 1 credit per request:
| Surface | Example URL | What comes back | Read with |
|---|---|---|---|
| Official RSS feeds | /api/sa/combined/AAPL.xml |
30 latest items per ticker, with tickers and author | xml.etree |
| Symbol page | /symbol/AAPL |
price, change, 52 week range, about 57 visible key figures, company profile | extract_rules |
| Headline lists | /symbol/AAPL/news, /symbol/AAPL/analysis, /market-news |
40 (or 25) headlines per page with date, author, tickers, comment count | window.SSR_DATA |
Everything here was measured on 2026-11-24 against the US site, with render_js=false.
pip install requests
export SCRAPINGBEE_API_KEY=your_key
python examples/seeking_alpha.py snapshot AAPL KO SPY MSFTAAPL Apple Inc. 349.08 6.52 ( +1.90% ) cap $5.07T PE fwd 37.06 52w 243.42 360.83 57 facts, 5 locked rating badges
KO The Coca-Cola Company 95.88 -1.11 ( -1.14% ) cap $412.47B PE fwd 28.62 52w 67.27 100.56 57 facts, 5 locked rating badges
SPY State Street SPDR S&P 500 ET 722.29 32.48 ( +4.71% ) cap - PE fwd - 52w 629.28 781.62 19 facts, 1 locked rating badges
MSFT Microsoft Corporation 492.5 7.98 ( +1.65% ) cap $3.66T PE fwd 24.59 52w 349.20 559.15 57 facts, 5 locked rating badges
The "locked rating badges" count is there on purpose. Seeking Alpha's quant and factor grades sit behind a padlock for logged out visitors, and the client counts the padlocks instead of trying to read what is under them.
| File | Job | Credits |
|---|---|---|
examples/seeking_alpha.py |
SeekingAlphaClient: snapshot, news, analysis, market_news, rss; three dataclasses; CLI with --csv and --json |
1 per page |
examples/sa_rss_watch.py |
polls the official feeds for a watchlist, dedupes by guid, appends only new items to a CSV | 1 per feed per round |
examples/sa_market_news.js |
Node 18, /market-news pages through extract_rules, one JSON line per headline |
1 per page |
People searching for a Seeking Alpha API key usually want one of two things, and only one of them is real.
A key from Seeking Alpha itself. We looked for a developer portal, an API product page or a key request form on seekingalpha.com, about.seekingalpha.com and help.seekingalpha.com and found none on 2026-11-24. The only API keys their help centre mentions are for linking a brokerage: to connect an Ally account you create a personal application under "Ally Invest API" and paste its consumer key, consumer secret and OAuth tokens into Seeking Alpha. Those are Ally Invest credentials, not a key to Seeking Alpha data. Paths such as /api/v3/account do appear in their robots.txt, but they are the site's private backend, several are explicitly disallowed, and this repo does not call any of them. If you need licensed Seeking Alpha data at volume, ask Seeking Alpha directly.
A ScrapingBee API key. This is the key every example here reads from SCRAPINGBEE_API_KEY. It authenticates you to ScrapingBee, which then fetches the public Seeking Alpha page for you. A new account comes with 1,000 free credits, and plans are on the pricing page. The key goes in an Authorization: Bearer header, as the HTML API documentation shows:
curl -G "https://app.scrapingbee.com/api/v1/" \
-H "Authorization: Bearer $SCRAPINGBEE_API_KEY" \
--data-urlencode "url=https://seekingalpha.com/api/sa/combined/AAPL.xml" \
-d render_js=falseKeep that key out of prompts you send to AI coding assistants and out of committed files.
Fetched through ScrapingBee with render_js=false (1 credit). The User-agent: * group is short, and nothing this repo requests is in it:
User-agent: *
Disallow: /api/v3/account
Disallow: /api/v3/breaking_news
Disallow: /authentication
Disallow: /search
Disallow: /zuora
...
Sitemap: https://seekingalpha.com/symbol/sitemap_index.xml
Two consequences for the code. The site search at /search is off limits, so every function takes a ticker you already know; the symbol sitemap above is the allowed way to build a ticker list. And the long tail of the file names 101 crawlers (Scrapy, GPTBot, CCBot, Diffbot and others) with Disallow: /. If you reuse this code inside a crawler that identifies as one of those, respect that block.
Seeking Alpha publishes its feeds on an official page, about.seekingalpha.com/feeds, and the /market-news page advertises one in its <head>:
<link rel="alternate" type="application/rss+xml" title="Seeking Alpha: Breaking Stock Market & Investing News" href="https://seekingalpha.com/market-news.xml">The feeds that page links, and what we got back from each:
| Feed | Path | Items on 2026-11-24 |
|---|---|---|
| One ticker | /api/sa/combined/AAPL.xml |
30 |
| Latest articles | /feed.xml |
30 |
| All news | /market_currents.xml |
7 |
| Market news | /market-news.xml |
linked from /market-news |
| Most popular, long ideas, IPO analysis, transcripts, Wall Street Breakfast, editor's picks | /listing/..., /tag/..., /sector/... |
not counted |
The per ticker feed uses its own sa: namespace for the byline and the tagged stocks:
<rss xmlns:sa="https://seekingalpha.com/api/1.0" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<item>
<title>SA analyst upgrades/downgrades: NVDA, CMCSA, ANET, AAPL</title>
<link>https://seekingalpha.com/symbol/AAPL/news?source=feed_symbol_AAPL</link>
<guid isPermaLink="false">https://seekingalpha.com/MarketCurrent:4675687</guid>
<pubDate>Mon, 23 Nov 2026 11:04:47 -0500</pubDate>
<sa:author_name>Tiyashi Datta</sa:author_name>
<sa:stock>
<sa:symbol>AAPL</sa:symbol>
<sa:company_name>Apple Inc.</sa:company_name>
</sa:stock>Three quirks shaped the parser. In the ticker feed, <link> points at the ticker's news tab rather than the story, so the guid (MarketCurrent:<id> for news) is the only stable key. In /feed.xml, tickers and authors both arrive as <category>, told apart by type="symbol" or type="author". In /market_currents.xml, the ticker categories carry a domain= link instead of a type.
Every feed's <description> carries the same licence line: use is limited to personal, non commercial use under Seeking Alpha's Terms of Use, and republishing the feed is prohibited. That is the rule for anything you build on these feeds.
from seeking_alpha import SeekingAlphaClient
sa = SeekingAlphaClient()
for item in sa.rss("AAPL")[:3]:
print(item.published, item.tickers, item.title)Mon, 23 Nov 2026 15:09:08 -0500 AAPL Apple plans to release Product (RED) devices ahead of holidays: report
Mon, 23 Nov 2026 11:04:47 -0500 AAPL CMCSA NVDA ANET SA analyst upgrades/downgrades: NVDA, CMCSA, ANET, AAPL
Sat, 21 Nov 2026 11:03:59 -0500 AAPL DUK BA KO MRK TSM DDD META DKNG CTVA Insider trades: Apple, Meta, Coca-Cola among notable names
sa_rss_watch.py reads one feed per ticker each round and keeps the guids it has seen in sa_seen.json. Two rounds, four minutes apart, three tickers plus the all news feed:
python examples/sa_rss_watch.py AAPL MSFT KO --extra all-news --rounds 2 --interval 240round 1/2
AAPL 30 items, 30 new
KO 30 items, 28 new
MSFT 30 items, 29 new
all-news 7 items, 7 new
round 2/2
AAPL 30 items, 0 new
KO 30 items, 0 new
MSFT 30 items, 0 new
all-news 7 items, 7 new
baseline: 94 items; watchlist mentions {'AAPL': 31, 'KO': 30, 'MSFT': 33}; 4 credits so far
new: 7 items; watchlist mentions {}; 8 credits so far
KO and MSFT showed 28 and 29 new items, not 30, because a story tagged with several tickers appears in each of their feeds and is counted once. The all news feed is the other lesson: it holds only 7 items, and all 7 had turned over within four minutes on a weekday morning. Polling it every five minutes will miss stories. For a complete news log, page through /market-news instead (next section) at 25 headlines per credit.
/symbol/AAPL is server rendered. With render_js=false the 800 KB HTML already holds the price block and every key/value card, each tagged with a data-test-id. Trimmed from the response, Tailwind classes removed:
<span data-test-id="symbol-price">$<!-- -->349.08</span>
<span data-test-id="symbol-change">6.52<!-- --> <!-- -->(<!-- -->+1.90%<!-- -->)</span>
<span data-test-id="symbol-date">4:00 PM 11/23/26</span>
...
<dl data-test-id="key-data-list">
<div data-test-id="card-item"><dt data-test-id="key-title">EPS (FWD)</dt><dd data-test-id="value-title">9.42</dd></div>
<div data-test-id="card-item"><dt data-test-id="key-title">PE (FWD)</dt><dd data-test-id="value-title">37.06</dd></div>
...
<div data-test-id="company-profile-employees"><dt data-test-id="key-title">Employees</dt><dd data-test-id="value-title">167,000</dd></div>
...
<div data-test-id="card-lock-rating-label">Rating:</div>
<button data-test-id="lock-wrapper" type="button"><span data-test-id="card-rating">
<svg data-test-id="quant-badge-lock-icon" aria-hidden="true"><use href="/samw/images/sprite-38d5099b.svg#lock-filled"></use></svg>
<span><span>view ratings</span></span></span></button>Because every card is a dt/dd pair inside [data-test-id=card-item], one list rule picks up all of them, and ScrapingBee's data extraction returns JSON instead of the HTML:
SNAPSHOT_RULES = {
"heading": "[data-test-id=symbol-name] h1",
"price": "[data-test-id=symbol-price]",
"change": "[data-test-id=symbol-change]",
"as_of": "[data-test-id=symbol-date]",
"session": "[data-test-id=symbol-description]",
"facts": {
"selector": "[data-test-id=card-item]",
"type": "list",
"output": {"key": "dt", "value": "dd"},
},
"profile": {
"selector": "div[data-test-id^=company-profile-]:has(> dt)",
"type": "list",
"output": {"key": "dt", "value": "dd"},
},
"locked_badges": {
"selector": "[data-test-id=quant-badge-lock-icon]",
"type": "list",
"output": "@data-test-id",
},
}The raw response for AAPL, cut short:
{
"heading": "AAPL - Apple Inc. Stock Price & Overview",
"price": "$ 349.08",
"change": "6.52 ( +1.90% )",
"as_of": "4:00 PM 11/23/26",
"session": "NASDAQ | $USD | Pre-Market: $347.14 -1.94 ( -0.56% ) 8:32 AM",
"facts": [
{"key": "52 Week Range", "value": "243.42 360.83"},
{"key": "Day Range", "value": "345.44 352.60"},
{"key": "Market Cap", "value": "$5.07T"},
{"key": "FY1 Up Revisions", "value": "10"},
{"key": "FY1 Down Revisions", "value": "23"},
{"key": "Altman Z Score", "value": "11.08"}
],
"profile": [
{"key": "Sector", "value": "Information Technology"},
{"key": "Founded", "value": "1976"},
{"key": "Website", "value": "www.apple.com"}
],
"locked_badges": ["quant-badge-lock-icon", "quant-badge-lock-icon", "quant-badge-lock-icon", "quant-badge-lock-icon", "quant-badge-lock-icon"]
}The list came back with 59 rows for AAPL. Some cards repeat a key (Volume and Short Interest each appear twice), so snapshot() keeps the first value per key and ends up with 57. An ETF page carries far fewer cards: SPY gave 19.
The values are display strings ($5.07T, 0.31%). The client converts only the price to a float and leaves the rest as the page shows them, since the unit suffixes differ from card to card.
News and analysis tabs are server rendered too, and the server also embeds the list it rendered as a JSON object near the end of the HTML:
<script>window.SSR_DATA = {"marketNews":{"response":{"data":[{"id":"4676116","type":"news","attributes":{"content":"...","title":"Eli Lilly going all-in on oncology deals: Bloomberg", ...That object is easier to parse than the markup, and it is part of the page a logged out visitor downloads. Its shape, for /symbol/AAPL/news?page=2:
| Key | Holds |
|---|---|
news.response.data[] |
40 items: id, type, attributes.title, publishOn, commentCount, isPaywalled, isLockedPro, content, links.self |
news.response.included[] |
the authors (newsAuthorUser or author, name in nick) and tickers (tag, symbol in name) the items point to |
news.response.meta.page |
size 40, totalPages 225, total 8968 |
news.params.page.number |
which page the server rendered, so you can confirm ?page=2 was honoured |
/market-news uses the key marketNews with 25 per page (473 pages on the day), and /symbol/AAPL/analysis uses analysis with 40 per page. The JSON-LD on /market-news is only a breadcrumb, so it is not used.
Parsing the object means finding the marker and letting the JSON decoder stop at the end of the literal:
def _ssr_data(html: str) -> dict:
marker = "window.SSR_DATA = "
start = html.find(marker)
if start < 0:
raise SeekingAlphaError("no window.SSR_DATA in the page")
obj, _ = json.JSONDecoder().raw_decode(html, start + len(marker))
return objThe content field is dropped on purpose. On news items it holds the story HTML, and most of that HTML is wrapped in <span class="paywall-full-content invisible"> or <p class="paywall-full-content invisible">, text the page ships but hides from visitors. In our samples 117 of 120 news items on ticker pages carried those spans. The client reads titles and metadata only and never stores content. Analysis items have no content at all in the list, and the client never opens /article/... pages.
Do not rely on isPaywalled and isLockedPro to tell you what is free. They were false on all 200 rows we checked across AAPL, AMZN and META, including news items whose content was mostly hidden text. The client keeps them as columns, but only as what the payload says.
python examples/seeking_alpha.py news AAPL --pages 2 --csv aapl_news.csv
python examples/seeking_alpha.py analysis NVDA --json nvda_analysis.json
python examples/seeking_alpha.py market-news --pages 3 /symbol/AAPL/news page 1/225: 40 rows, 40 new
/symbol/AAPL/news page 2/225: 40 rows, 40 new
80 rows, 2 credits
id,kind,title,url,published,author,tickers,comments,is_paywalled,is_locked_pro
4675784,news,Apple plans to release Product (RED) devices ahead of holidays: report,https://seekingalpha.com/news/4675784-apple-plans-to-release-product-red-devices-ahead-of-holidays-report,2026-11-23T15:09:08-05:00,"Brandon Evans, SA News Editor",AAPL,7,False,FalseOne analysis row as JSON:
{
"id": "4971414",
"kind": "article",
"title": "Nvidia: For The First Time, I Don't Know What To Do (Rating Downgrade)",
"url": "https://seekingalpha.com/article/4971414-nvidia-for-the-first-time-i-dont-know-what-to-do-rating-downgrade",
"published": "2026-11-24T08:00:37-05:00",
"author": "Julia Ostian",
"tickers": "NVDA",
"comments": 10,
"is_paywalled": false,
"is_locked_pro": false
}The market news run returned 75 rows for 3 credits, 25 per page, with no overlap between pages. On a busy morning a headline can slide from page 1 to page 2 between two requests; the client dedupes on id and prints new per page so you can see it happen.
We started at the cheapest tier and moved up. All three tiers returned the full page with window.SSR_DATA in it:
| Parameters | Credits | Requests | Full page | Refused |
|---|---|---|---|---|
render_js=false |
1 | 22 | 20 | 2 (spb-initial-status-code: 403, returned as HTTP 500, 0 credits) |
render_js=false&premium_proxy=true&country_code=us |
10 | 5 | 5 | 0 |
render_js=true |
5 | 2 | 2 | 0 |
So the classic tier is the right default. The two refusals came on symbol news tabs, and retrying the same URL at 1 credit worked both times. ScrapingBee does not bill a 500, so _get() retries it, and after two refusals in a row for the same URL it switches that URL to premium_proxy at 10 credits. A 200 that does not contain the expected data is billed, so every call also passes a check (window.SSR_DATA present, a price in the extract, <rss at the top of a feed) before it is accepted:
for attempt in range(1, self.max_attempts + 1):
if refusals >= self.escalate_after:
params.update(premium_proxy="true", country_code="us")
resp = self.session.get(API, params=params, timeout=self.timeout)
self.credits += int(resp.headers.get("spb-cost", 0) or 0)
if resp.status_code == 200:
if check is None or check(resp):
return resp
last = "billed 200 without the expected data"
elif resp.status_code == 500:
refusals += 1
last = f"500, target said {resp.headers.get('spb-initial-status-code', '?')}"
else:
raise SeekingAlphaError(f"{resp.status_code} {resp.text[:200]}")
time.sleep(min(2 * attempt, 8))JavaScript rendering adds nothing here: the data is in the HTML before any script runs. That also means no js_scenario is needed. Pagination is a plain ?page=N link in the page's own pager:
<nav aria-label="Pagination" data-test-id="pagination">
<a data-test-id="page-button" href="https://seekingalpha.com/market-news?page=2" target="_self">2</a>All runs above went out on ScrapingBee's default classic proxies; we did not compare exit countries. The symbol record in SSR_DATA states the listing currency ("currency":"USD" for AAPL), and the premium fallback pins country_code=us so a retried page matches the others.
sa_market_news.js takes the DOM route on /market-news. Each headline is an <article data-test-id="post-list-item">:
<article data-test-id="post-list-item"><h3><a href="/news/4676116-eli-lilly-going-all-in-on-oncology-deals-bloomberg#source=...">Eli Lilly going all-in on oncology deals: Bloomberg</a></h3>
<a href="/symbol/LLY#source=..."><span>LLY</span> <span data-test-id="item-value">+1.30%</span></a>
<time data-test-id="post-list-date" dateTime="2026-11-24T08:27:14-05:00">Today, 8:27 AM</time>const RULES = {
items: {
selector: "article[data-test-id=post-list-item]",
type: "list",
output: {
title: "h3 a",
href: "h3 a@href",
time: "time@datetime",
tickers: { selector: 'a[href^="/symbol/"] > span:first-child', type: "list" },
moves: { selector: "[data-test-id=item-value]", type: "list" },
},
},
next: "[data-test-id=next-button]@href",
};node examples/sa_market_news.js 2{"id":"4676132","time":"2026-11-24T08:38:50-05:00","tickers":["KSS"],"moves":["-4.72%"],"title":"Kohl's advances 8% in premarket after Q3 beat, outlook raised","url":"https://seekingalpha.com/news/4676132-kohls-advances-8-in-premarket-after-q3-beat-outlook-raised"}
{"id":"4676131","time":"2026-11-24T08:37:09-05:00","tickers":["ANF"],"moves":["+1.83%"],"title":"Abercrombie & Fitch rises 10% in premarket on better-than-expected results","url":"https://seekingalpha.com/news/4676131-abercrombie-fitch-rises-10-in-premarket-on-better-than-expected-results"}
50 headlines, 2 credits
Read moves with care. It is the percentage the list shows next to the ticker at fetch time, and before the open it did not match the premarket move in the headline (KSS at -4.72% next to "advances 8% in premarket"). Treat it as a display value and take prices from the symbol page.
Not read by anything in this repo:
- article bodies on
/article/...pages, and the hidden story text inside the news listcontentfield; - Quant ratings, factor grades and the other padlocked rating cards (counted, never read);
- earnings call transcripts beyond their headline in the feed;
- portfolios, alerts, comments posted under an account, and anything that needs signing in.
ScrapingBee's terms do not allow scraping behind a login, and Seeking Alpha's content terms apply to what you do with the public part, so check their Terms of Use before any commercial use. The source page lists earnings call data and analyst sentiment as common goals; from the logged out side, what you get is the transcript and analysis headlines, dates, authors and tickers, not the text or the ratings.
For other market sources: Yahoo Finance, Google Finance, Finviz, Nasdaq, SEC filings, financial news feeds and TradingView. If you need a page clicked or scrolled before extraction, see the JavaScript scenario docs; Seeking Alpha's public pages did not need it.
Does Seeking Alpha have an official API? We found no public developer API or self serve key on Seeking Alpha's own sites on 2026-11-24. What it does publish openly is a set of RSS feeds, listed on its feeds page, for personal non commercial use.
How do I get a Seeking Alpha API key? There is no Seeking Alpha key to request through a public form that we could find. The key in this repo is a ScrapingBee API key, which you get by creating a ScrapingBee account; the first 1,000 credits are free.
Is there a Seeking Alpha RSS feed for a single stock?
Yes. https://seekingalpha.com/api/sa/combined/<TICKER>.xml returns the 30 latest news and analysis items for that ticker, with author and tagged symbols. It is linked from Seeking Alpha's feeds page and costs 1 credit through ScrapingBee.
Can I scrape Seeking Alpha Premium articles or quant ratings? No. Those need a paid, signed in account, and ScrapingBee does not allow scraping behind a login. This repo reads headlines, dates, authors, tickers and the visible symbol cards only.
Why does my request come back as HTTP 500?
Seeking Alpha refused it with a 403. ScrapingBee does not charge for that, so retry. In our test 2 of 22 classic page requests were refused and both worked on a retry; the client also falls back to premium_proxy after two refusals.
How much does it cost to track 50 tickers every hour?
One feed per ticker per round is 50 credits an hour, 1,200 a day. Add one snapshot() per ticker if you also want the key figures, which doubles it.
MIT. See LICENSE.