Hacker News scraper API: search results as JSON
Send any Hacker News page URL with recipe=hackernews and get title, url as JSON. No selectors to write, no proxies to pick.
- 1 page type
- 2 fields
- 5 credits a page · $0.50 per 1,000
- Working · 100% in 7 days
5,000 free credits for 7 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://news.ycombinator.com/show' \
--data-urlencode 'recipe=hackernews'
{
"result": {
"title": "Show HN: Use your OpenAI subscription to crea..."
},
"success": true
}
What you get from Hacker News
The fields of each page type and a real sample from our last validation, shortened.
Search and listing pages recipe=hackernews 5 credits a page
| Field | Type | Example |
|---|---|---|
results | list of 3+ items | |
results[].title | text | Show HN: Use your OpenAI subscription to create audiobooks |
results[].url | URL | https://pdftomp3.com/connect-ai/ |
Sample answer, validated 2026-10-29
{
"results": [
{
"title": "Show HN: Use your OpenAI subscription to create audiobooks",
"url": "https://pdftomp3.com/connect-ai/"
},
{
"title": "Show HN: A coloring book where your drawings come alive and walks into a world",
"url": "https://www.livecoloringbook.com/"
}
]
}
One call
Send the page URL and the recipe name to the Scrape API. The recipe brings the extract rules and the settings that work on Hacker News (JavaScript rendering).
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://news.ycombinator.com/show' \
--data-urlencode 'recipe=hackernews'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://news.ycombinator.com/show", "recipe": "hackernews"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
print(r.json()["result"])
const params = new URLSearchParams({
url: "https://news.ycombinator.com/show",
recipe: "hackernews",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
console.log((await res.json()).result);
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.
Search Hacker News with parameters
Fill in the parameters and we build the Hacker News search URL. The Playground and the Request builder do it for you.
| Parameter | Type | Values |
|---|---|---|
section | enum | news, newest, front, ask, show, jobs |
page | int | 1 to 10 |
Works today: the built URL with recipe=hackernews/listing (section=news)
GET https://api.ujeebu.com/scrape?url=https%3A%2F%2Fnews.ycombinator.com%2Fnews&recipe=hackernews%2Flisting
A single call with the parameters and no URL is coming to the API; it is not live yet. Search with parameters in the docs
What people build with Hacker News data
Research datasets
Build datasets of public pages for analysis, search or LLM pipelines.
Learn more
Price
Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
| Page type | Credits a page | Per 1,000, Starter | Per 1,000, Pro |
|---|---|---|---|
| Search results | 5 | $0.82 | $0.50 |
FAQ
What does the Hacker News recipe return?
JSON with 2 fields from search results (recipe=hackernews), for example title, url. The answer is {"result": {...}} with the fields shown on this page.
How much does it cost to scrape Hacker News?
5 credits a page ($0.50 per 1,000 on Pro, $0.82 on Starter). Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
Do I need proxies or a headless browser?
No. The recipe brings the settings that work on Hacker News: JavaScript rendering. Send only the URL and recipe=hackernews.
What happens when Hacker News changes its pages?
We check Hacker News every day and re-validate the recipe on real pages every week, then fix it when the site changes. Until a fix is live, the API answers 404 "the recipe has no working version" instead of empty data, and that call is free.
Can I search Hacker News with parameters?
Yes. Fill in section, page: we build the Hacker News search URL, and the call is that URL with recipe=hackernews/listing. A single call with the parameters and no URL is coming to the API; it is not live yet.
Related recipes
GitHubSearch results, Page · 5 credits
WikipediaPage · 5 credits
Hugging FaceSearch results, Page · 5 credits
LinkedInSearch results, Detail page, Profile · 5 credits
AmazonSearch results, Product page · 5 credits
X (Twitter)Profile · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with Hacker News.
Get Hacker News data as JSON today.
5,000 free credits for 7 days. No card.