{"uid":"cap_UDVwInTJ4YgvzltqAxTs2","slug":"minify-json-html-aeaf0789","name":"minify-json-html","description":"Minifier for JSON (re-serialised compact), HTML (comments and inter-tag whitespace stripped, pre/textarea preserved), CSS (comments, whitespace, trailing semicolons) and simple JS (comments and blank lines; not a full parser). Returns the minified text, detected type, and bytes before/after with the saving percentage. $0.01 per document.","url":"https://intel.rallylive.ca/dev/minify","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_sLzuZZV2I58PqbNdRccLd","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":"Minifies JSON, HTML, CSS, or simple JS content by stripping comments, whitespace, and redundancy, returning the minified text with byte savings statistics.","exampleAgentPrompt":"Can you minify this HTML for me and tell me how many bytes I'm saving? I want all comments and inter-tag whitespace stripped out.","exampleUseCases":[{"title":"Shrink API JSON payload","prompt":"Take this JSON response I have and minify it — I want to send it over the wire as compact as possible and see how much smaller it gets."},{"title":"Strip HTML before embedding in email","prompt":"Minify this HTML snippet for me by removing all comments and unnecessary whitespace — I need to keep the file size down before embedding it in a marketing email."},{"title":"Compress CSS for production deploy","prompt":"I have a CSS file I'm about to deploy to production — can you strip all the comments, extra whitespace, and trailing semicolons and tell me the byte savings?"}],"resultDescription":"Returns the minified version of the submitted document, the auto-detected content type (JSON/HTML/CSS/JS), the original byte count, the minified byte count, and the percentage of bytes saved.","failureModes":["Missing or empty input content returns an error","Unsupported content types (e.g. binary files, XML) may not be recognized or minified correctly","Complex JavaScript (beyond comment/blank-line stripping) may not be fully minified since the endpoint is not a full JS parser","Malformed HTML or JSON may produce unexpected output or errors"],"whenToPreferThis":"Choose this endpoint when you need a quick, lightweight minification pass on JSON, HTML, CSS, or simple JS and want byte-savings stats included in the response. It is ideal for agent pipelines that need to reduce payload sizes before transmission or storage. Prefer it over manual regex stripping because it handles type detection automatically and preserves semantically significant whitespace (e.g. inside pre and textarea tags). Note that it is not a full JS parser, so for complex JavaScript minification a dedicated JS minifier would be more appropriate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:07:05.685Z","isFirstParty":false}