# Hacker News API. Scrape live data from any public Hacker News link.

[APIs](https://socialtap.dev/apis/index.md)**Hacker News**

Get public stories, users, comments and more by link, handle or search, with stories in the same fields as on 21 other platforms. We handle the proxies, blocks and platform changes.

[Start for free](https://socialtap.dev/signup/)

GET socialtap.dev/v1/hackernews/story

Live data from 35 platforms.

[TikTok](https://socialtap.dev/apis/tiktok/index.md) · [Instagram](https://socialtap.dev/apis/instagram/index.md) · [Facebook](https://socialtap.dev/apis/facebook/index.md) · [YouTube](https://socialtap.dev/apis/youtube/index.md) · [Reddit](https://socialtap.dev/apis/reddit/index.md) · [Threads](https://socialtap.dev/apis/threads/index.md) · [GitHub](https://socialtap.dev/apis/github/index.md) · [LinkedIn](https://socialtap.dev/apis/linkedin/index.md) · [X](https://socialtap.dev/apis/x/index.md) · [Spotify](https://socialtap.dev/apis/spotify/index.md) · [Hacker News](https://socialtap.dev/apis/hackernews/index.md) · [Amazon](https://socialtap.dev/apis/amazon/index.md) · [Apple Music](https://socialtap.dev/apis/applemusic/index.md) · [Pinterest](https://socialtap.dev/apis/pinterest/index.md) · [Rumble](https://socialtap.dev/apis/rumble/index.md) · [Bluesky](https://socialtap.dev/apis/bluesky/index.md) · [Twitch](https://socialtap.dev/apis/twitch/index.md) · [Telegram](https://socialtap.dev/apis/telegram/index.md) · [TikTok Shop](https://socialtap.dev/apis/tiktokshop/index.md) · [Kwai](https://socialtap.dev/apis/kwai/index.md) · [Snapchat](https://socialtap.dev/apis/snapchat/index.md) · [SoundCloud](https://socialtap.dev/apis/soundcloud/index.md) · [Truth Social](https://socialtap.dev/apis/truthsocial/index.md) · [Kick](https://socialtap.dev/apis/kick/index.md) · [Komi](https://socialtap.dev/apis/komi/page/index.md) · [Lnk.Bio](https://socialtap.dev/apis/linkbio/profile/index.md) · [Linkme](https://socialtap.dev/apis/linkme/profile/index.md) · [Linktree](https://socialtap.dev/apis/linktree/profile/index.md) · [Pillar](https://socialtap.dev/apis/pillar/page/index.md) · [TikTok Ad Library](https://socialtap.dev/apis/tiktok-ad-library/index.md) · [Facebook Ad Library](https://socialtap.dev/apis/facebook-ad-library/index.md) · [Facebook Events](https://socialtap.dev/apis/facebook-events/index.md) · [Facebook Marketplace](https://socialtap.dev/apis/facebook-marketplace/index.md) · [Google Ads Transparency Center](https://socialtap.dev/apis/google-ads-transparency/index.md) · [LinkedIn Ad Library](https://socialtap.dev/apis/linkedin-ad-library/index.md)

## What Hacker News data can you get?

Public Hacker News stories with exact points and comment counts, their comments in thread order, and users with exact karma and about text. A user's stories, comments and favorites, the front page and the other feeds, and each month's Who is hiring thread as job postings. Search stories and comments by keyword, or find the stories that link to a page.

[Hacker News MCP server](https://socialtap.dev/mcp/hackernews/index.md)

- Stories 4
- User 1
- Search 2
- Comments 3
- Who Is Hiring 1

### Stories

- - [Post Hacker News Feed API Front page, new, best, Ask HN, Show HN and jobs 1 credit / page`GET /v1/hackernews/feed_stories`](https://socialtap.dev/apis/hackernews/feed-stories/index.md)
- - [Post Hacker News Story API Story, job or poll with exact points and comment count 1 credit`GET /v1/hackernews/story`](https://socialtap.dev/apis/hackernews/story/index.md)
- - [Post Hacker News User Favorites API Stories a user saved, with points and comments 1 credit / page`GET /v1/hackernews/user_favorites`](https://socialtap.dev/apis/hackernews/user-favorites/index.md)
- - [Post Hacker News User Stories API Every story a user posted, newest first 1 credit / page`GET /v1/hackernews/user_stories`](https://socialtap.dev/apis/hackernews/user-stories/index.md)

### User

- - [Profile Hacker News User API Exact karma, about text and submission count 1 credit`GET /v1/hackernews/user`](https://socialtap.dev/apis/hackernews/user/index.md)

### Search

- - [Comment Hacker News Comment Search API Comments by keyword, ranked or newest first 1 credit / page`GET /v1/hackernews/search_comments`](https://socialtap.dev/apis/hackernews/search-comments/index.md)
- - [Post Hacker News Search API Stories by keyword, ranked or newest first 1 credit / page`GET /v1/hackernews/search_stories`](https://socialtap.dev/apis/hackernews/search-stories/index.md)

### Comments

- - [Comment Hacker News Comment API One comment with its story, parent and thread depth 1 credit`GET /v1/hackernews/comment`](https://socialtap.dev/apis/hackernews/comment/index.md)
- - [Comment Hacker News Comments API Comments and replies on a story, in thread order 1 credit / page`GET /v1/hackernews/comments`](https://socialtap.dev/apis/hackernews/comments/index.md)
- - [Comment Hacker News User Comments API Every comment a user wrote, newest first 1 credit / page`GET /v1/hackernews/user_comments`](https://socialtap.dev/apis/hackernews/user-comments/index.md)

### Who Is Hiring

- - [Job Hacker News Who Is Hiring API Jobs from a month's Who is hiring thread 1 credit / page`GET /v1/hackernews/whoishiring_jobs`](https://socialtap.dev/apis/hackernews/whoishiring-jobs/index.md)

## Why not the official Hacker News API?

Hacker News' official API is free and needs no key, but it returns one item or user per request, gives every list as bare IDs, keeps text as HTML, and has no search and no favorites.

- ### No approval to wait for

  One API key works on every endpoint. There's no app to get reviewed and no account to connect.
- ### Anything public

  Read what anyone can see without logging in, not only the accounts you manage or that authorized your app.
- ### No daily quota

  You pay per request. Plans have no rate limit, only a ceiling that stops a runaway loop.

## Call the Hacker News API from your code.

Copy the request for your language, or hand it to your agent.

Hacker News Story Try in

```
const params = new URLSearchParams({
  url: "https://news.ycombinator.com/item?id=8863",
});
const res = await fetch(`https://socialtap.dev/v1/hackernews/story?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
```

`GET https://socialtap.dev/v1/hackernews/story`[Docs](https://socialtap.dev/apis/hackernews/story/index.md)

## Other platforms, same key.

Posts and profiles come back in the same fields wherever they're from.

- - [31 endpointsTikTokPosts, profiles, comments and more](https://socialtap.dev/apis/tiktok/index.md)
- - [29 endpointsInstagramPosts, profiles, comments and more](https://socialtap.dev/apis/instagram/index.md)
- - [14 endpointsFacebookPosts, profiles, comments and more](https://socialtap.dev/apis/facebook/index.md)
- - [6 endpointsYouTubePosts, profiles, comments and more](https://socialtap.dev/apis/youtube/index.md)
- - [13 endpointsRedditPosts, profiles, comments and more](https://socialtap.dev/apis/reddit/index.md)
- - [6 endpointsThreadsPosts, profiles and comments](https://socialtap.dev/apis/threads/index.md)
- - [20 endpointsGitHubProfiles, comments, repositories and more](https://socialtap.dev/apis/github/index.md)
- - [19 endpointsLinkedInPosts, profiles, comments and more](https://socialtap.dev/apis/linkedin/index.md)
- - [17 endpointsXPosts, profiles, comments and more](https://socialtap.dev/apis/x/index.md)
- - [12 endpointsSpotifyTracks, artists, playlists and more](https://socialtap.dev/apis/spotify/index.md)
- - [10 endpointsAmazonProducts, posts, profiles and more](https://socialtap.dev/apis/amazon/index.md)
- - [10 endpointsApple MusicTracks, artists, playlists and more](https://socialtap.dev/apis/applemusic/index.md)
- - [10 endpointsPinterestPins, profiles, boards and more](https://socialtap.dev/apis/pinterest/index.md)
- - [7 endpointsRumblePosts, profiles, comments and more](https://socialtap.dev/apis/rumble/index.md)
- - [5 endpointsBlueskyPosts, profiles and comments](https://socialtap.dev/apis/bluesky/index.md)
- - [5 endpointsTwitchVideos, profiles, transcripts and more](https://socialtap.dev/apis/twitch/index.md)
- - [4 endpointsTelegramPosts and channels](https://socialtap.dev/apis/telegram/index.md)
- - [4 endpointsTikTok ShopProducts and reviews](https://socialtap.dev/apis/tiktokshop/index.md)
- - [3 endpointsKwaiPosts and profiles](https://socialtap.dev/apis/kwai/index.md)
- - [3 endpointsSnapchatSpotlights, profiles and comments](https://socialtap.dev/apis/snapchat/index.md)
- - [3 endpointsSoundCloudTracks and artists](https://socialtap.dev/apis/soundcloud/index.md)
- - [3 endpointsTruth SocialPosts and profiles](https://socialtap.dev/apis/truthsocial/index.md)
- - [2 endpointsKickPosts and transcripts](https://socialtap.dev/apis/kick/index.md)
- - [1 endpointKomiPages](https://socialtap.dev/apis/komi/page/index.md)
- - [1 endpointLnk.BioProfiles](https://socialtap.dev/apis/linkbio/profile/index.md)
- - [1 endpointLinkmeProfiles](https://socialtap.dev/apis/linkme/profile/index.md)
- - [1 endpointLinktreeProfiles](https://socialtap.dev/apis/linktree/profile/index.md)
- - [1 endpointPillarPages](https://socialtap.dev/apis/pillar/page/index.md)
- - [3 endpointsTikTok Ad LibraryAds](https://socialtap.dev/apis/tiktok-ad-library/index.md)
- - [6 endpointsFacebook Ad LibraryAds, advertisers and transcripts](https://socialtap.dev/apis/facebook-ad-library/index.md)
- - [4 endpointsFacebook EventsEvents](https://socialtap.dev/apis/facebook-events/index.md)
- - [3 endpointsFacebook MarketplaceListings and places](https://socialtap.dev/apis/facebook-marketplace/index.md)
- - [6 endpointsGoogle Ads Transparency CenterAds and advertisers](https://socialtap.dev/apis/google-ads-transparency/index.md)
- - [2 endpointsLinkedIn Ad LibraryAds](https://socialtap.dev/apis/linkedin-ad-library/index.md)

## Frequently asked questions

What you send, what comes back and how your agent uses it.

[Contact us](mailto:support@socialtap.dev)

**Can I get more than the front page?**

Yes. Page through top with the cursor to read on past the first thirty stories, or pick new, best, ask, show or jobs with feed.

**Are replies to replies included?**

Yes. Replies come in the same flat list, with parent_id naming the comment it answers and depth saying how deep it is.

**How do I get only remote jobs?**

Every job has workplace_type: keep those whose value is remote. The first line decides it, so a job that says REMOTE or ONSITE counts as remote.

## Try it on a Hacker News link you have.

Get a key and send your first request in a minute. The same key works on every platform.

100free credits

- No credit card
- Failed requests are free
- Works on all 276 endpoints

[Start for free](https://socialtap.dev/signup/) [Read the docs](https://socialtap.dev/docs/index.md)

---

[HTML version](https://socialtap.dev/apis/hackernews/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
