Search Hacker News
Search Hacker News by keyword.
Request
- Base URL: https://api.socialfetch.dev
- URL: https://api.socialfetch.dev/v1/hackernews/search
- Auth: one of:
- API key in header x-api-key
- none
Query parameters
Full-text search query. Required unless frontPageOnly, author, domain, or url is set.
Restrict search results to a Hacker News content type. ask_hn: Ask HN posts (questions to the community). show_hn: Show HN posts (projects/work being shared). launch_hn: Launch HN posts (YC-affiliated company launches). Default: all.
Ranking mode. Default: popularity.
Creation-time window. Default: all.
Zero-based page index (maximum 50 pages, up to 1,000 hits).
When true, restrict results to current front-page items. Allows omitting query.
Include story/comment text in searchable fields. Default: true. Set false to search title/URL only.
When true, include author username in the searchable fields.
When true, enable prefix matching for query tokens.
Enable typo tolerance. Default: true.
Restrict results to items by this Hacker News username.
Restrict search to story URLs matching this domain (e.g. example.com). Can omit query.
Restrict search to story URLs matching this URL substring. Can omit query.
Minimum points/score filter.
Response
Hacker News search results.
Changes
No recorded changes to this operation across all 1 revision of this API.