# Hacker News

25 endpoints on Hacker News. Every one returns the same response shape and has a flat, published price in credits.

Category: [Messaging & communities](https://onekey.dev/docs/categories/community.md) · [Overview page](https://onekey.dev/platforms/hackernews)

## Endpoints

| Endpoint | What it does | Cost | Status |
| --- | --- | --- | --- |
| [`ask_hn`](https://onekey.dev/docs/api/hackernews/ask_hn.md) | Latest Ask HN posts. | 5 credits | stable |
| [`askstories`](https://onekey.dev/docs/api/hackernews/askstories.md) | Latest Ask HN story ids. | 5 credits | stable |
| [`author_comments`](https://onekey.dev/docs/api/hackernews/author_comments.md) | Comments written by a Hacker News user. | 5 credits | stable |
| [`author_submissions`](https://onekey.dev/docs/api/hackernews/author_submissions.md) | Stories submitted by a Hacker News user. | 5 credits | stable |
| [`beststories`](https://onekey.dev/docs/api/hackernews/beststories.md) | Best story ids on Hacker News. | 5 credits | stable |
| [`front_page`](https://onekey.dev/docs/api/hackernews/front_page.md) | Hacker News front page (Algolia). | 5 credits | stable |
| [`item`](https://onekey.dev/docs/api/hackernews/item.md) | A Hacker News item (Algolia, with points and counts). | 1 credit | stable |
| [`item_comments`](https://onekey.dev/docs/api/hackernews/item_comments.md) | Top-level comments of a Hacker News item (children of the comment tree). | 5 credits | stable |
| [`item_firebase`](https://onekey.dev/docs/api/hackernews/item_firebase.md) | A Hacker News item (official Firebase API). | 1 credit | stable |
| [`jobs`](https://onekey.dev/docs/api/hackernews/jobs.md) | Hacker News job posts. | 5 credits | stable |
| [`jobstories`](https://onekey.dev/docs/api/hackernews/jobstories.md) | Latest job story ids. | 5 credits | stable |
| [`maxitem`](https://onekey.dev/docs/api/hackernews/maxitem.md) | Current maximum Hacker News item id. | 1 credit | stable |
| [`newstories`](https://onekey.dev/docs/api/hackernews/newstories.md) | Newest story ids on Hacker News. | 5 credits | stable |
| [`polls`](https://onekey.dev/docs/api/hackernews/polls.md) | Hacker News polls. | 5 credits | stable |
| [`search`](https://onekey.dev/docs/api/hackernews/search.md) | Search Hacker News stories by keyword. | 1 credit | stable |
| [`search_by_date`](https://onekey.dev/docs/api/hackernews/search_by_date.md) | Search Hacker News stories, newest first. | 5 credits | stable |
| [`search_comments`](https://onekey.dev/docs/api/hackernews/search_comments.md) | Search Hacker News comments. | 5 credits | stable |
| [`search_url`](https://onekey.dev/docs/api/hackernews/search_url.md) | Stories that link to a URL or domain. | 5 credits | stable |
| [`show_hn`](https://onekey.dev/docs/api/hackernews/show_hn.md) | Latest Show HN posts. | 5 credits | stable |
| [`showstories`](https://onekey.dev/docs/api/hackernews/showstories.md) | Latest Show HN story ids. | 5 credits | stable |
| [`story_comments`](https://onekey.dev/docs/api/hackernews/story_comments.md) | Comments of a Hacker News story (flat, newest first). | 1 credit | stable |
| [`topstories`](https://onekey.dev/docs/api/hackernews/topstories.md) | Top story ids on Hacker News. | 5 credits | stable |
| [`updated_profiles`](https://onekey.dev/docs/api/hackernews/updated_profiles.md) | Recently changed Hacker News usernames. | 5 credits | stable |
| [`updates`](https://onekey.dev/docs/api/hackernews/updates.md) | Recently changed Hacker News item ids. | 5 credits | stable |
| [`user`](https://onekey.dev/docs/api/hackernews/user.md) | Fetch a Hacker News user profile. | 1 credit | stable |

Every endpoint page has a **Field mapping** section showing which source field becomes which [unified field](https://onekey.dev/docs/schema.md) (fixed schema) or platform-specific `ext.` field.
