AgentAPIGate
Back to Catalog
GET /v1/hn/item/detailPack: social·MCP Tool: hn_item_detail

Hacker News Official Item, Story or Job Detail

Fetch any Hacker News story, comment, poll, or job item via the official Firebase API with author, score, timestamp, child IDs, and URL.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Hacker News numeric item ID (e.g. 8863)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/hn/item/detail" \
  --data-urlencode "id=8863" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-63% tokens
# Hacker News Official Item, Story or Job Detail (`hn.item.detail`)
**id**: 8863 · **type**: story · **title**: My YC app: Dropbox - Throw away your USB drive · **by**: dhouston · **score**: 104 · **descendants**: 71 · **url**: http://www.getdropbox.com/u/2/screencast.html

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: hn.item.detail · Method: GET
ParameterTypeReqSample / DefaultDescription
idnumberrequired8863Hacker News numeric item ID (e.g. 8863)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolhn_item_detailOAuth 2.1 Hub & /mcp/social
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency71 ms$0 billed on empty or 4xx/5xx
Token Economy156t → 72t (-63%)Partner credit: eligible

More Social & Video Real-Time APIs

Frequently Asked Questions

How do I call Hacker News Official Item, Story or Job Detail (hn.item.detail) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/hn/item/detail with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool hn_item_detail on https://mcp.agentapigate.ai/mcp.

What does hn.item.detail cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on hn.item.detail?

Passing ?format=md transforms the response into normalized Markdown (~72 tokens vs ~156 raw tokens, saving 63% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only social endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["social"], optional allowed_endpoints: ["hn.item.detail"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.