# zaref Batch – South African Reference Data API

> zaref Batch – South African Reference Data API is a paid API for AI agents from zaref.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-23).

Fetches up to 10 South African reference data series (fuel prices, interest rates, FX, tax tables, wages, tenders, crypto) in a single cited JSON batch call, optionally as-at a historical date.

## Facts

- Endpoint: POST https://zaref.dev/v1/batch?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zaref-batch-south-african-reference-data-api-5969e91c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lKS1s5YtovyG63rEc0IOZ

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 zaref-batch-south-african-reference-data-api-5969e91c -d '<json body>'
```

Example prompt: Can you pull the latest South African petrol price, repo rate, and rand/dollar exchange rate all at once from zaref — I need all three as cited JSON for my report?

## When to prefer this

Use this batch endpoint when you need two or more South African reference data series simultaneously — it is more efficient than making multiple single-series calls. Prefer it over generic web search or scraping when you need clean, cited, machine-readable South African government or financial reference data (fuel, rates, tax, wages, tenders) that is ready for downstream computation or display.

## Known failure modes

- Unknown series slug returns an error or empty entry for that slug
- More than 10 series in a single batch request returns a validation error
- Invalid as_at date format (not YYYY-MM-DD) returns a 400 bad request
- as_at date before data coverage window returns no data or an error for affected series
- Payment failure (x402) returns a 402 response before data is served

## How this service works

South African reference data as clean, cited JSON: fuel prices, interest rates, FX and bond yields, tax tables, tariffs, wages and grants, live government tenders and crypto prices, plus calculators. Built for AI agents and applications.

## Output

A JSON object keyed by series slug, each containing the latest (or as-at-date) values with source citations, effective dates, and the data specific to that series (e.g. price, rate, table rows). Up to 10 series are returned in a single response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "series"
 ],
 "properties": {
  "as_at": {
   "type": "string",
   "description": "date YYYY-MM-DD, optional: values in force on this date, applied to every series in the batch"
  },
  "series": {
   "type": "array",
   "description": "array of series slugs, required: 1 to 10 of them"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zaref-batch-south-african-reference-data-api-5969e91c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zaref.dev](https://www.zero.xyz/host/zaref.dev/llms.txt)
