{
  "format": "delx/intent-card/v1",
  "id": "quarter-of-year-api",
  "intent": "Calendar Quarter for an agent workflow",
  "title": "Calendar Quarter API for agents",
  "description": "Calendar quarter 1–4. Use for finance-style bucketing and quarterly goals tracking. Returns quarter number 1–4 for the given date. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.",
  "keywords": [
    "Calendar Quarter API",
    "Calendar Quarter for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/quarter-of-year-api",
  "machine_url": "https://commerce.delx.ai/intents/quarter-of-year-api.json",
  "recommendation": {
    "tool_name": "util_quarter_of_year",
    "service_name": "Calendar Quarter",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/quarter-of-year",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "description": "date"
        }
      },
      "required": [
        "date"
      ]
    },
    "example_input": {
      "date": "2026-08-04T12:00:00Z"
    },
    "example_output": {
      "schema": "delx/quarter-of-year/v1",
      "year": 2026,
      "quarter": 3,
      "month": 8
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/quarter-of-year -m POST -H 'x-delx-source: intent-card-quarter-of-year-api' --max-amount 0.001 -b '{\"date\":\"2026-08-04T12:00:00Z\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-quarter-of-year-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/quarter-of-year"
  }
}
