List Hacker News user comments
curl --request GET \
--url https://api.aisa.one/apis/v1/hackernews/users/{username}/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/hackernews/users/{username}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/hackernews/users/{username}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/hackernews/users/{username}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/hackernews/users/{username}/comments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/hackernews/users/{username}/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/hackernews/users/{username}/comments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "page"
},
"data": {
"items": [
{
"author": "<string>",
"childIds": [
123
],
"commentCount": null,
"createdAt": "<string>",
"dead": true,
"deleted": true,
"id": 123,
"itemUrl": "<string>",
"parentId": 123,
"score": null,
"text": "<string>",
"title": null,
"type": "<string>",
"url": null
}
],
"lookupStatus": "<string>",
"page": {
"hasMore": true,
"nextPage": 123,
"page": 123,
"pageSize": 123,
"returned": 123
},
"user": {
"profileUrl": "<string>",
"username": "<string>"
}
},
"meta": {
"version": "<string>"
}
}Hacker News
List Hacker News user comments
Lists a Hacker News user’s comments (newest first). Results are paged: while data.page.hasMore is true, send data.page.nextPage as page to get the next page.
GET
https://api.aisa.one
/
apis
/
v1
/
hackernews
/
users
/
{username}
/
comments
List Hacker News user comments
curl --request GET \
--url https://api.aisa.one/apis/v1/hackernews/users/{username}/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/hackernews/users/{username}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/hackernews/users/{username}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/hackernews/users/{username}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/hackernews/users/{username}/comments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/hackernews/users/{username}/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/hackernews/users/{username}/comments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "page"
},
"data": {
"items": [
{
"author": "<string>",
"childIds": [
123
],
"commentCount": null,
"createdAt": "<string>",
"dead": true,
"deleted": true,
"id": 123,
"itemUrl": "<string>",
"parentId": 123,
"score": null,
"text": "<string>",
"title": null,
"type": "<string>",
"url": null
}
],
"lookupStatus": "<string>",
"page": {
"hasMore": true,
"nextPage": 123,
"page": 123,
"pageSize": 123,
"returned": 123
},
"user": {
"profileUrl": "<string>",
"username": "<string>"
}
},
"meta": {
"version": "<string>"
}
}
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/users/{username}/comments
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/hackernews/users/{username}/comments - username: path; required
- limit: query; optional
- page: query; optional
{
"operationId": "hackernews.users.username.comments",
"method": "GET",
"path": "/apis/v1/hackernews/users/{username}/comments",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "path",
"name": "username",
"required": true,
"schema": {
"description": "Hacker News username (case-sensitive).",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "limit",
"required": false,
"schema": {
"description": "Hits per page (1–50). Default: 20. Prefer this over `pageSize`.",
"maximum": 50,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "page",
"required": false,
"schema": {
"description": "Zero-based page index (maximum 50 pages, up to 1,000 hits).",
"maximum": 49,
"minimum": 0,
"type": "integer"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
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-14
{
"additionalProperties": true,
"properties": {
"data": {
"additionalProperties": true,
"properties": {
"items": {
"items": {
"additionalProperties": true,
"properties": {
"author": {
"type": "string"
},
"childIds": {
"items": {
"type": "integer"
},
"type": "array"
},
"commentCount": {
"type": "null"
},
"createdAt": {
"type": "string"
},
"dead": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
},
"id": {
"type": "integer"
},
"itemUrl": {
"type": "string"
},
"parentId": {
"type": "integer"
},
"score": {
"type": "null"
},
"text": {
"type": "string"
},
"title": {
"type": "null"
},
"type": {
"type": "string"
},
"url": {
"type": "null"
}
},
"type": "object"
},
"type": "array"
},
"lookupStatus": {
"type": "string"
},
"page": {
"additionalProperties": true,
"properties": {
"hasMore": {
"type": "boolean"
},
"nextPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"returned": {
"type": "integer"
}
},
"type": "object"
},
"user": {
"additionalProperties": true,
"properties": {
"profileUrl": {
"type": "string"
},
"username": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"meta": {
"additionalProperties": true,
"properties": {
"version": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
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_cursoraspage(query parameter) to fetch the next page; stop whenaisa_pagination.has_moreis false. - The same values are returned in the
X-AISA-Has-MoreandX-AISA-Next-Cursorresponse headers. - Page size parameter:
limit
Response time
- Typically returns within 10 seconds.
Authorizations
Path Parameters
Query Parameters
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-14.