{"uid":"cap_Sevw92qprfjzSL4IgRELu","slug":"accept-encoding-rank-b53b11ee","name":"Accept Encoding Rank","description":"Accept Encoding Rank: Accept Encoding Rank ranks supported content codings against Accept-Encoding weights from bounded caller-supplied values without an external provider. Call Accept Encoding Rank before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Accept Encoding Rank as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, me…","url":"https://api.delx.ai/api/v1/x402/accept-encoding-rank","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_9v6eGF4MduPf_aDrt6JyJ","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 supported content codings against HTTP Accept-Encoding header weights and returns a normalized pass/advisory result as deterministic versioned JSON.","exampleAgentPrompt":"Rank these offered encodings — gzip, br, deflate, identity — against the Accept-Encoding header 'br;q=1.0, gzip;q=0.8, *;q=0.1' and tell me which one to use and whether it passes.","exampleUseCases":[{"title":"Pick encoding before caching HTTP response","prompt":"Before I cache this response, rank my supported encodings gzip, br, and identity against the Accept-Encoding header 'gzip;q=1.0, br;q=0.5' so I know which format to store."},{"title":"Validate encoding for proxy redirect","prompt":"I'm about to redirect a request through a proxy — check these offered codings ['br', 'gzip', 'zstd'] against the caller's Accept-Encoding header 'zstd;q=1.0, br;q=0.7, gzip;q=0.3' and give me the ranked result and pass/advisory status."},{"title":"Agent retry with correct encoding","prompt":"My agent got back a response and I want to retry with the right encoding — rank ['deflate', 'gzip', 'identity'] against Accept-Encoding 'gzip;q=1.0, deflate;q=0.6' before I retry the request."}],"resultDescription":"Returns versioned deterministic JSON containing normalized web evidence (the parsed Accept-Encoding weights and offered codings), a computed ranking of the offered codings by preference weight, and an explicit pass or advisory status indicating whether the negotiation is valid.","failureModes":["Malformed Accept-Encoding header value causes parsing failure or unexpected ranking output","Offered codings list exceeds 256 items, triggering rejection","Header string exceeds 8192 character limit","Empty offers array returns no ranking with advisory status","Unrecognized coding tokens may be ranked at lowest priority or flagged as unknown"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, stateless, server-side computation of HTTP content encoding negotiation — especially before accepting, caching, redirecting, or retrying a web response. Prefer it over rolling your own Accept-Encoding parser when you need a normalized, versioned result with explicit pass/advisory output suitable for agent pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:12:00.537Z","isFirstParty":false}