Read Hacker News top stories by category, search stories by keyword and timeframe, and browse job posts, user profiles, nested comment threads and commenter breakdowns, plus engagement stats and trending stories.
No website sign-in or persona needed. Free to install. Try any function below with your own values, no account: 10 free credits a day per device. Cloud calls after that use your own credits. Pricing →
The name news.ycombinator.com belongs to its owner. This API is not affiliated with, endorsed by or sponsored by news.ycombinator.com. You are responsible for how you use it.
A recorded call and its answer
get_top_posts(story_type: "top", limit: 3)
Story
Points
Three new discoveries in mathematics, computer science, and physics
557
The Exponential Time Hypothesis Is False [pdf]
357
Sebastian Raschka's from-scratch video course on building reasoning models
585
Recorded run #24398 · Oct 27, 2026 · fixed example
01 · Functions9 functions
The form is the docs.
Choose a function, fill in its inputs, and run it: the answer comes back from the live site, with your values. Without an account you get 10 free credits a day per device for this; install the listing in Writ to keep calling it.
AI assistants and tools that can only open a URL can call it with no key: one URL per function, its inputs in the query string. Each call spends the free keyless allowance, 10 credits a day per IP address.
GET https://api.usewrit.app/api/marketplace/listings/hacker-news-stories-search/run?function_name=get_top_posts&limit=30&story_type=topGET https://api.usewrit.app/api/marketplace/listings/hacker-news-stories-search/run?function_name=search_posts&page=0&limit=20&query=<query>&sort_by=relevanceGET https://api.usewrit.app/api/marketplace/listings/hacker-news-stories-search/run?function_name=get_job_posts&limit=30GET https://api.usewrit.app/api/marketplace/listings/hacker-news-stories-search/run?function_name=get_user_info&username=<username>GET https://api.usewrit.app/api/marketplace/listings/hacker-news-stories-search/run?function_name=get_post_comments&limit=10&post_id=<post_id>GET https://api.usewrit.app/api/marketplace/listings/hacker-news-stories-search/run?function_name=get_post_stats&limit=100&story_type=topGET https://api.usewrit.app/api/marketplace/listings/hacker-news-stories-search/run?function_name=get_trending&limit=20&timeframe=last_7dGET https://api.usewrit.app/api/marketplace/listings/hacker-news-stories-search/run?function_name=get_comment_details&page=0&limit=30&post_id=<post_id>&sort_by=newestGET https://api.usewrit.app/api/marketplace/listings/hacker-news-stories-search/run?function_name=get_post_commenters&limit=20&post_id=<post_id>
Every function was called on the live site before this API was published, and keeps being measured. The numbers are the listing’s own.
0.30 stypical callmedian of 1 function
1measured runsacross 9 functions
—daily checks passedchecks start with the first install
—buyer runs succeededno counted buyer runs yet
functionmedian · 95th percentilemedianruns
get_top_posts0.30 s1
search_postsNot measured—
get_job_postsNot measured—
get_user_infoNot measured—
get_post_commentsNot measured—
get_post_statsNot measured—
get_trendingNot measured—
get_comment_detailsNot measured—
get_post_commentersNot measured—
Checked dailyNo daily check results published yet. Checks begin with the first install; no pass rate is claimed.
Repaired when it breaksA function that fails its check is re-tested and rebuilt. Installed copies receive the update; you redeploy nothing.
Buyer runs countedNo counted buyer runs published yet; uptime counts real buyers’ runs only. Writ service status →
Historical measurements from the public listing, refreshed Dec 4, 2026. Timing samples are not an uptime claim or a guarantee for your next call.
03 · Your copyyour account
Install your copy. Call it your way.
2 credits
Priced per cloud call.
The listing’s base price is 2 credits per call. Longer runs, residential traffic and CAPTCHA solving can add usage. A site or Writ failure is free; your own input or login failures can be billable. Full usage rates →
cloud
No computer to keep running.
Marketplace copies execute in Writ Cloud, in your own account. Requirements and prices are checked before you use the listing.
REST · MCP
Every way to call it, at once.
Use your API key, connect an assistant, set a schedule with email or webhook delivery, or export answers as a dataset.
read-only
It only reads.
The published functions read data from the source website. No website sign-in or persona is needed for this listing.
private copy
Your account, your usage.
Your installed copy belongs to your account. Its underlying recipe stays sealed with its creator; no creator credentials are included.
04 · Or build your ownwebsite → API
Missing a function? Describe it.
Give Writ a website and say what you want. It builds and tests the API for your task.
On your computeryour machine
Build it in Writ Desktop and run it from your own IP. Execution on your machine costs 0 credits.
Search Legacy.com obituaries by name with an optional city and state, getting each person's name, places and obituary links, then open any Legacy.com obituary for its full text, dates, places and service details.
Baidu top searches API: real-time hot searches plus ranked novels, movies and TV dramas with scores from Baidu Top. Filter boards by the site's own genre tags, search by keyword, or get a summary of every board.
Read the Skills IL newsletter archive and product changelog. List newsletter issues or announcements by keyword and date range, newest first, and open the full content of any single issue.
tested at publishno sign-in
2 cr / call·3 functionsView API →
06 · Questions
Does news.ycombinator.com have an API?
This page is an independent API and MCP server for news.ycombinator.com: Writ built it on the site’s public pages and tests it, and it has 9 functions you can call today. It is not an official news.ycombinator.com product. For an official API, check news.ycombinator.com’s own developer pages.
How do I use the news.ycombinator.com API from Claude, ChatGPT or Cursor?
Install it in Writ, then add Writ’s MCP server (https://api.usewrit.app/mcp) to Claude, ChatGPT, Cursor or any MCP client: your assistant can run this API’s functions and read the results. From your own code, call the same functions over REST with a Writ API key.
How much does a call to the news.ycombinator.com API cost?
2 credits per call, charged only when the call succeeds. New accounts start with 1,000 free credits, then 500 a month on the Free plan, no card.
Strictly necessary
Required for the site to function (e.g. remembering this choice). Always on.
Always on
Analytics
Privacy-friendly, EU-hosted usage and performance measurement. Helps us see what is useful and keep the site fast. No advertising or cross-site tracking.
Your browser sends a “do not track” signal, so this starts off. You can still turn it on.
Privacy-friendly analytics keep the site fast. No ads, no cross-site tracking. Cookie Policy.