Home · APIs · Developer data · Hacker News post

Hacker News post API

One request, one key: POST /v1/developer/hackernews/post. The sample below is a real response captured 20 November 2026, shortened for display (long text cut, lists cut to three items); it is not invented.

Price

1 credit a call. One call is about $0.0098 and 1,000 calls are about $9.80 at the smallest paid plan's rate.Formula A call that comes back empty is not charged.

Try it free

Runs one real call with the sample input below. No key and no sign-up; a few runs a day per visitor.

{
  "url": "https://news.ycombinator.com/item?id=43367191"
}

What it returns

FieldTypeValue in the sample
urlstringhttps://news.ycombinator.com/item?id=43367191
platformstringhackernews
extracted_atstring2026-11-20T10:22:02.682329+00:00
textstringAnd that was how everybody on the North hemisphere went blind...
author_namestringmarcosdumay
author_handlestringmarcosdumay
published_atstring2025-03-14T20:53:00+00:00
published_at_unixnumber1741985580
date_sourcestringhn_firebase_api
comments_countnumber0
content_typestringstory
extrasobject{"hn_type":"comment","post_type":"story","kids":[],"domain":"","deleted":false,"dead":false,"hn_url":"https...
credits_usednumber1
latency_msnumber200

Sample response (20 November 2026)

{
  "url": "https://news.ycombinator.com/item?id=43367191",
  "platform": "hackernews",
  "extracted_at": "2026-11-20T10:22:02.682329+00:00",
  "text": "And that was how everybody on the North hemisphere went blind...",
  "title": null,
  "description": null,
  "author_name": "marcosdumay",
  "author_handle": "marcosdumay",
  "author_url": null,
  "author_avatar": null,
  "author_followers": null,
  "author_verified": null,
  "published_at": "2025-03-14T20:53:00+00:00",
  "published_at_unix": 1741985580,
  "modified_at": null,
  "date_source": "hn_firebase_api",
  "likes": null,
  "comments_count": 0,
  "shares": null,
  "views": null,
  "reposts": null,
  "saves": null,
  "thumbnail_url": null,
  "video_url": null,
  "images": [],
  "content_type": "story",
  "hashtags": [],
  "mentions": [],
  "language": null,
  "extras": {
    "hn_type": "comment",
    "post_type": "story",
    "kids": [],
    "domain": "",
    "deleted": false,
    "dead": false,
    "hn_url": "https://news.ycombinator.com/item?id=43367191",
    "tools_mentioned": []
  },
  "errors": [],
  "credits_used": 1,
  "latency_ms": 200
}

Measured on that call: 835 ms.

Code

curl -X POST https://api.foxapis.com/v1/developer/hackernews/post \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://news.ycombinator.com/item?id=43367191"}'
import requests

r = requests.post(
    "https://api.foxapis.com/v1/developer/hackernews/post",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"url":"https://news.ycombinator.com/item?id=43367191"},
)
print(r.json())
const r = await fetch("https://api.foxapis.com/v1/developer/hackernews/post", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"url":"https://news.ycombinator.com/item?id=43367191"}),
});
console.log(await r.json());

n8n (HTTP Request node: paste it into a workflow)

{
  "nodes": [
    {
      "name": "Hacker News post",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.foxapis.com/v1/developer/hackernews/post",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"url\":\"https://news.ycombinator.com/item?id=43367191\"}"
      }
    }
  ],
  "connections": {}
}

Assistants (Claude, ChatGPT, Cursor)

Connect the FoxAPIs server once; the tools it offers are listed on the MCP page.

claude mcp add --transport http foxapis https://foxapis.com/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Errors and limits

Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.

Get my free key

Try it free, no key: Buying intent checker

More from Hacker News: comments

Same category: Developer data · all APIs

How we calculate

Data: scripts/data/endpoint-credits.json and plans.json, 2026-11-20. Every other figure on this page is copied from the record, not calculated by us.