Hacker News Search API
Returns Hacker News stories by relevance or date, single items, user profiles, front page stories and Show HN stories.
View as Markdown| GET | /hnsearch/search | Hacker News stories that match a query, most relevant first. |
| GET | /hnsearch/searchByDate | Hacker News stories that match a query, newest first. |
| GET | /hnsearch/item | One Hacker News story or comment by its id, with its direct replies counted. |
| GET | /hnsearch/user | A Hacker News user by username. |
| GET | /hnsearch/frontPage | Stories on the Hacker News front page right now, most popular first. |
| GET | /hnsearch/showHN | Show HN stories, most relevant first, or all of them without a query. |
| GET | /hnsearch/askHN | Ask HN stories, most relevant first, or all of them without a query. |
| GET | /hnsearch/comments | Hacker News comments that match a query, newest first; without a query, the newest comments. |
| GET | /hnsearch/authorStories | Stories one account submitted, newest first. |
| GET | /hnsearch/authorComments | Comments one account wrote, newest first. |
| GET | /hnsearch/jobs | Job posts on Hacker News, newest first, mostly the hiring posts of Y Combinator companies; a query filters them. |
| GET | /hnsearch/replies | The direct replies to one Hacker News story or comment, in the order the thread shows them; each reply counts its own replies. |
search
/v1/hnsearch/searchHacker News stories that match a query, most relevant first.
Parameters
querystring required | Words to search for in story titles, URLs and text. e.g. golang |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
commentCount | integer (int64) |
hnUrl | string |
id | string |
imageUrl | string |
points | integer (int64) |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/hnsearch/search?query=golang" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/search?query=golang", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/search?query=golang", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "withinboredom" }, "commentCount": 370, "hnUrl": "https://news.ycombinator.com/item?id=34179426", "id": "34179426", "imageUrl": "", "points": 806, "publishedAt": "2022-12-29T23:17:43Z", "source": "", "summary": "", "title": "Golang disables Nagle's Algorithm by default", "url": "https://withinboredom.info/blog/2022/12/29/golang-is-evil-on-shitty-networks/" }, { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "0xedb" }, "commentCount": 525, "hnUrl": "https://news.ycombinator.com/item?id=31205072", "id": "31205072", "imageUrl": "", "points": 748, "publishedAt": "2022-04-29T13:51:56Z", "source": "", "summary": "", "title": "Lies we tell ourselves to keep using Golang", "url": "https://fasterthanli.me/articles/lies-we-tell-ourselves-to-keep-using-golang" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
searchByDate
/v1/hnsearch/searchByDateHacker News stories that match a query, newest first.
Parameters
querystring required | Words to search for in story titles, URLs and text. e.g. golang |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
commentCount | integer (int64) |
hnUrl | string |
id | string |
imageUrl | string |
points | integer (int64) |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/hnsearch/searchByDate?query=golang" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/searchByDate?query=golang", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/searchByDate?query=golang", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "netil" }, "commentCount": 0, "hnUrl": "https://news.ycombinator.com/item?id=50378514", "id": "50378514", "imageUrl": "", "points": 1, "publishedAt": "2026-11-05T12:52:21Z", "source": "", "summary": "", "title": "Goyangi: Watch what Claude Code is doing, live", "url": "https://github.com/netil/goyangi" }, { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "Onavo" }, "commentCount": 0, "hnUrl": "https://news.ycombinator.com/item?id=50344510", "id": "50344510", "imageUrl": "", "points": 1, "publishedAt": "2026-11-02T22:03:31Z", "source": "", "summary": "", "title": "Vercel is adding Golang support to Next.js", "url": "https://twitter.com/timneutkens/status/2116204819279134824" } ], "meta": { "cached": false, "endpoint": "searchByDate", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
item
/v1/hnsearch/itemOne Hacker News story or comment by its id, with its direct replies counted.
Parameters
idstring required | Item id, the number after item?id= in its URL. e.g. 1 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
createdAt | string |
id | string |
points | integer (int64) |
replyCount | integer (int64) |
text | string |
title | string |
type | string |
url | string |
curl "https://api.hoshime.com/v1/hnsearch/item?id=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/item?id=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/item?id=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "pg" }, "createdAt": "2006-10-09T18:21:51Z", "id": "1", "points": 57, "replyCount": 1, "text": "", "title": "Y Combinator", "type": "story", "url": "http://ycombinator.com" }, "meta": { "cached": false, "endpoint": "item", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
user
/v1/hnsearch/userA Hacker News user by username.
Parameters
usernamestring required | Hacker News username, such as pg. e.g. pg |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
id | string |
karma | integer (int64) |
name | string |
postCount | integer (int64) |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/hnsearch/user?username=pg" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/user?username=pg", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/user?username=pg", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "avatarUrl": "", "bio": "Bug fixer.", "createdAt": "", "followerCount": 0, "followingCount": 0, "id": "pg", "karma": 157316, "name": "", "postCount": 0, "url": "https://news.ycombinator.com/user?id=pg", "username": "pg", "verified": false }, "meta": { "cached": false, "endpoint": "user", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
frontPage
/v1/hnsearch/frontPageStories on the Hacker News front page right now, most popular first.
Parameters
querystring | Words to match in the front page; omit it for the whole page. |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
commentCount | integer (int64) |
hnUrl | string |
id | string |
imageUrl | string |
points | integer (int64) |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/hnsearch/frontPage" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/frontPage", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/frontPage", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "josemrb" }, "commentCount": 707, "hnUrl": "https://news.ycombinator.com/item?id=50378228", "id": "50378228", "imageUrl": "", "points": 2887, "publishedAt": "2026-11-05T12:19:02Z", "source": "", "summary": "", "title": "sshole", "url": "https://sshhole.com" }, { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "motoroco" }, "commentCount": 468, "hnUrl": "https://news.ycombinator.com/item?id=50385272", "id": "50385272", "imageUrl": "", "points": 1495, "publishedAt": "2026-11-05T22:17:15Z", "source": "", "summary": "", "title": "Claude Code sends your email address to websites", "url": "https://github.com/anthropics/claude-code/issues/107757" } ], "meta": { "cached": false, "endpoint": "frontPage", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
showHN
/v1/hnsearch/showHNShow HN stories, most relevant first, or all of them without a query.
Parameters
querystring | Words to search for in Show HN stories. Omit it to list them. |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
commentCount | integer (int64) |
hnUrl | string |
id | string |
imageUrl | string |
points | integer (int64) |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/hnsearch/showHN" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/showHN", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/showHN", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "olalonde" }, "commentCount": 82, "hnUrl": "https://news.ycombinator.com/item?id=3742902", "id": "3742902", "imageUrl": "", "points": 3531, "publishedAt": "2012-03-23T00:40:39Z", "source": "", "summary": "", "title": "Show HN: This up votes itself", "url": "http://news.ycombinator.com/vote?for=3742902&dir=up&whence=%6e%65%77%65%73%74" }, { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "keepamovin" }, "commentCount": 965, "hnUrl": "https://news.ycombinator.com/item?id=46205632", "id": "46205632", "imageUrl": "", "points": 3346, "publishedAt": "2025-12-09T15:00:38Z", "source": "", "summary": "", "title": "Show HN: Gemini Pro 3 imagines the HN front page 10 years from now", "url": "https://dosaygo-studio.github.io/hn-front-page-2035/news" } ], "meta": { "cached": false, "endpoint": "showHN", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
askHN
/v1/hnsearch/askHNAsk HN stories, most relevant first, or all of them without a query.
Parameters
querystring | Words to search for in Ask HN stories. Omit it to list them. |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
commentCount | integer (int64) |
hnUrl | string |
id | string |
imageUrl | string |
points | integer (int64) |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/hnsearch/askHN" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/askHN", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/askHN", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "SimingtonFCC" }, "commentCount": 925, "hnUrl": "https://news.ycombinator.com/item?id=37392676", "id": "37392676", "imageUrl": "", "points": 3387, "publishedAt": "2023-09-05T15:07:21Z", "source": "", "summary": "", "title": "Ask HN: I’m an FCC Commissioner proposing regulation of IoT security updates", "url": "" }, { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "zachrip" }, "commentCount": 473, "hnUrl": "https://news.ycombinator.com/item?id=22918980", "id": "22918980", "imageUrl": "", "points": 3270, "publishedAt": "2020-04-19T21:33:46Z", "source": "", "summary": "", "title": "Ask HN: I'm a software engineer going blind, how should I prepare?", "url": "" } ], "meta": { "cached": false, "endpoint": "askHN", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
comments
/v1/hnsearch/commentsHacker News comments that match a query, newest first; without a query, the newest comments.
Parameters
querystring | Words to search for in comments. Omit it for the newest comments. e.g. golang |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
15 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
createdAt | string |
hnUrl | string |
id | string |
likeCount | integer (int64) |
parentId | string |
replyCount | integer (int64) |
storyId | string |
storyTitle | string |
text | string |
curl "https://api.hoshime.com/v1/hnsearch/comments?query=golang" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/comments?query=golang", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/comments?query=golang", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "glennfiedler" }, "createdAt": "2026-11-06T15:47:03Z", "hnUrl": "https://news.ycombinator.com/item?id=50393807", "id": "50393807", "likeCount": 0, "parentId": "50386404", "replyCount": 0, "storyId": "50366117", "storyTitle": "Ask HN: What's your current AI agentic setup?", "text": "I have some stuff inside nova-sprint that uses lisp sexpr to store issues, roadmaps and various things as primary structures. Basically, any…" }, { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "Vaushite" }, "createdAt": "2026-11-06T04:12:24Z", "hnUrl": "https://news.ycombinator.com/item?id=50388086", "id": "50388086", "likeCount": 0, "parentId": "50371745", "replyCount": 0, "storyId": "50369106", "storyTitle": "A new Go API for JSON", "text": "In Golang a nil value is semantically an empty container. You wouldn't want this translation in Java but in Golang it makes sense." } ], "meta": { "cached": false, "endpoint": "comments", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
authorStories
/v1/hnsearch/authorStoriesStories one account submitted, newest first.
Parameters
usernamestring required | Hacker News username, such as pg. e.g. pg |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
commentCount | integer (int64) |
hnUrl | string |
id | string |
imageUrl | string |
points | integer (int64) |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/hnsearch/authorStories?username=pg" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/authorStories?username=pg", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/authorStories?username=pg", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "pg" }, "commentCount": 209, "hnUrl": "https://news.ycombinator.com/item?id=37278345", "id": "37278345", "imageUrl": "", "points": 374, "publishedAt": "2023-08-27T00:51:13Z", "source": "", "summary": "", "title": "If you're interested in eye-tracking, I'm interested in funding you", "url": "https://twitter.com/paulg/status/1695596853864321055" }, { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "pg" }, "commentCount": 32, "hnUrl": "https://news.ycombinator.com/item?id=35172415", "id": "35172415", "imageUrl": "", "points": 142, "publishedAt": "2023-03-15T18:11:16Z", "source": "", "summary": "", "title": "The Social Radars: Conversations with Startup Founders", "url": "https://www.thesocialradars.com" } ], "meta": { "cached": false, "endpoint": "authorStories", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
authorComments
/v1/hnsearch/authorCommentsComments one account wrote, newest first.
Parameters
usernamestring required | Hacker News username, such as pg. e.g. pg |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
15 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
createdAt | string |
hnUrl | string |
id | string |
likeCount | integer (int64) |
parentId | string |
replyCount | integer (int64) |
storyId | string |
storyTitle | string |
text | string |
curl "https://api.hoshime.com/v1/hnsearch/authorComments?username=pg" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/authorComments?username=pg", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/authorComments?username=pg", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "pg" }, "createdAt": "2024-03-11T12:57:11Z", "hnUrl": "https://news.ycombinator.com/item?id=39667625", "id": "39667625", "likeCount": 0, "parentId": "39662907", "replyCount": 0, "storyId": "39662615", "storyTitle": "The Best Essay", "text": "In earlier drafts I wrote "the existence of some set of best\nessays follows necessarily" but it sounded so pedantic that it didn&#…" }, { "author": { "avatarUrl": "", "id": "", "name": "", "url": "", "username": "pg" }, "createdAt": "2023-08-27T01:29:42Z", "hnUrl": "https://news.ycombinator.com/item?id=37278578", "id": "37278578", "likeCount": 0, "parentId": "37278549", "replyCount": 0, "storyId": "37278345", "storyTitle": "If you're interested in eye-tracking, I'm interested in funding you", "text": "It's not available yet. And in any case if this is the future there should be multiple companies doing it, not just Apple." } ], "meta": { "cached": false, "endpoint": "authorComments", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
jobs
/v1/hnsearch/jobsJob posts on Hacker News, newest first, mostly the hiring posts of Y Combinator companies; a query filters them.
Parameters
querystring | Words to match in job posts, such as rust or remote. Omit it to list them all. |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
commentCount | integer (int64) |
hnUrl | string |
id | string |
imageUrl | string |
points | integer (int64) |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/hnsearch/jobs" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/jobs", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/jobs", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "https://…", "id": "abc123", "name": "…", "url": "https://…", "username": "…" }, "commentCount": 1280, "hnUrl": "https://…", "id": "abc123", "imageUrl": "https://…", "points": 0, "publishedAt": "2026-11-06T09:41:00Z", "source": "…", "summary": "…", "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "jobs", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }
replies
/v1/hnsearch/repliesThe direct replies to one Hacker News story or comment, in the order the thread shows them; each reply counts its own replies.
Parameters
idstring required | Story or comment id, the number after item?id= in its URL. e.g. 1 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
createdAt | string |
id | string |
likeCount | integer (int64) |
replyCount | integer (int64) |
text | string |
curl "https://api.hoshime.com/v1/hnsearch/replies?id=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hnsearch/replies?id=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hnsearch/replies?id=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "https://…", "id": "abc123", "name": "…", "url": "https://…", "username": "…" }, "createdAt": "2026-11-06T09:41:00Z", "id": "abc123", "likeCount": 1280, "replyCount": 1280, "text": "…" } ], "meta": { "cached": false, "endpoint": "replies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hnsearch", "requestId": "req_2Xb9kQ…", "units": 1 } }