# Relaystation Explode — JSON Array Unnest

> Relaystation Explode — JSON Array Unnest is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Unnests (explodes) array cells in nested JSON, flattening each array element into its own row for tabular analysis

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/data/explode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-explode-json-array-unnest-4ce48d09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LivWA0yIE1XlD0ga4IJ8r

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 relaystation-explode-json-array-unnest-4ce48d09 -d '<json body>'
```

Example prompt: Take this JSON dataset where the 'tags' and 'orders' fields are arrays — explode each array element into its own row so I can analyze it in a flat table format.

## When to prefer this

Choose this endpoint when you have nested JSON with array-valued fields that need to be normalized into flat, row-per-element records — particularly useful in ETL pipelines, pre-analytics normalization, or before loading data into relational databases or spreadsheets. It is priced per MB so it is cost-effective for large batches. Prefer it over writing custom code when you need a quick, reliable, hosted transformation without managing infrastructure.

## Known failure modes

- Malformed or invalid JSON input returns a parse error
- Non-array target field returns an error or passes through unchanged
- Empty arrays produce zero output rows
- Very large payloads may exceed size limits or incur higher costs
- Missing required field path parameter causes a 400-style error

## How this service works

$0.0002/MB. Unnest array cells into rows — flatten nested JSON for analysis. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a collection of flattened JSON records where each element of the specified array field has been expanded into its own row, with all sibling fields duplicated across the resulting rows — ready for tabular analysis, database ingestion, or CSV export. Billed at $0.0002/MB with a 1¢ minimum; any overage auto-credits to the account.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-explode-json-array-unnest-4ce48d09/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
