How to build a weekly stock sentiment report with two API requests

Two requests return everything a weekly report needs: the ranking of stocks and the market per source. The free plan is enough.

TutorialPublished SentiStream

Draft.This page is not published yet and can still change.

The short version

  • Request 1: /v1/tickers/trending returns up to 100 stocks, ordered by buzz score.
  • Request 2: /v1/market/sentiment returns one market per source.
  • The period is seven days that end today. A week that ended earlier is an invalid period.
  • The two sentiment lists are a sort of the ranking by sentimentScore.
Requests
2
Plan
Free
Period
7 days, ending today

What you need

You need an API key. The free plan is enough: it has 250 requests a month, reads the top 100 of the ranking and reaches 30 days back. Send the key in the X-API-Key header.

Request the ranking

GET /v1/tickers/trending returns the stocks of a period, ordered by buzz score. Ask for seven days that end today, for stocks only and for 100 positions.

curl "https://api.sentistream.dev/v1/tickers/trending?from=2026-11-07&to=2026-11-13&assetType=stock&limit=100" \
  -H "X-API-Key: $SENTISTREAM_API_KEY"

Each entry of results has these fields, among others:

Fields of a ranking entry
Field Value
entity The company, with name and ticker
buzzScore 0 to 100. The ranking is ordered by it
mentions The number of mentions in the period
sentimentScore −1, bearish, to +1, bullish. It can be null
trend rising, falling or stable

total is the number of ranked stocks, and period echoes the days.

Request the market

GET /v1/market/sentiment returns one market per source in markets. There is no market over all sources and none for Polymarket.

curl "https://api.sentistream.dev/v1/market/sentiment?from=2026-11-07&to=2026-11-13" \
  -H "X-API-Key: $SENTISTREAM_API_KEY"

marketBuzz runs from 0 to 100. 50 is a normal day, the median of the last 90 days. The number measures attention and says nothing about direction. bullishPct and bearishPct run from 0 to 1, and history holds the market buzz per day.

Build the lists

The ranking already is the list of the most discussed stocks. For the strongest and the weakest sentiment, drop the entries without a score and sort the rest.

const api = 'https://api.sentistream.dev/v1';
const headers = { 'X-API-Key': process.env.SENTISTREAM_API_KEY };
const day = (offset) => new Date(Date.now() - offset * 86_400_000).toISOString().slice(0, 10);
const [from, to] = [day(6), day(0)];

const get = async (path) => {
  const response = await fetch(api + path, { headers });
  if (!response.ok) throw new Error(`${path}: ${response.status}`);
  return response.json();
};
const ranking = await get(`/tickers/trending?from=${from}&to=${to}&assetType=stock&limit=100`);
const market = await get(`/market/sentiment?from=${from}&to=${to}`);

const scored = ranking.results
  .filter((row) => row.sentimentScore !== null)
  .sort((a, b) => b.sentimentScore - a.sentimentScore);
const tickers = (rows) => rows.map((row) => row.entity.ticker);

console.log('most discussed', tickers(ranking.results.slice(0, 5)));
console.log('strongest', tickers(scored.slice(0, 5)));
console.log('weakest', tickers(scored.slice(-5).reverse()));
console.log('markets', market.markets.map((m) => [m.platform, m.marketBuzz, m.bullishPct]));

Limits to know

  • The period ends today. The API accepts 1, 7, 30 or 90 days that end today, or one single past day. Anything else is answered with invalid_period.
  • The plan sets the history. Free reaches 30 days back, Hobby, Pro and Pro Max 90. A period beyond that is answered with plan_history_limit.
  • 100 positions per request. limit runs from 1 to 100.

The sentiment figures of the weekly reports on this site come from exactly these two requests.

Questions

Can I request a week that ended last Sunday?

No. A period of several days has to end today. The API accepts 1, 7, 30 or 90 days that end today, or one single past day. Anything else is answered with invalid_period.

Why is there no market for Polymarket?

The API computes the market sentiment for sources with mentions, such as financial news, Reddit, X and Bluesky. A request for the market of Polymarket is answered with invalid_request.

How many requests does a weekly report cost?

Two. The free plan has 250 requests a month.