{"uid":"cap_mshhw__GAmWwOcoulMQeI","slug":"delx-commerce-accept-encoding-rank-b9eac80e","name":"Delx Commerce — Accept-Encoding Rank","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/accept-encoding-rank?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"header":{"type":"string","maxLength":8192,"description":"Header supplied to Accept Encoding Rank; used only for this bounded calculation and processed in memory without retention."},"offers":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Offers supplied to Accept Encoding Rank; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"ranked":[{"offer":"br","quality":1},{"offer":"gzip","quality":0.8}],"selected":"br"},"schema":"delx/util-accept-encoding-rank/v1","status":"pass","evidence":{"retained":false,"input_sha256":"38b764e7204eb17f82ed20cce029e6a2c8cd6149a609fe91d9a2ab05143350ab","external_calls":0},"operation":"web_reliability:accept_encoding_rank"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FN6KLWQ_sOdmoNMrV6Xg1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ranks and selects the best HTTP Accept-Encoding compression format from a list of offers given an Accept-Encoding header value","exampleAgentPrompt":"Given the Accept-Encoding header 'br;q=1.0, gzip;q=0.8, deflate;q=0.5' and available encodings ['br','gzip','deflate','identity'], which compression format should I use for the response?","exampleUseCases":[{"title":"HTTP server compression negotiation","prompt":"I'm building an HTTP server response pipeline — given the client's Accept-Encoding header 'gzip, br;q=0.9, identity;q=0.5' and my supported encodings ['gzip','br','identity'], tell me which encoding I should use and in what priority order."},{"title":"API gateway encoding selection","prompt":"My API gateway received a request with Accept-Encoding header 'deflate;q=0.6, gzip;q=0.9, br;q=1.0' and I support ['br','gzip']. Rank those offers and tell me the best one to pick."},{"title":"Validating encoding negotiation logic","prompt":"I want to verify that the encoding I'd pick is correct — the client sent Accept-Encoding 'gzip;q=1.0, br;q=0.5' and the only offer I have is ['gzip','br']. Rank them and confirm which wins."}],"resultDescription":"A JSON object containing a ranked array of encoding offers (each with offer name and quality score), the selected best encoding string, the operation name, pass/fail status, and evidence metadata including input SHA-256 hash, a flag confirming no data retention, and a count of zero external calls made.","failureModes":["Malformed or empty Accept-Encoding header string may produce unexpected rankings or an error","Encoding offers list exceeding 256 items is rejected by schema validation","Header string exceeding 8192 characters is rejected","Payment failure via x402 protocol results in 402 response before computation begins","Unrecognized or non-standard encoding token names may be passed through without quality normalization"],"whenToPreferThis":"Use this endpoint when you need a deterministic, verifiable, auditable computation of HTTP Accept-Encoding negotiation without any side effects or external calls. It is ideal for AI agents that need a provably correct answer (with SHA-256 evidence) at extremely low cost ($0.001 USDC) without requiring signup or session management. Prefer it over implementing Accept-Encoding parsing in-process when auditability or correctness guarantees matter, or when running in a sandboxed agent environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:45.384Z","isFirstParty":false,"canonicalSlug":"delx-commerce-accept-encoding-rank-b9eac80e"}