# API Usage String Normalisation

> API Usage String Normalisation 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-24).

Normalises string fields (endpoint names, dates) across up to 200 API usage records for consistent, clean analytics

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-api-usage-normalise?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-usage-string-normalisation-5f73c96f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4ELyDDCswr-AyXr8uJOgd

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 api-usage-string-normalisation-5f73c96f -d '<json body>'
```

Example prompt: Can you normalise the string fields in my API usage records? I have about 50 rows with endpoint names like 'group-a' and 'group-b', dates in YYYY-MM-DD format, plus request counts and latency values — they need to be cleaned up and standardised before I run my analytics.

## When to prefer this

Choose this endpoint when you have API usage records with inconsistent or messy string fields — particularly endpoint names and dates — and need a lightweight, local normalisation pass before analytics. It handles up to 200 records per call at very low cost ($0.01 USDC) and performs no external enrichment, making it ideal for deterministic, repeatable data cleaning steps in an analytics pipeline.

## Known failure modes

- Exceeding 200 rows returns a validation error
- Missing required fields (row_id, endpoint, date, requests, latency_ms) causes record rejection
- Invalid date format (not YYYY-MM-DD) may result in processing error
- Numeric fields outside allowed range trigger validation failure
- Empty rows array returns an error

## How this service works

API usage - String normalisation: String normalisation for API usage. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded string normalisation deliverable.

## Output

Returns up to 200 API usage records with string fields (endpoint names, dates) normalised and cleaned — standardised casing, trimmed whitespace, consistent formatting — ready for downstream analytics or reporting pipelines.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-usage-string-normalisation-5f73c96f/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)
