{"uid":"cap_q6Etv00CSrpDNoAWZm7pZ","slug":"extract-main-as-csv-58cc4fa2","name":"extract-main-as-csv","description":"Extract the page's main as csv: fetches the URL, pulls every main element and returns them as CSV rows, 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/csv?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_h3XrhuRPRumNA_pWQudpr","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 webpage and extracts all <main> HTML elements, returning their content as CSV rows with a count","exampleAgentPrompt":"Fetch the main content section from https://example.com and give me everything inside the <main> element as a CSV with a row count.","exampleUseCases":[{"title":"News article body extraction","prompt":"Pull the main content from https://techcrunch.com/2024/01/15/some-article and return it as CSV rows so I can analyze the text in my data pipeline."},{"title":"Competitor landing page audit","prompt":"Grab the main section from https://competitor.com and give it to me as CSV — I want to see what content they're putting in their primary content area."},{"title":"Content monitoring for QA","prompt":"Fetch https://mysite.com/homepage and extract all the main element content as CSV so I can verify what's showing up in the primary content zone."}],"resultDescription":"Returns CSV-formatted rows containing the text and content of all <main> HTML elements found on the fetched page, along with a count of how many main elements were extracted. No browser or JavaScript rendering is required.","failureModes":["Page returns non-200 HTTP status — extraction fails with an error response","Page has no <main> element — returns empty CSV with zero count","Target URL is unreachable or times out — request error returned","Page blocks server-side fetching (bot protection) — may return empty or error","Malformed URL passed — request cannot be fulfilled"],"whenToPreferThis":"Choose this endpoint when you need the primary content area of a webpage (<main> element) in a structured, tabular CSV format ready for downstream data pipelines, spreadsheets, or agent workflows. Prefer this over text or JSON variants when your pipeline expects CSV rows. Use it when you don't have a browser available and need lightweight, serverless extraction at $0.01 per page.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:18.898Z","isFirstParty":false,"canonicalSlug":"extract-main-as-csv-58cc4fa2"}