{"uid":"cap_fx9yFcSYiV78dGwTLawEq","slug":"extract-classes-as-json-86c97a2b","name":"extract-classes-as-json","description":"Extract the page's classes as json: fetches the URL, pulls every classes element and returns them as a JSON array, 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/json?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_FJGtU3hdJbt4g8H5hcBp0","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 as a structured JSON array with a count, requiring no browser.","exampleAgentPrompt":"Can you fetch the page at https://example.com and give me a JSON list of all the CSS classes used on it?","exampleUseCases":[{"title":"CSS audit for a competitor site","prompt":"Pull all the CSS classes from https://competitor.com/landing and give me the full JSON list so I can see what CSS framework they might be using."},{"title":"Frontend class inventory for migration","prompt":"I need a complete JSON array of every CSS class used on https://myapp.io/dashboard — we're migrating our styles and want a full inventory."},{"title":"Automated style analysis pipeline","prompt":"For the URL https://blog.acme.com/home, extract all the HTML class names as JSON so I can feed them into my style analysis script."}],"resultDescription":"A JSON array listing every distinct CSS class name found on the fetched page, along with a count of how many class values were extracted. The response is structured for direct consumption by agents or pipelines.","failureModes":["URL is unreachable or returns a non-200 status — extraction fails with an error","Page has no class attributes — returns an empty array with count 0","URL is behind authentication or a bot-blocking mechanism — content may be incomplete","Malformed or dynamically rendered page (JavaScript-heavy SPA) — classes injected by JS at runtime may be missed since no browser is used"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, structured JSON extraction of CSS class names from a static or server-rendered HTML page without spinning up a browser. It is ideal for automated pipelines, CSS audits, or frontend analysis tasks where only class attributes are needed. Prefer it over full-page scraping APIs when you specifically want class data in a machine-readable format at minimal cost ($0.01/page).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:38.641Z","isFirstParty":false,"canonicalSlug":"extract-classes-as-json-86c97a2b"}