{"uid":"cap_U200AvbDCTxjhcFP8KXmP","slug":"extract-main-as-markdown-13f60322","name":"extract-main-as-markdown","description":"Extract the page's main as markdown: fetches the URL, pulls every main element and returns them as a Markdown list, 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/markdown?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_5vOTQ2Y-PpZERumftOCAz","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 their content as a Markdown list with a count","exampleAgentPrompt":"Can you grab the main content from https://example.com/article and return it as markdown so I can summarize it?","exampleUseCases":[{"title":"Content pipeline for AI summarization","prompt":"Pull the main content from https://blog.example.com/post/how-ai-works as markdown — I want to feed it into my summarizer agent."},{"title":"Comparing landing page copy","prompt":"Fetch the main section of https://startup.io/pricing as markdown so I can compare their copy to ours."},{"title":"Archiving article content from news site","prompt":"Extract the main article content from https://news.example.com/story/123 as markdown and save it to my notes."}],"resultDescription":"A Markdown-formatted list of all content found within <main> HTML elements on the fetched page, along with a count of how many main elements were found. The response is structured for easy consumption by agents and downstream pipelines.","failureModes":["URL is unreachable or returns a non-200 status — endpoint may return an error or empty result","Page has no <main> element — returns an empty list with count of zero","Page requires JavaScript rendering — content may be missing since no browser is used","Rate limiting or payment failure — call is not executed and returns payment error","Malformed URL input — request fails with a validation error"],"whenToPreferThis":"Choose this endpoint when you need to extract only the primary <main> HTML element content from a page in Markdown format, without running a browser. It is ideal for agent pipelines that need clean, structured Markdown output from a single URL at low cost ($0.01/call). Prefer it over full-page scrapers when you specifically want main-section content, and over JSON variants when downstream tools expect Markdown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:56:51.138Z","isFirstParty":false,"canonicalSlug":"extract-main-as-markdown-13f60322"}