{"uid":"cap_EtVFK9W3CyyjckQRNII93","slug":"delx-commerce-accept-header-rank-2864eae5","name":"Delx Commerce — Accept Header 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-header-rank?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"header":{"type":"string","maxLength":8192,"description":"Header supplied to Accept Header 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 Header Rank; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"ranked":[{"offer":"application/json","quality":1},{"offer":"text/plain","quality":0.5}],"selected":"application/json"},"schema":"delx/util-accept-header-rank/v1","status":"pass","evidence":{"retained":false,"input_sha256":"6f60834b6ddd258ebac619ec48677f1ee272c525d95ebcd2374e0b3d4e7daba8","external_calls":0},"operation":"web_reliability:accept_header_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_9--Hx3KSgENdSZ3nVczsG","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 a list of MIME type offers against an HTTP Accept header and returns the best match according to quality weighting","exampleAgentPrompt":"Given the Accept header 'text/html,application/xhtml+xml,application/json;q=0.9,*/*;q=0.8' and my server's available formats ['application/json','text/html','text/plain'], which content type should I respond with?","exampleUseCases":[{"title":"API response format selection","prompt":"I have an Accept header from a client: 'application/json;q=1.0,text/xml;q=0.8,text/plain;q=0.5' — and my API can serve ['application/json','text/xml','text/plain']. Which format should I respond with and in what priority order?"},{"title":"Browser request content negotiation","prompt":"A browser sent me this Accept header: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' — rank my available types ['text/html','application/json','application/xml','image/webp'] by preference so I serve the right one."},{"title":"Validating content negotiation logic","prompt":"I want to double-check my server's content negotiation — take this Accept header 'application/msgpack;q=0.9,application/json;q=0.8' and rank the offers ['application/json','application/msgpack','text/plain'] to confirm which one wins."}],"resultDescription":"Returns a JSON object containing a ranked array of offers each with their computed quality score, the single selected best-match offer, an operation identifier, a status of 'pass', and an evidence object including whether input was retained (always false), the SHA-256 hash of the input for verifiability, and the count of external calls made (always 0).","failureModes":["Malformed Accept header string may produce unexpected rankings or errors","Empty offers array results in no selection","Offers exceeding 256 items are rejected by schema validation","Header string exceeding 8192 characters rejected","Payment failure via x402 protocol blocks the request","Wildcard MIME types (*/*) may need careful interpretation in the ranked output"],"whenToPreferThis":"Choose this endpoint when you need a standards-compliant, verifiable, stateless computation of HTTP Accept header content negotiation — particularly in agent pipelines where auditability matters (evidenced by input hash and zero external calls guarantee). Prefer it over rolling your own parser when you need a pay-per-use, no-signup solution with cryptographic proof of non-retention. Ideal for agents that dynamically select response formats or validate their own content negotiation logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:58.417Z","isFirstParty":false,"canonicalSlug":"delx-commerce-accept-header-rank-2864eae5"}