Search tech news stories by keyword

Searches stories by keyword, filtered by time window and minimum points, sorted by relevance or date.

Request

GEThttps://tech-news.p.apihiver.com/v1/search?q=python&limit=3
*
String. Keywords, e.g. 'rust', 'openai', 'kubernetes'.
String. How far back: 1h, 6h, 12h, 1d, 3d, 1w, 2w, 1m, 3m, 1y (default 1m).
String. newest or relevance (default newest).
Number. Only stories with at least this many upvotes (0–10000, default 0).
Number. Maximum number of results (1–100, default 20).
Language
Client
1curl --request GET \
2  --url 'https://tech-news.p.apihiver.com/v1/search?q=python&timespan=%7Btimespan%7D&sort=%7Bsort%7D&min_points=%7Bmin_points%7D&limit=3' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Search tech news stories by keyword: Tech News API reference

Searches stories by keyword, filtered by time window and minimum points, sorted by relevance or date. This endpoint is part of the Tech News API: Top, new and best tech stories from Hacker News, full-text news search, story details with comments, and Ask/Show HN.

Example response (200, application/json)

Success.

1{
2  "count": 3,
3  "query": "python",
4  "source": "Hacker News (search by Algolia)",
5  "stories": [
6    {
7      "url": "https://github.com/XEonAX/blender-copilot",
8      "title": "Show HN: Blender Copilot",
9      "author": "xeonax",
10      "points": 1,
11      "comments": 0,
12      "published_at": "2026-09-26T18:06:59+00:00",
13      "discussion_url": "https://news.ycombinator.com/item?id=49859013"
14    },
15    {
16      "url": "https://github.com/jaredks/rumps",
17      "title": "Rumps – Uncomplicated macOS Python Statusbar Apps",
18      "author": "gregsadetsky",
19      "points": 2,
20      "comments": 0,
21      "published_at": "2026-09-26T17:44:05+00:00",
22      "discussion_url": "https://news.ycombinator.com/item?id=49858815"
23    },
24    {
25      "url": "https://gist.github.com/nicobrenner/056a5aaff5d0119c0032ecdad5029557",
26      "title": "Show HN: A local alternative to Jev – 94% on Banking77",
27      "author": "nico",
28      "points": 1,
29      "comments": 0,
30      "published_at": "2026-09-26T17:41:51+00:00",
31      "discussion_url": "https://news.ycombinator.com/item?id=49858795"
32    }
33  ],
34  "total_matches": 229
35}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "q: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.