{"uid":"cap_4pj7uQ4BFzUYuzbQGc0zC","slug":"extract-classes-as-csv-493d6c0a","name":"extract-classes-as-csv","description":"Extract the page's classes as csv: fetches the URL, pulls every classes 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/classes/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_rGKSpScsm7wMsOOWluREJ","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 CSS class names, returning them as CSV rows with occurrence counts","exampleAgentPrompt":"Can you pull all the CSS classes from https://example.com and give me a CSV with the class names and how many times each one appears on the page?","exampleUseCases":[{"title":"Audit CSS classes on a landing page","prompt":"Pull every CSS class used on https://mycompany.com/landing and give me a CSV so I can see which classes appear most often and audit for unused or duplicate styles."},{"title":"Compare class usage across competitor sites","prompt":"Extract all the CSS classes from https://competitor.com as a CSV — I want to see what class names they use and how frequently, so I can compare their front-end structure to ours."},{"title":"Feed class data into a design-system pipeline","prompt":"Fetch https://app.example.com/dashboard and extract all the HTML class names into a CSV with counts — I need to pipe this into our design-system audit script."}],"resultDescription":"A CSV document where each row represents a unique CSS class name found on the fetched page, accompanied by a count of how many times that class appears. The response is plain structured text suitable for direct ingestion into spreadsheets, data pipelines, or further analysis.","failureModes":["Invalid or unreachable URL returns an error with no CSV output","Page with no class attributes returns an empty or header-only CSV","Paywalled or bot-blocked pages may return incomplete or empty results","Malformed HTML may result in partial class extraction","Network timeout if the target page is slow to respond"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable CSV of all CSS classes present on a specific web page, especially for front-end audits, design-system analysis, or feeding class data into automated pipelines. It requires no browser or JavaScript rendering and is optimized for single-page, single-element-type extraction at low cost. Prefer this over JSON or text variants when downstream tooling expects CSV format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:56:09.390Z","isFirstParty":false,"canonicalSlug":"extract-classes-as-csv-493d6c0a"}