# Numora Statistics Sampling API

> Numora Statistics Sampling API is a paid API for AI agents from numomo.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Draws a random sample of n items from a dataset using a specified sampling method (e.g. random, stratified)

## Facts

- Endpoint: POST https://numomo.vercel.app/api/statistics/sampling
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/numora-statistics-sampling-api-a0f067af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v0WU4d3TLXc1PtQjWo0M1

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 numora-statistics-sampling-api-a0f067af -d '<json body>'
```

Example prompt: Draw a random sample of 30 items from this dataset [1, 4, 7, 2, 9, 3, 6, 8, 5, 10, ...] using the 'random' method — I need it for a stats experiment.

## When to prefer this

Choose this endpoint when you need a pure-math, serverless sampling computation with no external data dependencies and deterministic billing via x402 micropayments on Base. Ideal for AI agents that need lightweight statistical sampling without spinning up a full data-science environment or calling a heavyweight analytics platform.

## Known failure modes

- n larger than dataset size with without-replacement method — returns error or unexpected result
- Missing required fields 'n' or 'data' — validation error
- Invalid method string not recognized by the API — may default or error
- Empty data array — returns empty or error result
- Payment failure via x402 micropayment — request rejected before computation

## How this service works

100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.

## Output

Returns a JSON object with success:true, a result object containing the sampled subset of the input data, and a computation string describing what was computed (e.g. 'Random sample of 30 drawn from 500 elements').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "n",
  "data"
 ],
 "properties": {
  "n": {
   "type": "integer"
  },
  "data": {
   "type": "array"
  },
  "method": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success",
  "result",
  "computation"
 ],
 "properties": {
  "result": {
   "type": "object",
   "description": "Computation result varies by endpoint"
  },
  "success": {
   "type": "boolean",
   "description": "Always true on success"
  },
  "computation": {
   "type": "string",
   "description": "Human-readable description of what was computed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/numora-statistics-sampling-api-a0f067af/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from numomo.vercel.app](https://www.zero.xyz/host/numomo.vercel.app/llms.txt)
