Search Hacker News by keyword.
Endpoint
/v1/hackernews/search
Query
Full-text search query. Required unless `frontPageOnly`, `author`, `domain`, or `url` is set.
Content type filter. Default: `all`.
Ranking mode. Default: `popularity`.
Creation-time window. Default: `all`.
Zero-based page index (maximum 50 pages, up to 1,000 hits).
Hits per page. Default: 20.
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.
const response = await fetch( "https://api.socialfetch.dev/v1/hackernews/search?query=Dropbox", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);