Research a product idea
Search past discussions for the problems developers keep trying to solve.
Read the ranked front page, search stories and comments by relevance or date, walk comment threads and retrieve author profiles. Keep the discussion close to the link that started it.
PUT IT TO WORK
Three ways to use Hacker News data.
Search past discussions for the problems developers keep trying to solve.
Collect comments on a launch to find objections, questions and feature requests.
Pull the ranked top, new, best, Ask, Show or jobs list, then read each story with its score and comment count.
YOUR FIRST REQUEST
Search past discussions for the problems developers keep trying to solve.
Set SCRAPEATLAS_API_KEY in your environment.
Use the sample request as a starting point.
Send the result to your app, sheet or research tool.
# ScrapeAtlas · use your customer API key
export BASE_URL="https://api.scrapeatlas.com"
curl --get "$BASE_URL/v1/hackernews/search" \
-H "x-api-key: $SCRAPEATLAS_API_KEY" \
--data-urlencode "query=claude code" \
--data-urlencode "tags=story" \
--data-urlencode "numericFilters=created_at_i>1756684800" \
--data-urlencode "sortBy=date" \
--data-urlencode "hitsPerPage=30" \
--data-urlencode "page=0"const baseUrl = "https://api.scrapeatlas.com";
const url = new URL('/v1/hackernews/search', baseUrl);
url.searchParams.set("query", "claude code");
url.searchParams.set("tags", "story");
url.searchParams.set("numericFilters", "created_at_i>1756684800");
url.searchParams.set("sortBy", "date");
url.searchParams.set("hitsPerPage", "30");
url.searchParams.set("page", "0");
const response = await fetch(url, {
method: 'GET',
headers: {
'x-api-key': process.env.SCRAPEATLAS_API_KEY
}
});
const data = await response.json();
console.log(data);type Result = {
status: "success" | "partial" | "failed" | "challenged";
requestId: string;
[field: string]: unknown;
};
const response = await fetch(
"https://api.scrapeatlas.com/v1/hackernews/search?query=claude+code&tags=story&numericFilters=created_at_i%3E1756684800&sortBy=date&hitsPerPage=30&page=0",
{
headers: {
"x-api-key": process.env.SCRAPEATLAS_API_KEY!
}
}
);
const data = (await response.json()) as Result;
if (data.status === "failed" || data.status === "challenged") {
throw new Error(`Hacker News request failed: ${data.requestId}`);
}
console.log(data);import requests
response = requests.get(
"https://api.scrapeatlas.com/v1/hackernews/search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"query": "claude code",
"tags": "story",
"numericFilters": "created_at_i>1756684800",
"sortBy": "date",
"hitsPerPage": "30",
"page": "0"
},
timeout=60,
)
data = response.json()
print(data["status"], data)package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.scrapeatlas.com/v1/hackernews/search?query=claude+code&tags=story&numericFilters=created_at_i%3E1756684800&sortBy=date&hitsPerPage=30&page=0", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var data map[string]interface{}
json.NewDecoder(resp.Body).Decode(&data)
fmt.Println(data["status"], data)
}import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
.uri(URI.create("https://api.scrapeatlas.com/v1/hackernews/search?query=claude+code&tags=story&numericFilters=created_at_i%3E1756684800&sortBy=date&hitsPerPage=30&page=0"))
.GET()
.header("x-api-key", "YOUR_API_KEY")
.build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}/v1/hackernews/searchJSON responseUse your ScrapeAtlas API key. Replace the sample input with your own.
API DIRECTORY / 05
Create a ScrapeAtlas API key, send it in the x-api-key header, and pass the endpoint’s request fields. The example above is ready to adapt to your own input.
Read the ranked front page, search stories and comments by relevance or date, walk comment threads and retrieve author profiles. Keep the discussion close to the link that started it. Each endpoint’s reference shows its response fields and a JSON example.
Yes. Connect ScrapeAtlas through MCP to use Hacker News tools from your assistant. You can also call the same API from your own scripts or the CLI.
We use essential storage to keep the site working. With your permission, optional analytics cookies help us understand visits. You can change your choice anytime. Privacy policy
Google Analytics and PostHog measure visits, page engagement, signup-link clicks and website performance. Rejecting optional cookies does not affect access to the site.
Allow Affonso to record your referral visit and store a cookie for 30 days. If you sign up, we share your verified email with Affonso to attribute purchases. Privacy policy