{"uid":"cap_6uFEDGHFhYj2eaDVn7fkp","slug":"json-minify-api-8156de58","name":"JSON Minify API","description":"Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.","url":"https://api.bakhour.ca/json/minify","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"minified":"{\"a\":1}"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_L4acCQecajSUcBSxhBvyy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes whitespace and formatting from a JSON string to produce a compact, minified version","exampleAgentPrompt":"Can you minify this JSON for me so it's compact with no extra whitespace: '{\"name\": \"Alice\", \"age\": 30, \"active\": true}'?","exampleUseCases":[{"title":"Compact JSON before API transmission","prompt":"I need to send this JSON payload to an external service but want to strip all the whitespace first to reduce size — can you minify this: '{\"user\": {\"id\": 42, \"email\": \"bob@example.com\"}, \"timestamp\": \"2024-01-15\"}'?"},{"title":"Minify config file for deployment","prompt":"Take this pretty-printed config JSON and minify it into a single line so I can embed it in an environment variable: '{\"database\": {\"host\": \"localhost\", \"port\": 5432, \"name\": \"mydb\"}}'"},{"title":"Reduce JSON log entry size","prompt":"This JSON log entry has a lot of formatting whitespace that's wasting space — can you minify it to a compact version: '{\"level\": \"error\", \"message\": \"Connection failed\", \"code\": 503}'?"}],"resultDescription":"Returns a JSON object with a 'minified' field containing the input JSON string stripped of all unnecessary whitespace, newlines, and indentation, rendered as a compact single-line JSON string.","failureModes":["Invalid JSON input returns an error — the text must be valid JSON","Empty text field may return an error or empty result","Malformed request body (missing 'text' property) results in a bad request response","Very large JSON strings may hit payload size limits"],"whenToPreferThis":"Choose this endpoint when you need a simple, deterministic, paid microservice to minify JSON strings programmatically within an automated agent workflow. It is suitable when you want a reliable utility that accepts raw JSON text and returns a minified version without requiring you to run local code or depend on a library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:56.292Z","isFirstParty":false}