Hacker News API

Search, posts, comments and profiles, with the supported actions shown for each platform.

Calls run only when you press Run. Opening this page does not spend credit.

Loading…

Your results will appear here. Choose a platform and action, then press Run.

ActionRESTUSD
Search posts/v1/hackernews/search$0.001
Trending/v1/hackernews/trending$0.001
Post detail/v1/hackernews/post$0.001
Comments/v1/hackernews/comments$0.001
User profile/v1/hackernews/user$0.001
User posts/v1/hackernews/user_posts$0.001

Prices differ by action. The API reports the exact price; use dry_run=1 to inspect a price without fetching data.

curl "https://posttodata.com/v1/hackernews/search?query=model+context+protocol" \
  -H "Authorization: Bearer YOUR_API_KEY"