Sources
Tech discussion
Technology links and the comment threads around them.
Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)
"sources": ["hn"]The hn source is technology discussion: shared links and the comment threads around them, from the last 30 days. Every result carries a date, and may carry a score and a comment count.
Good for
- What the technology community is talking about this week.
- Reactions to a launch, a paper, an outage or a licence change.
- Finding the link a thread is about:
extra.links_toholds it when there is one.
Not the place for
- Anything older than about a month.
- Subjects outside technology.
What a result carries
Every result has the same fields whatever the source; the Search reference lists them. What differs is which of them are filled in:
| Field | In this source |
|---|---|
published_date | Set on every result. |
page_type, topic | null. |
popularity | Usually unknown: the result is a thread, not a site. |
signals (with explain) | null values. why still explains the position. |
extra | kind (tech-news), author, points, comments, and links_to when the thread is about a link. |
The extra keys are what this source returns today. Treat every one of them as optional: read it if it is there.
Example queries
database migrationopen source licensingremote work
Ten threads with their date, score and comment count:
curl https://api.millionshort.com/v1/search \
-H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "open source licensing",
"sources": ["hn"],
"num_results": 10
}'import os
from millionshort import MillionShort
client = MillionShort(api_key=os.environ["MILLIONSHORT_API_KEY"])
r = client.search(
"open source licensing",
sources=["hn"],
num_results=10,
)
for hit in r.results:
print(hit["published_date"], hit["extra"].get("points"), hit["extra"].get("comments"), hit["title"])
print(r.usage.credits, "credit(s)")import { MillionShort } from 'millionshort';
const client = new MillionShort({ apiKey: process.env.MILLIONSHORT_API_KEY });
const r = await client.search('open source licensing', {
sources: ['hn'],
numResults: 10,
});
for (const hit of r.results) {
console.log(hit.published_date, hit.extra.points, hit.extra.comments, hit.title);
}
console.log(r.usage?.credits, 'credit(s)');The same call as a tool of the MCP server:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search",
"arguments": {
"query": "open source licensing",
"sources": [
"hn"
],
"num_results": 10
}
}
}Combine it with
web for the documentation or post under discussion, academic when the thread is about a paper. One call can ask up to five sources and returns one merged list; each result says which source it came from in source. See Mixture of Experts.
Cost and limits
A search of this source costs 1 credit, like every source, and covers the first 10 results of the call. It is one of the heavy sources: each plan has a lower per-minute limit for searches that include it. Credits and limits has the numbers.
With Monitor, a query monitor can watch this source, with a shortest interval of 15 minutes (5 on Scale and above).