Reference
Sources
The sources you can search, and the page types and topics you can filter by.
Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)
GET https://api.millionshort.com/v1/sourcesReturns the source slugs that sources accepts in a search, how fresh each source is, which filters each source applies, and the values that page_types, topics, traffic_trend and popularity_buckets accept. The call is free. It needs an API key.
The sources
| Slug | What it contains | Heavy |
|---|---|---|
web | The general web: Billions+ pages on our own independent index. | Yes |
news | News articles, refreshed through the day. | |
smallweb | Personal sites, blogs and small independent publishers. | Yes |
discussions | Forum threads and community conversations in one search. | Yes |
hn | Technology links and the comment threads around them. | Yes |
social | Recent public posts from open social networks. | Yes |
communities | Public chat communities, by name, topic and size. | |
podcasts | Podcast shows and episodes. | |
academic | Scholarly papers and preprints. | |
medical | Biomedical and clinical literature. | |
law | Statutes, regulations and court opinions (United States). | |
finance | Public-company filings and disclosures. | |
contracts | Government contract opportunities and awards. |
One search can cover up to five of these. "Heavy" sources have their own per-minute limit on each plan; see Credits and limits.
The table above is a guide. The response of GET /v1/sources is the authority: read the list from there if your code depends on it.
Request
curl https://api.millionshort.com/v1/sources \
-H "Authorization: Bearer $MILLIONSHORT_API_KEY"import os
import requests
r = requests.get(
"https://api.millionshort.com/v1/sources",
headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
timeout=30,
)
r.raise_for_status()
print(r.json()["data"])const res = await fetch('https://api.millionshort.com/v1/sources', {
headers: { Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}` },
});
if (!res.ok) throw new Error(`GET /v1/sources failed: ${res.status}`);
const { data } = (await res.json()) as { data: unknown };
console.log(data);The same call as a tool of the MCP server:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_sources",
"arguments": {}
}
}Response
data holds these lists:
| Field | Type | Notes |
|---|---|---|
sources | array of objects | |
page_types | array of objects | |
topics | array of objects | |
traffic_trends | array of objects | The values traffic_trend accepts. |
popularity_buckets | array of top-100, top-1k, top-10k, top-100k, top-1m, long-tail | The values popularity_buckets accepts. |
A source has a slug, a one-line description, its freshness and the filters it applies. A page type, a topic or a traffic trend has a slug and a label.
freshness:
| Field | Type | Notes |
|---|---|---|
cadence | minutes, hourly, twice_daily, daily, weekly, snapshot | How often new material arrives. |
description | string | |
captured_from | string | Snapshot sources: the first day its pages were captured. |
captured_to | string | Snapshot sources: the last day its pages were captured. |
filters is the list of search request fields the source applies. A filter you send to a source that does not list it is not applied to that source's results, and the search response says so in a filter_not_applied warning.
{
"data": {
"sources": [
{
"slug": "web",
"description": "...",
"freshness": { "cadence": "snapshot", "description": "...", "captured_from": "2026-01-05", "captured_to": "2026-03-20" },
"filters": ["include_domains", "exclude_domains", "language", "country", "page_types", "topics", "include_content"]
},
{
"slug": "news",
"description": "...",
"freshness": { "cadence": "hourly", "description": "New articles arrive every hour." },
"filters": ["include_domains", "exclude_domains", "start_date", "end_date", "language", "country", "page_types", "topics", "include_content"]
}
],
"page_types": [
{ "slug": "articles", "label": "Article" },
{ "slug": "documentation", "label": "Documentation" },
{ "slug": "tutorials", "label": "Tutorial" }
],
"topics": [
{ "slug": "programming", "label": "Programming" },
{ "slug": "science", "label": "Science" }
],
"traffic_trends": [
{ "slug": "rising", "label": "Visits to the site are growing" }
],
"popularity_buckets": ["top-100", "top-1k", "top-10k", "top-100k", "top-1m", "long-tail"]
},
"usage": { "credits": 0, "cost_usd": 0, "breakdown": {} },
"request_id": "req_..."
}The lists above are cut short, the filters lists too: the real ones also name the site filters and the exclude, boost and bury lists. Pass a page-type or topic slug to a search to keep only matching results:
curl https://api.millionshort.com/v1/search \
-H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "query": "memory safety", "page_types": ["documentation"], "topics": ["programming"] }'import os
import requests
r = requests.post(
"https://api.millionshort.com/v1/search",
headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
json={
"query": "memory safety",
"page_types": [
"documentation"
],
"topics": [
"programming"
]
},
timeout=30,
)
r.raise_for_status()
for hit in r.json()["data"]["results"]:
print(hit["position"], hit["title"], hit["url"])const res = await fetch('https://api.millionshort.com/v1/search', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"query": "memory safety",
"page_types": [
"documentation"
],
"topics": [
"programming"
]
}),
});
if (!res.ok) throw new Error(`POST /v1/search failed: ${res.status}`);
const { data } = (await res.json()) as {
data: { results: { position: number; title: string; url: string }[] };
};
for (const hit of data.results) console.log(hit.position, hit.title, hit.url);The same call as a tool of the MCP server:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search",
"arguments": {
"query": "memory safety",
"page_types": [
"documentation"
],
"topics": [
"programming"
]
}
}
}With the SDKs and MCP
import os
from millionshort import MillionShort
client = MillionShort(api_key=os.environ["MILLIONSHORT_API_KEY"])
catalog = client.list_sources()
for source in catalog.sources:
print(source["slug"], source["description"])import { MillionShort } from 'millionshort';
const client = new MillionShort({ apiKey: process.env.MILLIONSHORT_API_KEY });
const catalog = await client.listSources();
for (const source of catalog.sources) {
console.log(source.slug, source.description);
}Over MCP the same list is the list_sources tool. Without a key the tool still answers, with the names of the sources only.