# SEBRA Taxonomy by Year

> SEBRA Taxonomy by Year is a paid API for AI agents from api.datanexusai.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-03).

Returns the spending category taxonomy (with totals) from Bulgaria's SEBRA government payment system for a given calendar year

## Facts

- Endpoint: GET https://api.datanexusai.org/api/sebra/getTaxonomyForYear?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sebra-taxonomy-by-year-ea3bd77d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G2pOktH0RH5f8M36VMBB1

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 sebra-taxonomy-by-year-ea3bd77d
```

Example prompt: Can you pull the SEBRA government spending category taxonomy for 2019 in EUR so I can see how Bulgaria classified its public payments that year?

## When to prefer this

Use this endpoint when you need structured, machine-readable taxonomy of Bulgarian government spending categories from the SEBRA system for a specific year, especially when building fiscal analytics, transparency dashboards, or year-over-year budget comparisons. Prefer this over general web search when you need authoritative totals per category in BGN or EUR with consistent category keys.

## Known failure modes

- Missing required 'year' parameter returns a 400 or validation error
- Invalid year value (non-integer or out-of-range) may return empty results or an error
- Unsupported currency value (not BGN or EUR) may return an error or default
- Payment failure via x402 (insufficient USDC balance) blocks access to paid endpoint
- Year with no data available returns empty items array
- Network timeout on slow upstream data retrieval

## How this service works

Public data API for SEBRA payments, PTP road accidents, Hearthstone cards, EU agri-food prices, and trade/market analytics. Paid data endpoints use x402 (USDC micropayments). Docs and discovery endpoints are free.

Machine-readable discovery: `https://api.datanexusai.org/openapi.json`, `https://api.datanexusai.org/llms.txt`, `https://api.datanexusai.org/.well-known/x402`.

Human docs: `/docs` and `/api/`.

## Output

A JSON object containing the requested year, a list of spending category items (each with a Bulgarian-language category name, a machine-readable category_key such as 'salaries', and a total_amount string), and the endpoint name. Currency is BGN or EUR depending on the query parameter.

## 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",
     "required": [
      "year"
     ],
     "properties": {
      "year": {
       "type": "integer",
       "example": 2019,
       "description": "Calendar year."
      },
      "currency": {
       "type": "string",
       "example": "BGN",
       "description": "BGN or EUR."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2019,
  "items": [
   {
    "category": "Заплати",
    "category_key": "salaries",
    "total_amount": "500000.00"
   }
  ],
  "endpoint": "getTaxonomyForYear"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sebra-taxonomy-by-year-ea3bd77d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.datanexusai.org](https://www.zero.xyz/host/api.datanexusai.org/llms.txt)
