# AfriRef Government Reference Data Series

> AfriRef Government Reference Data Series is a paid API for AI agents from afriref.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns a specific government economic or regulatory reference data series (e.g. VAT rate, policy rate, minimum wage) for a given African country.

## Facts

- Endpoint: GET https://afriref.dev/v1/:country/:series
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/afriref-government-reference-data-series-9638d448
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t5lqca_QYEW1lqKxagsDn

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 afriref-government-reference-data-series-9638d448
```

Example prompt: What is the current VAT rate in Ghana? I need the full breakdown including any stacked levies like NHIL or GETFund.

## When to prefer this

Use this endpoint when you need structured, sourced government reference data for African markets — specifically tax rates, wages, monetary policy rates, CPI, or public holiday calendars for the 11 supported countries. Prefer this over web scraping or general search when you need machine-readable, consistently formatted economic and regulatory data with source attribution and freshness signals.

## Known failure modes

- Unsupported country code — only 11 African countries (ci, eg, et, gh, ke, ma, ng, rw, sn, tz, ug) are supported; returns error for others
- Unsupported series identifier — only 7 series are available (policy-rate, vat, minimum-wage, public-holidays, cpi, corporate-tax, income-tax)
- Stale data — endpoint returns data with stale:true flag when the value has not been confirmed within the expected update cycle
- Payment failure — x402 payment of $0.005 USDC not fulfilled, request rejected
- Network or upstream source unavailability causing delayed or failed response

## How this service works

Government reference data series

## Output

A JSON object containing the country code, series name, current value (number for rates/wages, array of date-name objects for holidays), effective date, last confirmed date, unit, source name and URL, a staleness boolean indicating if the data is past its expected update cycle, and optionally a components array breaking down composite rates and an effective_rate representing the combined statutory levy total.

## 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"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "country",
      "series"
     ],
     "properties": {
      "series": {
       "enum": [
        "policy-rate",
        "vat",
        "vat-registration-threshold",
        "minimum-wage",
        "public-holidays",
        "cpi",
        "corporate-tax",
        "withholding-tax",
        "statutory-interest",
        "income-tax",
        "social-contributions",
        "fx-reference"
       ],
       "type": "string",
       "description": "Reference series id"
      },
      "country": {
       "enum": [
        "ao",
        "bf",
        "bj",
        "bw",
        "cd",
        "cf",
        "cg",
        "ci",
        "cm",
        "dz",
        "eg",
        "et",
        "ga",
        "gh",
        "gq",
        "ke",
        "ls",
        "ma",
        "ml",
        "mu",
        "mz",
        "na",
        "ne",
        "ng",
        "rw",
        "sn",
        "sz",
        "td",
        "tg",
        "tn",
        "tz",
        "ug",
        "za",
        "zm"
       ],
       "type": "string",
       "description": "ISO country code"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {},
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/afriref-government-reference-data-series-9638d448/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from afriref.dev](https://www.zero.xyz/host/afriref.dev/llms.txt)
