Hacker News · search
Hacker News Search
Search Hacker News stories or comments by keyword and see title, link, author, points and comment count for each match.
- $0.0015 mỗi lần chạy
- Dữ liệu trực tiếp
- Không cần tài khoản Hacker News
- Bao gồm JSON thô
Hacker News · search
Kết quả xếp hạng kèm số liệu
Mỗi kết quả kèm tiêu đề, liên kết, tác giả, ngày và mức độ tương tác, cùng tổng và trung vị trên toàn danh sách. Mỗi lần chạy cũng trả về phản hồi thô của API và bản xuất JSON.
Cách hoạt động
- 01
Choose a keyword and type
Enter up to 100 characters in Keyword, such as a product, library or phrase. Under Type, pick Stories, Comments or Everything. A blank keyword or one that is too long is caught before the search runs, so no call is made for invalid input.
- 02
Query hacker-news/search
SandBase sends your keyword as query to hacker-news/search. Stories and Comments set the tags filter to story or comment; Everything leaves tags out. The search is billed to your SandBase account, so sign in first. No Hacker News account is needed for any of it.
- 03
Scan points, comments and links
Each result lists title, link, author, time, points and comment count. The summary gives the result count with totals and medians of points and comments. Open a link to read the thread on Hacker News, or expand the raw API response to verify a number.
Ai sử dụng
Founders
Find past launches and how they landed.
Developers
Read the discussion around a tool.
Marketers
See which titles earn points.
Dữ liệu Hacker News với một API
Công cụ này gọi một SandBase API. Gọi cùng API đó từ code hoặc Agent của bạn bằng khóa SandBase của bạn, tính phí theo mỗi lần gọi ($0.0015 giá niêm yết).
curl -X POST https://api.sandbase.ai/v1/api/hacker-news/search \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "local-first software",
"tags": "story"
}'Câu hỏi thường gặp
Does Hacker News Search include old threads?
Yes. Hacker News Search covers the full Hacker News archive, not just the current front page, so past launches and old discussions show up.
What are points in Hacker News Search results?
Points are upvotes minus a few adjustments; they decide a story's place on the Hacker News front page. Hacker News Search shows them next to the comment count.
Can Hacker News Search find comments instead of stories?
Yes. Set Type to Comments to search comment text, or Everything to mix stories and comments in one list.
Do I need a Hacker News account for Hacker News Search?
No. Hacker News Search only reads public data, so a SandBase account is all you need.
Can I query Hacker News with the hacker-news/search API?
Yes. Call POST /v1/api/hacker-news/search with your SandBase API key, passing query and an optional tags value. See the request example on the page.
How much does Hacker News Search cost per run?
Each search makes one hacker-news/search call, billed to your SandBase account. Look at the price on the page or run `sandbase inspect hacker-news/search` before you search. Plans: https://www.sandbase.ai/pricing.
