APIs / Social media / Hacker News
1 credit per call4 endpoints
Hacker News API
Get Hacker News data as structured JSON with one API key: search, item, stories and user. Free credits every month.
curl "https://api.perceptlayer.com/v1/hacker-news/search?query=dishwasher&type=story" \
-H "X-API-Key: $API_KEY"Playground
Run this API
curl "https://api.perceptlayer.com/v1/hacker-news/search?query=dishwasher&type=story" \
-H "X-API-Key: $API_KEY"Hacker News · 4 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters and an example request.
| Endpoint | What it returns | Cost |
|---|---|---|
GET/v1/hacker-news/item | Item Needs terms | 1 credit |
GET/v1/hacker-news/search | Search Needs terms | 1 credit |
GET/v1/hacker-news/stories | Stories Needs terms | 1 credit |
GET/v1/hacker-news/user | User Needs terms | 1 credit |
Overview
About the Hacker News API
What you can get
The Hacker News API returns search, item, stories and user as clean JSON. Each successful call costs one credit, and calls that fail are free.
More social media APIs
Use cases
Monitor mentions of your brand
Use the Hacker News API to monitor mentions of your brandFind and vet creators
Use the Hacker News API to find and vet creatorsTrack trends and engagement over time
Use the Hacker News API to track trends and engagement over timeFAQ
Questions
How much does the Hacker News API cost?
Each successful call costs one credit. New accounts get free credits every month, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Do I need a separate key for Hacker News?
No. One key works for every API in the catalogue.
Try the Hacker News API with 1,000 free credits
No credit card. Failed calls are never billed.