# Delx Commerce — Accept-Language Rank

> Delx Commerce — Accept-Language Rank is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Ranks a list of language/locale offer strings against an HTTP Accept-Language header and returns them sorted by quality score with the best match selected

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/accept-language-rank?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-accept-language-rank-f48f0c99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vgF3ONwWBr-FZ-ZzP_kwV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-accept-language-rank-f48f0c99 -d '<json body>'
```

Example prompt: Given this Accept-Language header 'pt-BR,pt;q=0.9,en;q=0.7,es;q=0.1', rank these language offers — 'en', 'pt-BR', 'es', 'fr' — and tell me which one should be selected for the user.

## When to prefer this

Choose this endpoint when you need fast, verifiable, privacy-safe Accept-Language parsing and locale negotiation without building your own parser. It is ideal for agents serving multilingual content who receive raw HTTP headers and need to deterministically pick a locale from a supported set. Prefer it over custom parsing when you want an auditable evidence trail (SHA-256 input hash, no retention guarantee) and pay-per-call USDC pricing with no subscription or API key signup.

## Known failure modes

- Malformed Accept-Language header string may produce unexpected quality scores or empty ranking
- Empty offers array returns an empty ranked list with no selection
- Offers array exceeding 256 items is rejected
- Header string exceeding 8192 characters is rejected
- Invalid locale codes in offers may be passed through unvalidated and ranked by textual match only

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing a ranked array of language offer objects each with the offer string and its computed quality score (0–1), plus a 'selected' field naming the top-ranked match. Also includes an evidence block confirming no data was retained, an input SHA-256 hash, zero external calls, and schema/status metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "maxLength": 8192,
   "description": "Header supplied to Accept Language 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 Language Rank; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "ranked": [
    {
     "offer": "pt-BR",
     "quality": 1
    },
    {
     "offer": "en",
     "quality": 0.7
    },
    {
     "offer": "es",
     "quality": 0.1
    }
   ],
   "selected": "pt-BR"
  },
  "schema": "delx/util-accept-language-rank/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "30f1c98209164e52a4430cbcc2c488f8df67d504f7b64f9f70e04e87dfc1bb24",
   "external_calls": 0
  },
  "operation": "web_reliability:accept_language_rank"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-accept-language-rank-f48f0c99/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
