{"openapi":"3.1.0","info":{"title":"Hacker News Stories Jobs and Comments (x402 & MCP)","version":"0.1.0","description":"Hacker News stories, Ask HN, Show HN, jobs, polls and nested comments by keyword search, live feeds or item IDs, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/hackernews-com/v1/search":{"post":{"operationId":"hackernews_com_search","summary":"Hacker News Stories Jobs and Comments: Search Hacker News stories, jobs and comments","description":"Keyword search across Hacker News posts and comments with optional author profile enrichment. Unit price: $0.002000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["hackernews-com","News, Media"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.020000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"searchQuery":{"type":"string","description":"Keyword or phrase to search on Hacker News. When set, Specific item IDs and Hacker News feeds are ignored; clear it to use those inputs.","maxLength":200},"recordTypes":{"type":"array","items":{"type":"string"},"description":"Choose which item types to keep as dataset rows: story, comment, job, poll, or pollopt. Applies to search, feed, and item-ID modes.","default":["story","comment","job","poll","pollopt"],"minItems":1,"maxItems":5},"enrichDetails":{"type":"boolean","description":"Add website and social links from public author profiles, without creating extra profile rows. Limited to 25 distinct authors and about 20 seconds per collection part of up to 70 rows; gaps are recorded in leadAbsences.","default":true},"skipNoLeads":{"type":"boolean","description":"When enabled, omit records without an email, phone, location, organization, website, or social profile. Author username alone does not count as an outreach clue.","default":false},"maxFetches":{"type":"integer","description":"Most candidate items to read per collection part of up to 70 rows; must be at least Maximum rows per search, feed, or item ID. Reading stops once the row allowance is filled; public profile enrichment has a separate 25-author and 20-second limit.","default":500,"minimum":1,"maximum":5000},"maxResults":{"type":"integer","description":"Most Dataset rows for each search query, feed, or explicit item ID (1–2,000). Default 70; larger values are collected in parts of 70. Root and descendant row types count together for that input. The run stops at your maximum total charge. Free platform plan: 200 rows per run and 10 runs of this Actor.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"searchQuery":"AI","enrichDetails":false,"maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_hackernews_com"},"example":{"jobId":"job_hackerne_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","type":"example_type","title":"example_title","rootTitle":"example_rootTitle","text":"example_text"}],"meta":{"site":"hackernews-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":20000,"settledMicrousd":2000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/hackernews-com/v1/feeds":{"post":{"operationId":"hackernews_com_feeds","summary":"Hacker News Stories Jobs and Comments: Live Hacker News feeds (top, new, best, ask, show, job)","description":"Collect live posts and optional comment or poll descendants from selected Hacker News feeds. Unit price: $0.002000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["hackernews-com","News, Media"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.020000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"feeds":{"type":"array","items":{"type":"string"},"description":"Choose live feeds: top, new, best, ask, show, or job. Used when Search keyword and Specific item IDs are both empty.","minItems":1,"maxItems":6},"recordTypes":{"type":"array","items":{"type":"string"},"description":"Choose which item types to keep as dataset rows: story, comment, job, poll, or pollopt. Applies to search, feed, and item-ID modes.","default":["story","comment","job","poll","pollopt"],"minItems":1,"maxItems":5},"includeDescendants":{"type":"boolean","description":"Add separate comment and poll-option rows beneath selected roots in feed or item-ID mode, up to Maximum descendant depth. Each added row is billed like any other row; search mode returns matching rows without expanding threads.","default":false},"maxDepth":{"type":"integer","description":"Depth below each selected root to traverse when descendants are enabled. A root has depth 0. Not used in keyword-search mode.","default":2,"minimum":0,"maximum":10},"enrichDetails":{"type":"boolean","description":"Add website and social links from public author profiles, without creating extra profile rows. Limited to 25 distinct authors and about 20 seconds per collection part of up to 70 rows; gaps are recorded in leadAbsences.","default":true},"skipNoLeads":{"type":"boolean","description":"When enabled, omit records without an email, phone, location, organization, website, or social profile. Author username alone does not count as an outreach clue.","default":false},"maxFetches":{"type":"integer","description":"Most candidate items to read per collection part of up to 70 rows; must be at least Maximum rows per search, feed, or item ID. Reading stops once the row allowance is filled; public profile enrichment has a separate 25-author and 20-second limit.","default":500,"minimum":1,"maximum":5000},"maxResults":{"type":"integer","description":"Most Dataset rows for each search query, feed, or explicit item ID (1–2,000). Default 70; larger values are collected in parts of 70. Root and descendant row types count together for that input. The run stops at your maximum total charge. Free platform plan: 200 rows per run and 10 runs of this Actor.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"feeds":["top"],"enrichDetails":false,"maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_hackernews_com"},"example":{"jobId":"job_hackerne_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","type":"example_type","title":"example_title","rootTitle":"example_rootTitle","text":"example_text"}],"meta":{"site":"hackernews-com","endpoint":"feeds","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":20000,"settledMicrousd":2000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/hackernews-com/v1/items":{"post":{"operationId":"hackernews_com_items","summary":"Hacker News Stories Jobs and Comments: Hacker News items and comment trees by item ID","description":"Read specific Hacker News item IDs and optional nested comment or poll option rows. Unit price: $0.002000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["hackernews-com","News, Media"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.020000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"},"description":"Positive Hacker News item IDs (the number after item?id= in a news.ycombinator.com link), used when Search keyword is empty. Ignored when Search keyword is set (they are not collected or billed). Each item ID gets its own Maximum rows per search, feed, or item ID.","maxItems":100},"recordTypes":{"type":"array","items":{"type":"string"},"description":"Choose which item types to keep as dataset rows: story, comment, job, poll, or pollopt. Applies to search, feed, and item-ID modes.","default":["story","comment","job","poll","pollopt"],"minItems":1,"maxItems":5},"includeDescendants":{"type":"boolean","description":"Add separate comment and poll-option rows beneath selected roots in feed or item-ID mode, up to Maximum descendant depth. Each added row is billed like any other row; search mode returns matching rows without expanding threads.","default":false},"maxDepth":{"type":"integer","description":"Depth below each selected root to traverse when descendants are enabled. A root has depth 0. Not used in keyword-search mode.","default":2,"minimum":0,"maximum":10},"enrichDetails":{"type":"boolean","description":"Add website and social links from public author profiles, without creating extra profile rows. Limited to 25 distinct authors and about 20 seconds per collection part of up to 70 rows; gaps are recorded in leadAbsences.","default":true},"skipNoLeads":{"type":"boolean","description":"When enabled, omit records without an email, phone, location, organization, website, or social profile. Author username alone does not count as an outreach clue.","default":false},"maxFetches":{"type":"integer","description":"Most candidate items to read per collection part of up to 70 rows; must be at least Maximum rows per search, feed, or item ID. Reading stops once the row allowance is filled; public profile enrichment has a separate 25-author and 20-second limit.","default":500,"minimum":1,"maximum":5000},"maxResults":{"type":"integer","description":"Most Dataset rows for each search query, feed, or explicit item ID (1–2,000). Default 70; larger values are collected in parts of 70. Root and descendant row types count together for that input. The run stops at your maximum total charge. Free platform plan: 200 rows per run and 10 runs of this Actor.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"itemIds":["8863"],"enrichDetails":false,"maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_hackernews_com"},"example":{"jobId":"job_hackerne_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","type":"example_type","title":"example_title","rootTitle":"example_rootTitle","text":"example_text"}],"meta":{"site":"hackernews-com","endpoint":"items","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":20000,"settledMicrousd":2000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/hackernews-com/v1/health":{"get":{"operationId":"hackernews_com_health","summary":"Hacker News Stories Jobs and Comments: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["hackernews-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_hackernews_com":{"type":"object","properties":{"rowType":{"type":["string","number","boolean","object","array","null"]},"id":{"type":["string","number","boolean","object","array","null"]},"type":{"type":["string","null"],"title":"Type"},"title":{"type":["string","null"],"title":"Title"},"rootTitle":{"type":["string","number","boolean","object","array","null"]},"text":{"type":["string","null"],"title":"Text"},"by":{"type":["string","null"],"title":"Author"},"score":{"type":["string","null"],"title":"Score"},"createdAt":{"type":["string","null"],"title":"Created"},"phones":{"type":["array","null"],"title":"Phones"},"emails":{"type":["array","null"],"title":"Emails"},"address":{"type":["object","null"],"title":"Address"},"geo":{"type":["object","null"],"title":"Geo"},"person":{"type":["object","null"],"title":"Person"},"org":{"type":["object","null"],"title":"Organization"},"web":{"type":["object","null"],"title":"Web"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"},"leadAbsences":{"type":["object","null"],"title":"Lead absences"},"sourceSearchQuery":{"type":["string","null"],"title":"Search"},"searchRank":{"type":["number","null"],"title":"Search rank"},"sourceFeeds":{"type":["array","null"],"title":"Feeds"},"hnUrl":{"type":["string","null"],"format":"uri","title":"Hacker News"}},"additionalProperties":true},"Response_hackernews_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_hackernews_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}