# Tourism Observations — String Normalisation + Equal-Width Histogram

> Tourism Observations — String Normalisation + Equal-Width Histogram is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-26).

Runs string normalisation and equal-width histogram analysis on up to 200 tourism observation records (visitor_count or overnight_stays fields).

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-economics-14-031?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tourism-observations-string-normalisation-equal-width-histogram-a29c1d7c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DZz_RZIrOmbo4KUOExeZM

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 tourism-observations-string-normalisation-equal-width-histogram-a29c1d7c -d '<json body>'
```

Example prompt: Can you normalize the region strings and produce an equal-width histogram with 10 bins for the visitor_count field in my tourism dataset? Here are the rows: [{"row_id":"r1","region":" North East ","date":"2025-01-01","visitor_count":1200,"overnight_stays":340},{"row_id":"r2","region":"south west","date":"2025-01-02","visitor_count":850,"overnight_stays":210}].

## When to prefer this

Choose this endpoint when you need a combined string normalisation pass plus a binned frequency distribution (histogram) on tourism-domain records — specifically visitor_count or overnight_stays — in a single low-cost ($0.01 USDC) call for up to 200 rows, with no need for live data lookups or predictions. Prefer it over general-purpose analytics tools when you want deterministic, offline computation on supplied data without external dependencies.

## Known failure modes

- Exceeding 200 rows returns a validation error
- Missing required fields (row_id, region, date, visitor_count, overnight_stays) causes rejection
- Invalid date format (not YYYY-MM-DD) fails schema validation
- Bins value outside 1–30 range is rejected
- All-null values in the selected numeric field may produce an empty or degenerate histogram
- Malformed JSON in rows array returns a parse error

## How this service works

Tourism observations — String normalisation + Equal-width histogram: String normalisation + Equal-width histogram for supplied tourism observations records (visitor_count, overnight_stays). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Returns two analytical reports: (1) a string normalisation report showing cleaned/standardised text values for the supplied rows, and (2) an equal-width histogram report for the selected numeric field (visitor_count or overnight_stays) divided into the specified number of bins, including bin boundaries and row counts per bin. Both reports are computed locally with no external lookups.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "region",
     "date",
     "visitor_count",
     "overnight_stays"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "region": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "visitor_count": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "overnight_stays": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "region": "group-a",
     "row_id": "row-1",
     "visitor_count": 10,
     "overnight_stays": 1
    },
    {
     "date": "2026-10-02",
     "region": "group-b",
     "row_id": "row-2",
     "visitor_count": 20,
     "overnight_stays": 2
    },
    {
     "date": "2026-10-03",
     "region": "group-a",
     "row_id": "row-3",
     "visitor_count": 15,
     "overnight_stays": 3
    },
    {
     "date": "2026-10-04",
     "region": "group-b",
     "row_id": "row-4",
     "visitor_count": 30,
     "overnight_stays": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "visitor_count",
    "overnight_stays"
   ],
   "type": "string",
   "default": "visitor_count"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tourism-observations-string-normalisation-equal-width-histogram-a29c1d7c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
