Hacker News API

Hacker News data.
See what developers are discussing.

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

What will you build?

Three ways to use Hacker News data.

Research a product idea

Search past discussions for the problems developers keep trying to solve.

Follow the front page

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 Hacker News.

Search past discussions for the problems developers keep trying to solve.

  1. 01
    Add your API key

    Set SCRAPEATLAS_API_KEY in your environment.

  2. 02
    Choose your input

    Use the sample request as a starting point.

  3. 03
    Work with the JSON

    Send the result to your app, sheet or research tool.

Request and response fields
QUICKSTART / API EXAMPLES
# 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"
GET/v1/hackernews/searchJSON response

Use your ScrapeAtlas API key. Replace the sample input with your own.

GETTING STARTED

A few practical details.

API key setup
How do I make a request?

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.

What does the response contain?

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.

Can I use this from an AI assistant?

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.