{"uid":"cap_VRaehPlwUqvrlp7_hZcu4","slug":"extract-comments-as-json-058cc76a","name":"extract-comments-as-json","description":"Extract the page's comments as json: fetches the URL, pulls every comments element and returns them as a JSON array, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.","url":"https://page.intel.rallylive.ca/page/comments/json?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_go6jwFMTPhXKdeJ_G3geV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a web page URL and extracts all HTML comment nodes, returning them as a structured JSON array with a count.","exampleAgentPrompt":"Can you extract all the HTML comments from https://example.com/page and give them back to me as a JSON array so I can see what's hidden in the source?","exampleUseCases":[{"title":"SEO metadata audit via hidden comments","prompt":"Pull all the HTML comments from https://shop.acme.com/products and return them as JSON — I want to see if there are any developer notes or hidden SEO hints buried in the source."},{"title":"Competitive intelligence pipeline ingestion","prompt":"Fetch https://competitor.com/pricing and extract every HTML comment as a structured JSON array — I need to pipe this into our analysis workflow."},{"title":"QA check for accidental dev comments in production","prompt":"Check https://myapp.io/home for any HTML comments left in the page source and return them as JSON so I can verify nothing sensitive was accidentally published."}],"resultDescription":"A JSON array where each element represents one HTML comment node found on the page, plus a total count of comments extracted. The response is structured for direct agent or pipeline consumption with no browser required.","failureModes":["URL is unreachable or returns non-200 status — endpoint may return an error or empty array","Page has no HTML comment nodes — returns empty array with count of 0","Target page blocks server-side fetch requests (e.g. bot protection) — may return error or incomplete data","Malformed URL input — request may fail with a validation error","Dynamic JavaScript-rendered comments not captured — server-side HTML only, no browser execution"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable JSON output of HTML comment nodes specifically, and you want a count alongside the array for downstream logic. Prefer it over text or CSV variants when your pipeline expects JSON. Use it when you don't want to spin up a browser and just need raw server-rendered HTML comment extraction at low cost ($0.01/page).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:42:59.869Z","isFirstParty":false,"canonicalSlug":"extract-comments-as-json-058cc76a"}