Skip to main content
GET
Search Hacker News
Request example pending verification. The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (X-AISA-Cost-Mode: quote) before running it.

Request contract

  • Method and path: GET /apis/v1/hackernews/search
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/hackernews/search
  • author: query; optional
  • dateRange: query; optional
  • domain: query; optional
  • frontPageOnly: query; optional
  • limit: query; optional
  • minPoints: query; optional
  • page: query; optional
  • prefix: query; optional
  • query: query; optional
  • searchAuthor: query; optional
  • searchStoryText: query; optional
  • sort: query; optional
  • type: query; optional
  • typoTolerance: query; optional
  • url: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Observed response structure

The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.
  • HTTP status / last observed: 200 / 2026-11-28

Cost and request rules

Usage-based pricing. Default request estimate: $0.014 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Pagination

  • Pass aisa_pagination.next_cursor as page (query parameter) to fetch the next page; stop when aisa_pagination.has_more is false.
  • The same values are returned in the X-AISA-Has-More and X-AISA-Next-Cursor response headers.
  • Page size parameter: limit

Response time

  • Typically returns within 10 seconds.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

author
string

Restrict results to items by this Hacker News username.

Required string length: 1 - 4096
dateRange
enum<string>

Creation-time window. Default: all.

Available options:
24h,
all,
month,
week,
year
Required string length: 1 - 4096
domain
string

Restrict search to story URLs matching this domain (e.g. example.com). Can omit query.

Required string length: 1 - 4096
frontPageOnly
boolean

When true, restrict results to current front-page items. Allows omitting query.

limit
enum<string>

Hits per page. Must be one of 10, 20, 30, 50. Default: 20. Prefer this over pageSize.

Available options:
10,
20,
30,
50
Required string length: 1 - 4096
minPoints
integer

Minimum points/score filter.

Required range: 0 <= x <= 9223372036854776000
page
integer

Zero-based page index (maximum 50 pages, up to 1,000 hits).

Required range: 0 <= x <= 49
prefix
boolean

When true, enable prefix matching for query tokens.

query
string

Full-text search query. Required unless frontPageOnly, author, domain, or url is set.

Required string length: 1 - 4096
searchAuthor
boolean

When true, include author username in the searchable fields.

searchStoryText
boolean

Include story/comment text in searchable fields. Default: true. Set false to search title/URL only.

sort
enum<string>

Ranking mode. Default: popularity.

Available options:
date,
popularity
Required string length: 1 - 4096
type
enum<string>

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.

Available options:
all,
ask_hn,
comment,
job,
launch_hn,
poll,
show_hn,
story
Required string length: 1 - 4096
typoTolerance
boolean

Enable typo tolerance. Default: true.

url
string

Restrict search to story URLs matching this URL substring. Can omit query.

Required string length: 1 - 4096

Response

Observed successful JSON response. This partial structure comes from successful probe or sampled requests; fields and types may vary. No field is guaranteed to be present. Last observed: 2026-11-28.

aisa_pagination
object

AIsa pagination. Pass next_cursor as page to fetch the next page; has_more is false on the last page.

data
object
meta
object