{"uid":"cap_rH5BJ8EBYzL9iuJJ5ObRb","slug":"extract-main-as-json-400b79af","name":"extract-main-as-json","description":"Extract the page's main as json: fetches the URL, pulls every main 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/main/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_9XbHnOXcwZj761QPVw8Vm","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 URL and extracts all HTML <main> elements, returning them as a structured JSON array with a count","exampleAgentPrompt":"Fetch https://example.com/article and extract all the <main> elements as a JSON array so I can process the primary content in my pipeline.","exampleUseCases":[{"title":"Content pipeline ingestion from article pages","prompt":"Pull the main content section from https://techcrunch.com/2024/01/15/ai-agents-rise/ and give it back as JSON so I can feed it into my summarization pipeline."},{"title":"Structured content audit across web pages","prompt":"Grab the <main> element from https://docs.myproduct.com/getting-started and return it as JSON — I need to audit what the primary content area actually contains on that page."},{"title":"Competitive intelligence extraction","prompt":"Fetch https://competitor.com/pricing and extract the main page content as a JSON array so I can analyze what they're highlighting in their primary content section."}],"resultDescription":"A JSON object containing an array of all <main> elements found on the fetched page, along with a count of how many were found. Each element in the array represents one extracted <main> HTML element's content in structured form.","failureModes":["URL is unreachable or returns a non-200 status — extraction fails with an error response","Page has no <main> element — returns an empty JSON array with count of 0","URL points to a non-HTML resource (PDF, image, etc.) — parsing may yield no results","Payment not provided or invalid — x402 payment required error before processing","Malformed URL in query parameter — request rejected or fetch fails"],"whenToPreferThis":"Choose this endpoint when you need the structured <main> element content of a page in JSON format for downstream programmatic processing, agent pipelines, or data ingestion — especially when you don't have a browser available and need a lightweight server-side fetch. Prefer this over text or CSV variants when your pipeline expects JSON. Prefer over full-page scrapers when you only need the primary content block.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:57:03.096Z","isFirstParty":false,"canonicalSlug":"extract-main-as-json-400b79af"}