Hacker News Search API reference
Your first 10 calls are free, no card needed. Pricing and FAQ
Get a free API keycurl "https://api.insightsocial.app/v1/hackernews/search" \ -H "x-api-key: $INSIGHTSOCIAL_API_KEY"
Search Hacker News by keyword.
Beta. The source's own structure under our naming rules (snake_case keys, string ids, ISO times where the source gives a timestamp), not one of the schema-2 entities. Fields may change. See Beta endpoints.
20 credits per call.
Paginates by cursor: see Pagination.
Authorization
apiKey Your key from the dashboard. It starts with isk_.
In: header
Query Parameters
Full-text search query. Required unless front_page_only, 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.
Value in
- "all"
- "story"
- "comment"
- "ask_hn"
- "show_hn"
- "launch_hn"
- "job"
- "poll"
Ranking mode. Default: popularity.
Value in
- "popularity"
- "date"
Creation-time window. Default: all.
Value in
- "24h"
- "week"
- "month"
- "year"
- "all"
Hits per page. Must be one of 10, 20, 30, 50. 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, enable prefix matching for query tokens.
Enable typo tolerance. Default: true.
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.
0 <= value <= 1000000Pass pagination.next_cursor from the previous response to get the next page. Keep the other parameters the same.
Set to 1 to get the price of this call without making it: data.dry_run carries credits_min and credits_max. Nothing is charged.
Value in
- "1"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.insightsocial.app/v1/hackernews/search"{ "success": true, "platform": "string", "endpoint": "string", "schema_version": "2", "pagination": { "next_cursor": "string", "has_more": true, "page_size": 0, "stopped_at": "since" }, "unavailable": [ "string" ], "credits_used": 0, "credits_remaining": 0, "request_id": "string", "cached": true, "idempotent_replay": true, "charge_reason": "string", "free_call": true, "data": { "property1": null, "property2": null }}