# Hacker News data APIs for AI agents > morigraph has 4 Hacker News data APIs that Claude, ChatGPT, Cursor, Codex or your own code can call, including profile, search, story and story comments. You need no Hacker News developer account or API key, only one morigraph connection. A call costs 0.03 credits, about $3.00 for 1,000 calls, paid from one balance. ## How to call it Every data API is run by one tool, `data_api`, with the API's id and its arguments. The example is Hacker News Profile. In your assistant (MCP). Connect once, then ask in plain words: ```sh claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp Use morigraph's Hacker News Profile data API with {"handle":"pg"} and summarise what comes back. ``` From a terminal or script (CLI): ```sh npx @morigraph/cli@latest login morigraph call data_api --json-args '{"api":"hackernews.profile","input":{"handle":"pg"}}' ``` From your own code (HTTP API): ```sh curl https://api.morigraph.com/v1/tools/data_api \ -H "Authorization: Bearer $MORIGRAPH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"api":"hackernews.profile","input":{"handle":"pg"}}' ``` ## Hacker News Profile `hackernews.profile` · 0.03 credits a call (about $3.00 for 1,000) Get a Hacker News user's public profile by username - karma, bio, and account details as clean JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `handle` | string | yes | Hacker News username, e.g. "pg". | Returns: `bio`, `karma`, `username` ``` data_api({"api":"hackernews.profile","input":{"handle":"pg"}}) ``` ## Hacker News Search `hackernews.search` · 0.03 credits a call (about $3.00 for 1,000), at most 0.064 Search Hacker News by keyword - matching stories with title, link, author, points, and comment count as clean JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `query` | string | yes | Search keyword, e.g. "ai". | | `tags` | string | no | Optional result filter, e.g. "story" or "comment". | Returns: `author`, `comments`, `createdUtc`, `id`, `permalink`, `points`, `results`, `title`, `url` ``` data_api({"api":"hackernews.search","input":{"query":"ai"}}) ``` ## Hacker News Story `hackernews.story` · 0.03 credits a call (about $3.00 for 1,000) Get a Hacker News story by id - title, link, author, points, and comment count as clean JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | yes | Hacker News story id, e.g. "47340079". | Returns: `author`, `comments`, `createdUtc`, `id`, `permalink`, `points`, `title`, `url` ``` data_api({"api":"hackernews.story","input":{"id":"47340079"}}) ``` ## Hacker News Story Comments `hackernews.story_comments` · 0.03 credits a call (about $3.00 for 1,000), at most 0.064 List the comments on a Hacker News story by id - text, author, and timestamp as clean JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | yes | Hacker News story id, e.g. "47340079". | Returns: `author`, `comments`, `createdUtc`, `id`, `parentId`, `permalink`, `postId`, `text` ``` data_api({"api":"hackernews.story_comments","input":{"id":"47340079"}}) ``` ## Do I need a Hacker News API key or developer account? No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call any of the 4 APIs on this page. ## What does Hacker News data cost through morigraph? 0.03 credits a call, where a credit is about 10 cents. That is from about $3.00 for 1,000 calls. You pay per call from one balance, with no separate subscription. ## Can Claude, ChatGPT or Cursor get Hacker News data? Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call. ## Which Hacker News data APIs are available? Hacker News Profile, Hacker News Search, Hacker News Story and Hacker News Story Comments. --- Canonical page: https://morigraph.com/tools/data/hackernews/ Prices read from the catalogue on 2026-11-27. These APIs return public data; how you may use it depends on the platform's terms and applicable law. All data APIs: https://morigraph.com/tools/data.md · Connect: https://morigraph.com/connect.md · Site overview: https://morigraph.com/llms.txt