{
  "format": "delx/intent-card/v1",
  "id": "accept-header-rank-api",
  "intent": "Accept Header Rank for an agent workflow",
  "title": "Accept Header Rank API for agents",
  "description": "Accept Header Rank: Accept Header Rank ranks offered media types against weighted Accept ranges from bounded caller-supplied values without an external provider. Call Accept Header 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 Header Rank as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution with no paid upstream, live RPC, web search, credentials, custody, signing, media generator, or input retention. Honest limit: Evaluates only caller-supplied metadata; it performs no DNS lookup, HTTP request, web search, credential use, or persistent storage. Advisory output only; the buyer owns authorization, payment policy, and production decisions.",
  "keywords": [
    "Accept Header Rank API",
    "Accept Header Rank for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/accept-header-rank-api",
  "machine_url": "https://commerce.delx.ai/intents/accept-header-rank-api.json",
  "recommendation": {
    "tool_name": "util_accept_header_rank",
    "service_name": "Accept Header Rank",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/accept-header-rank",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "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",
          "maxItems": 256,
          "items": {
            "type": "string",
            "maxLength": 8192
          },
          "description": "Offers supplied to Accept Header Rank; used only for this bounded calculation and processed in memory without retention."
        }
      },
      "required": [
        "header",
        "offers"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "header": "application/json;q=1, text/plain;q=0.5",
      "offers": [
        "text/plain",
        "application/json"
      ]
    },
    "example_output": {
      "schema": "delx/util-accept-header-rank/v1",
      "operation": "web_reliability:accept_header_rank",
      "status": "pass",
      "result": {
        "ranked": [
          {
            "offer": "application/json",
            "quality": 1
          },
          {
            "offer": "text/plain",
            "quality": 0.5
          }
        ],
        "selected": "application/json"
      },
      "evidence": {
        "input_sha256": "6f60834b6ddd258ebac619ec48677f1ee272c525d95ebcd2374e0b3d4e7daba8",
        "retained": false,
        "external_calls": 0
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/accept-header-rank -m POST -H 'x-delx-source: intent-card-accept-header-rank-api' --max-amount 0.001 -b '{\"header\":\"application/json;q=1, text/plain;q=0.5\",\"offers\":[\"text/plain\",\"application/json\"]}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-accept-header-rank-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/accept-header-rank"
  }
}
