All sites
Data API
Hackernews Data API
Structured JSON data, on demand, with anti-bot bypass built in.
9endpoints
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 playgroundKey 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.
# 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| Endpoint | Category | Price / 1k results |
|---|---|---|
/v1/data/hackernews/stories/askAsk HN Stories | Stories | 1 credit / run |
/v1/data/hackernews/stories/bestBest Stories | Stories | 1 credit / run |
/v1/data/hackernews/stories/jobsJob Stories | Stories | 1 credit / run |
/v1/data/hackernews/stories/newNew Stories | Stories | 1 credit / run |
/v1/data/hackernews/stories/showShow HN Stories | Stories | 1 credit / run |
/v1/data/hackernews/stories/topTop Stories | Stories | 1 credit / run |
/v1/data/hackernews/items/{id}Item | Items | 1 credit / run |
/v1/data/hackernews/searchSearch | Search | 1 credit / run |
/v1/data/hackernews/users/{id}User | Users | 1 credit / run |