{"uid":"cap_2p_NjfGCj6HBN96fiVS3d","slug":"extract-forms-as-json-82960b93","name":"extract-forms-as-json","description":"Extract the page's forms as json: fetches the URL, pulls every forms 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/forms/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_BW0I5chhHHIB1xeCiBKUF","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 and extracts all HTML form elements, returning them as a structured JSON array with a count.","exampleAgentPrompt":"Can you pull all the HTML forms from https://example.com/contact and give them to me as JSON so I can see what fields they contain?","exampleUseCases":[{"title":"Audit sign-up forms on competitor site","prompt":"Go to https://signup.competitor.com and extract all the forms on that page as JSON — I want to see every field they're asking for in their registration flow."},{"title":"Detect login form structure for automation","prompt":"Fetch https://app.myplatform.io/login and give me all the forms on that page as structured JSON so I can map out the input fields for my automation pipeline."},{"title":"Validate forms exist on a landing page","prompt":"Check https://campaign.mybrand.com/promo and extract any forms you find as JSON — I need to confirm the lead capture form is actually there and see its fields."}],"resultDescription":"A JSON array of all form elements found on the fetched page, each entry representing a form with its fields and attributes, plus a total count of forms found.","failureModes":["URL is unreachable or returns a non-200 status, resulting in a fetch error","Page has no forms, returning an empty array with count 0","JavaScript-rendered forms are missed since no browser is used","Malformed or highly non-standard HTML may cause incomplete form parsing","Rate limiting or access restrictions on the target URL block the fetch"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, serverless extraction of HTML form elements from a page without spinning up a headless browser. Ideal for pipelines that need structured JSON output of forms specifically, rather than full-page scraping. Best when the target forms are in static or server-rendered HTML. Prefer this over general-purpose scrapers when you only need form data and want predictable JSON structure at low cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T00:38:01.351Z","isFirstParty":false,"canonicalSlug":"extract-forms-as-json-82960b93"}