Skip to content
All sites
Data API

Hackernews Data API

Structured JSON data, on demand, with anti-bot bypass built in.

9endpoints
hackernews.comGET/hackernews/st…GET/hackernews/st…GET/hackernews/st…{ } JSON

Hackernews Data API overview

Extract structured data from Hackernews as structured JSON. Choose an endpoint below, check its parameters, and run it in the dashboard playground.

/v1/hackernews/… Open playground

Key Features

Structured JSON

Clean, normalized records for structured data. No HTML parsing on your side.

9 endpoints

Across 4 categories, all under one base path.

Fast + reliable

Served over our managed egress with automatic retries.

Fresh or cached

Serve instantly from the warm store, or force a live scrape per request.

Regions & Languages

Global coverage. Results are returned for the default locale.

Pagination

These endpoints return a single result set (no pagination needed).

Quick Start

Use your dedicated Data API key. Follow this endpoint's method and parameters.

data_api.py
# Install: pip install requests
import json
import os
import requests

params = json.loads("{\"q\":\"artificial intelligence\",\"sort\":\"relevance\",\"limit\":30}")
response = requests.request(
    "GET", "https://api.capzy.ai/v1/hackernews/search",
    headers={"X-API-Key": os.environ["CAPZY_DATA_API_KEY"]},
    params=params,
    timeout=120,
)
response.raise_for_status()
print(response.json())

Per-run pricing

failed requests are free
EndpointCategoryPrice / 1k results
/v1/data/hackernews/stories/askAsk HN StoriesStories1 credit / run
/v1/data/hackernews/stories/bestBest StoriesStories1 credit / run
/v1/data/hackernews/stories/jobsJob StoriesStories1 credit / run
/v1/data/hackernews/stories/newNew StoriesStories1 credit / run
/v1/data/hackernews/stories/showShow HN StoriesStories1 credit / run
/v1/data/hackernews/stories/topTop StoriesStories1 credit / run
/v1/data/hackernews/items/{id}ItemItems1 credit / run
/v1/data/hackernews/searchSearchSearch1 credit / run
/v1/data/hackernews/users/{id}UserUsers1 credit / run