{
  "format": "delx/intent-card/v1",
  "id": "keyword-density-api",
  "intent": "Keyword Density for an agent workflow",
  "title": "Keyword Density API for agents",
  "description": "Measure keyword density inside caller-supplied text — call when measuring keyword density in held text. Use on text/URLs the agent already holds—adjacent to high-volume extract demand, never advertised as general web or X search. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.",
  "keywords": [
    "Keyword Density API",
    "Keyword Density for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/keyword-density-api",
  "machine_url": "https://commerce.delx.ai/intents/keyword-density-api.json",
  "recommendation": {
    "tool_name": "util_keyword_density",
    "service_name": "Delx Keyword Density",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/keyword-density",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "text": {
          "description": "UTF-8 text to encode, chunk, index, or analyze (caller-supplied only).",
          "type": "string"
        },
        "keywords": {
          "description": "Keywords or phrases to measure inside the supplied text.",
          "type": "array"
        }
      },
      "required": [
        "text",
        "keywords"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "text": "agent tools for agent commerce",
      "keywords": [
        "agent",
        "commerce"
      ]
    },
    "example_output": {
      "schema": "delx/util-keyword-density/v1",
      "word_count": 5,
      "keywords": [
        {
          "keyword": "agent",
          "count": 2,
          "density_percent": 40
        },
        {
          "keyword": "commerce",
          "count": 1,
          "density_percent": 20
        }
      ]
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/keyword-density -m POST -H 'x-delx-source: intent-card-keyword-density-api' --max-amount 0.003 -b '{\"text\":\"agent tools for agent commerce\",\"keywords\":[\"agent\",\"commerce\"]}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-keyword-density-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/keyword-density"
  }
}
