# Agentshop — Basic Sanitation Access Macroeconomic Report

> Agentshop — Basic Sanitation Access Macroeconomic Report is a paid API for AI agents from reportbazaar.app.workbuddy.host, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-02).

Fetches a pay-per-call macroeconomic report on basic sanitation services access (% of population) across 20 economies from 2015–2025, delivered in HTML, JSON, CSV, or summary-CSV format via x402 micropayment.

## Facts

- Endpoint: GET https://reportbazaar.app.workbuddy.host/report/macro-sanitation?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshop-basic-sanitation-access-macroeconomic-report-0118b0fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d4UHmHLmciJMSB_RXCHtn

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 agentshop-basic-sanitation-access-macroeconomic-report-0118b0fd
```

Example prompt: Pull me the latest basic sanitation access report covering 20 economies from 2015 to 2025 — I want it as a JSON so I can parse the rankings and trend data programmatically.

## When to prefer this

Choose this endpoint when you need structured, ranked, trend-analyzed macroeconomic data on basic sanitation access across 20 economies without API key setup or account registration. It is ideal for agent workflows that can handle x402 micropayments in USDC and need machine-readable output (JSON or CSV) suitable for downstream analysis or reporting pipelines. Prefer over general data APIs when you need pre-computed trend lines, R², volatility, and key findings in one call.

## Known failure modes

- Payment not made or x402 payment rejected — returns 402 Payment Required
- Invalid format query parameter value — returns 400 Bad Request
- Upstream data unavailable or report generation failure — returns 500 Internal Server Error
- Network timeout if payment settlement is slow

## How this service works

Machine-to-machine macroeconomic report API. Pay per fetch in USDC over x402. No accounts, no API keys.

## Output

Returns a report on the World Bank indicator SH.STA.BASS.ZS (people using at least basic sanitation services, % of population) across 20 economies from 2015 to 2025. Includes key findings, a ranking table, share of group totals, trend analysis with R², volatility scores, a full year-by-year data matrix, and coverage/data-quality disclosures. Deliverable in HTML, JSON, CSV, or summary-CSV format.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "format": {
       "enum": [
        "html",
        "json",
        "csv",
        "summary-csv"
       ],
       "type": "string",
       "description": "Delivery format. csv is a tidy long panel; summary-csv is one row per economy of derived metrics."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "years": "2015:2025",
  "schema": "/schema/report.json",
  "formats": [
   "html",
   "json",
   "csv",
   "summary-csv"
  ],
  "contains": [
   "key findings",
   "ranking table",
   "share of group total",
   "trend with R²",
   "volatility",
   "full year-by-year matrix",
   "coverage and data-quality disclosure"
  ],
  "economies": 20,
  "indicators": [
   "SH.STA.BASS.ZS"
  ],
  "contentType": "text/html",
  "description": "Basic Sanitation Access Report",
  "freePreview": "/preview/macro-sanitation",
  "indicatorsLabel": [
   "People using at least basic sanitation services (% of population)"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshop-basic-sanitation-access-macroeconomic-report-0118b0fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from reportbazaar.app.workbuddy.host](https://www.zero.xyz/host/reportbazaar.app.workbuddy.host/llms.txt)
