{"uid":"cap_I-RxYK17hVqb_8-IeXYZ7","slug":"extract-ids-as-json-0460142b","name":"extract-ids-as-json","description":"Extract the page's ids as json: fetches the URL, pulls every ids 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/ids/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_ZqfHt7BsWx-LfGcyW_sXb","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 element IDs, returning them as a structured JSON array with a count","exampleAgentPrompt":"Can you fetch https://example.com and give me a JSON list of all the HTML element IDs on that page?","exampleUseCases":[{"title":"Audit anchor targets on a landing page","prompt":"Grab https://mycompany.com/landing and pull out every HTML element ID as JSON — I need to see what anchor targets are available on that page."},{"title":"Automate UI testing with element IDs","prompt":"Fetch https://app.myproduct.io/dashboard and extract all the HTML element IDs as a JSON array so I can cross-check them against our test selectors."},{"title":"Verify CMS-generated page structure","prompt":"Pull all the IDs from https://blog.example.com/post/123 as a structured JSON list — I want to confirm the CMS is generating the expected section anchors."}],"resultDescription":"A JSON array of all HTML element ID attribute values found on the fetched page, accompanied by a count of how many IDs were discovered. The response is structured and machine-readable, suitable for direct use in pipelines or agent workflows.","failureModes":["URL is unreachable or returns non-200 status — empty result or error response","Page has no ID attributes — returns empty array with count 0","URL is malformed or missing — request fails with validation error","Page requires JavaScript rendering — IDs injected by JS may not be captured since no browser is used","Rate limiting or payment failure for the $0.01 USDC x402 charge — request blocked"],"whenToPreferThis":"Choose this endpoint when you need a clean, structured JSON list of HTML element IDs from a single page without spinning up a headless browser. It is ideal for lightweight pipeline steps, UI audits, anchor-link verification, and automated test-selector discovery where only the id attributes matter and you don't need other page content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:56:29.256Z","isFirstParty":false,"canonicalSlug":"extract-ids-as-json-0460142b"}