Api Endpoint

api.agentstools.dev

US capital gains tax estimate: long-term 0/15/20 percent rates or short-term ordinary rates, plus the net investment income tax. Pure computation over your inputs, not tax advice.

Open interactive test console

Offering

Provider
api.agentstools.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Financial Analysis
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.agentstools.dev/tax/capgains
MIME type
application/json
First seen
2026-10-16T02:11:22.308Z
Last seen
Tags
tax, capital-gains, niit, investments, long-term, short-term

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493"
  }
]

Observed health

Status
Healthy
Latest latency
365 ms
Average latency
811 ms
HTTP status
402
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "gain": {
          "type": "number",
          "description": "Capital gain amount (>= 0)"
        },
        "holding_period": {
          "type": "string",
          "enum": [
            "long",
            "short"
          ],
          "description": "long uses 0/15/20 rates; short uses ordinary rates"
        },
        "ordinary_income": {
          "type": "number",
          "description": "Other taxable income, used to stack the gain into brackets"
        },
        "filing_status": {
          "type": "string",
          "enum": [
            "single",
            "married_jointly",
            "married_separately",
            "head_of_household"
          ],
          "description": "Filing status, default single"
        },
        "tax_year": {
          "type": "integer",
          "description": "Tax year, default 2026"
        }
      },
      "required": [
        "gain"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "filing_status": {
              "description": "Filing status, default single",
              "enum": [
                "single",
                "married_jointly",
                "married_separately",
                "head_of_household"
              ],
              "type": "string"
            },
            "gain": {
              "description": "Capital gain amount (>= 0)",
              "type": "number"
            },
            "holding_period": {
              "description": "long uses 0/15/20 rates; short uses ordinary rates",
              "enum": [
                "long",
                "short"
              ],
              "type": "string"
            },
            "ordinary_income": {
              "description": "Other taxable income, used to stack the gain into brackets",
              "type": "number"
            },
            "tax_year": {
              "description": "Tax year, default 2026",
              "type": "integer"
            }
          },
          "required": [
            "gain"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}