← Back to directory

Find CSS selectors that a delivered page never uses (PurgeCSS): rejected selecto...

https://code.halowerk.com/v1/unused-css

Overview

Find CSS selectors that a delivered page never uses (PurgeCSS): rejected selectors and bytes saved per stylesheet, optionally the purged CSS. Runs PurgeCSS 8 over the HTML of a page and its CSS: inline <style> blocks are always included; CSS can be passed inline or, with a page URL, linked stylesheets are fetched (robots.txt respected, at most 6 stylesheets, 1.5 MB each).

Protocol x402 (POST)
Price $0.0040
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 14:09:42

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "css": ".card{padding:1rem}.modal{display:none}p{margin:0}", "html": "<div class=\"card\"><p>Hi</p></div>" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Only classes, ids and elements present in the given HTML count as used; classes added later by JavaScript must be safelisted.", "One page is analysed; CSS shared across several pages may be used elsewhere." ], "result": { "skipped": [], "stylesheets": [ { "bytes_after": 30, "bytes_before": 50, "name": "css", "rejected": [ ".modal" ], "rejected_count": 1, "saved_percent": 40 } ], "tool": "PurgeCSS 8.0.0", "totals": { "bytes_after": 30, "bytes_before": 50, "rejected_selectors": 1, "saved_percent": 40 } }, "service": "unused-css", "status": "success" }, "type": "json" }