# Crypto Tax Rules Lookup

> Crypto Tax Rules Lookup is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns general cryptocurrency tax rules and guidance including capital gains rates, DeFi/staking treatment, and short-term vs long-term classification for a given country.

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/crypto-tax?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-tax-rules-lookup-44595a4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3j71_t8FmOQEbAAdzAlxl

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 crypto-tax-rules-lookup-44595a4c
```

Example prompt: Can you look up the crypto tax rules for the US — specifically how DeFi staking is treated, what the capital gains rates are, and how short-term vs long-term gains differ?

## When to prefer this

Use this endpoint when an agent needs quick, static reference information about cryptocurrency tax rules — particularly for the US market — without requiring account setup or API keys. Best for informational lookups rather than precise tax calculations or jurisdiction-specific legal advice. Suitable for fintech agents, crypto portfolio tools, or tax-prep assistants that need a lightweight, pay-per-call tax reference.

## Known failure modes

- Endpoint may return generic US-only data regardless of jurisdiction query
- No dynamic calculation — only static reference rules returned
- Schema shows no queryParams, so country filtering may not be supported
- Payment failure if USDC balance on Base is insufficient
- DuckDNS hostname may be unreliable or go offline

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object with the country, a note distinguishing short-term vs long-term treatment, the capital gains rate range (e.g. 0–37%), and how DeFi/staking income is classified for tax purposes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "short-term vs long-term",
  "country": "US",
  "defi_staking": "taxable as income",
  "capital_gains_rate": "0-37%"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-tax-rules-lookup-44595a4c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
