{"uid":"cap_5L0msaH2xDa314Mu2hDPw","slug":"2s-io-a492b848","name":"2s.io Hacker News Item Lookup","description":"Fetch a specific Hacker News item (story, comment, job, poll) by its numeric ID. Returns id, type, author, time (unix + ISO), title, URL, text, score, descendant count, kid count, parent (for comments), dead/deleted flags, canonical news.ycombinator.com URL.","url":"https://2s.io/api/news/hn-item","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["id"],"properties":{"id":{"type":"integer","description":"HN item id."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"id":38975234}}},"response":{"data":{"ok":true,"items":[{"by":"raphlinus","id":38975234,"url":null,"dead":false,"text":"I am very familiar with such low level workings. On a modern, fast machine, the amount of computation required by FM synthesis is so small compared with the machine&#x27;s throughput that it just doesn&#x27;t matter.<p>Yes, on modern chips float math will generally be faster than fixed point. This is not so much because the integer units get clogged, as that there&#x27;s a huge amount of chip area and optimization that goes into the float units (often SIMD, and a lot of FM synthesis can benefit from this, though feedback creates data dependencies). For example, multiply-and-add is usually one cycle in float, but would always be two separate instructions in integers.<p>My recollection is that older ARM chips have a special issue with latency of data dependencies originating from the float unit (NEON, which is optimized for SIMD vector operations) to the integer unit. I suspect this is no longer the case, or is less of an issue.","time":1705099736,"type":"comment","hnUrl":"https://news.ycombinator.com/item?id=38975234","score":null,"title":null,"parent":38975003,"deleted":false,"timeIso":"2024-01-12T22:48:56.000Z","kidsCount":4,"descendantsCount":null}],"total":1,"source":{"url":"https://github.com/HackerNews/API","license":"MIT-licensed API (Y Combinator Hacker News)","provider":"Hacker News (Y Combinator) — Firebase API"}},"meta":{"cost":{"usd":0.0012,"tier":0},"caller":"x402","version":null,"endpoint":"news.hn-item","settlement":{"txHash":"0x66f05fde21332e056646ed1c1580fcb55400bc548f0e57c116c2846a4ae4a287","network":"eip155:8453","success":true}}}},"exampleRequest":{"id":38975234},"tags":["x402"],"displayCostAmount":"0.0012","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n3G8sAYRaH3XPnm9ucj9Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a single Hacker News item (story, comment, job, or poll) by its numeric ID, returning full metadata including author, score, timestamps, and URLs.","exampleAgentPrompt":"Can you pull up the Hacker News item with ID 38975234 and tell me the title, score, author, and how many comments it has?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the HN item's id, type (story/comment/job/poll), author username, unix timestamp, ISO timestamp, title, external URL, text body, score, descendant (total comment) count, number of direct kids, parent item ID (for comments), dead/deleted flags, and the canonical news.ycombinator.com URL for the item.","failureModes":["Item ID not found or does not exist — returns 404 or empty result","Invalid or non-integer ID — returns 400 validation error","Deleted or dead items may return with dead/deleted flags set and minimal fields","Payment failure via x402 protocol — item not returned until payment resolves","HN API upstream outage — service may return 5xx or timeout"],"whenToPreferThis":"Use this endpoint when you have a specific Hacker News item ID and need full structured metadata about that single item — story, comment, job, or poll. Prefer this over scraping news.ycombinator.com directly, as it returns clean parsed JSON with normalized timestamps and canonical URLs. Best for agent workflows that already have an HN item ID from a search or link and need to resolve its full details.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:04:50.656Z","isFirstParty":false}