{"uid":"cap__nJsHIXngbmJQ_ksJlwLc","slug":"extract-main-as-text-603dac45","name":"extract-main-as-text","description":"Extract the page's main as text: fetches the URL, pulls every main element and returns them as plain lines, 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/text?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_gyCOUyfTkBdl36DEn8JXV","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 <main> elements, returning their text content as plain lines with a count","exampleAgentPrompt":"Can you grab the main content from https://example.com/article and give it to me as plain text lines?","exampleUseCases":[{"title":"Article body extraction for summarization","prompt":"Pull the main content from https://techcrunch.com/2024/05/01/some-article as plain text so I can summarize it."},{"title":"SEO main content audit","prompt":"Fetch the main element text from https://mysite.com/landing-page so I can check what content search engines are seeing in the main section."},{"title":"Pipeline data ingestion from web page","prompt":"Extract the main section text from https://docs.example.com/getting-started and return it as plain lines so my pipeline can process it."}],"resultDescription":"Plain text lines representing the text content of all <main> HTML elements found on the fetched page, along with a count of the elements extracted. No HTML markup, no browser required.","failureModes":["URL is unreachable or returns a non-200 status — extraction fails with an error","Page has no <main> element — returns empty result or zero count","Page requires JavaScript rendering — content may be missing since no browser is used","Invalid or malformed URL input — request rejected","Payment not provided or insufficient — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need only the <main> element text from a page in plain-line format, without running a full browser or parsing the entire DOM. Ideal for agent pipelines that need structured, single-element-type extraction cheaply ($0.01/page) and predictably. Prefer over full-page scrapers when you specifically want main content isolated, and over CSV/JSON variants when downstream processing expects plain text lines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:56:04.181Z","isFirstParty":false,"canonicalSlug":"extract-main-as-text-603dac45"}