Skip to main content
GET
Search Hacker News

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
  • Runtime facts: 77d987bedd1457fdbcee1c1c65b1dfb818d88b25e913d57505523542fadf5811
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based billing; Default request estimate: $0.014 USD (not a fixed price). Declared unit rate: $0.014 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.014
  • Declared unit rate (USD): 0.014
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 1
  • Settlement evidence source: response_body

Authorizations

Authorization
string
header
required

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

Query Parameters

author
string
Required string length: 1 - 4096
dateRange
enum<string>
Available options:
24h,
all,
month,
week,
year
Required string length: 1 - 4096
domain
string
Required string length: 1 - 4096
frontPageOnly
boolean
limit
enum<string>
Available options:
10,
20,
30,
50
Required string length: 1 - 4096
minPoints
integer
Required range: 0 <= x <= 9223372036854776000
page
integer
Required range: 0 <= x <= 49
prefix
boolean
query
string
Required string length: 1 - 4096
searchAuthor
boolean
searchStoryText
boolean
sort
enum<string>
Available options:
date,
popularity
Required string length: 1 - 4096
type
enum<string>
Available options:
all,
ask_hn,
comment,
job,
launch_hn,
poll,
show_hn,
story
Required string length: 1 - 4096
typoTolerance
boolean
url
string
Required string length: 1 - 4096

Response

Successful response