{"uid":"cap_zwPHZSuHM_TV310GpKMGL","slug":"extract-classes-as-text-66af1ce0","name":"extract-classes-as-text","description":"Extract the page's classes as text: fetches the URL, pulls every classes 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/classes/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_BHIK-OAv7wgoX-ol3aha9","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 given URL and extracts all CSS class names found on the page, returning them as plain text lines with a count.","exampleAgentPrompt":"Can you extract all the CSS class names from https://example.com and give me a plain text list with a count of how many there are?","exampleUseCases":[{"title":"CSS framework audit for a client site","prompt":"I need to see every CSS class being used on https://acmecorp.com — can you pull them all out as plain text so I can audit what's there?"},{"title":"Competitor styling reconnaissance","prompt":"Fetch https://competitor-site.com and extract all the HTML class names so I can understand what CSS conventions or frameworks they're using."},{"title":"Automated class inventory for a pipeline","prompt":"As part of my scraping pipeline, grab all the class names from https://storefront.example.io and return them as plain lines with a total count."}],"resultDescription":"A plain-text list of every unique CSS class name found on the fetched page, one per line, accompanied by a total count of class elements discovered. No browser rendering is required; the service fetches and parses the raw HTML server-side.","failureModes":["URL is unreachable or returns a non-200 status — endpoint may return an error or empty result","Page has no class attributes — returns an empty list with count of zero","Paywalled or login-protected pages return only public HTML, missing classes behind auth","Dynamic/JS-rendered class names not present in static HTML are missed since no browser is used","Invalid or malformed URL input causes a request failure"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.01/call), server-side extraction of all CSS class names from a static or server-rendered web page without spinning up a headless browser. It is ideal for pipelines that need structured, single-element-type data (classes only) as plain text. Prefer it over full-page scrapers when only class metadata is needed, and over browser-based tools when JavaScript rendering is not required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:42:40.717Z","isFirstParty":false,"canonicalSlug":"extract-classes-as-text-66af1ce0"}