# FastX402 JSONL Parser

> FastX402 JSONL Parser is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-27).

Parses raw JSON Lines (JSONL) text into structured records, returning a count, parsed record array, and metadata about blank/total lines.

## Facts

- Endpoint: GET https://fastx402.tools/jsonl-parse?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-jsonl-parser-fc28f583
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CyZ6Tg52aTw5rgmAH5V1_

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 fastx402-jsonl-parser-fc28f583
```

Example prompt: Parse this JSONL text for me and return up to 50 records: '{"id":1,"name":"ada"}\n{"id":2,"name":"grace"}\n{"id":3,"name":"turing"}'

## When to prefer this

Use this endpoint when you need a simple, stateless, pay-per-use JSONL parser with no API key setup — ideal for AI agents handling ad-hoc JSONL data from exports, logs, or data pipelines. Prefer it over custom parsing logic when you want a hosted, reliable micro-service that handles blank lines, counting, and optional truncation out of the box.

## Known failure modes

- Malformed JSON on any line causes a parse error for that record or the entire request
- Input data exceeding size limits may be rejected
- Limit parameter outside 1–1000 range may return an error
- Non-JSONL input (e.g. plain JSON array) may not parse correctly
- Network or payment failure returns 402 or 4xx error

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object containing: 'records' (array of parsed JSON objects), 'count' (number of records returned), 'truncated' (boolean indicating if the limit cut off additional records), 'lines_blank' (number of blank lines in the input), and 'lines_total' (total number of lines including blank).

## 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",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "string",
       "description": "Raw JSON Lines text; records separated by newlines"
      },
      "limit": {
       "type": "string",
       "description": "Optional maximum number of records to return, 1-1000 (default 100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "records": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "integer"
         },
         "name": {
          "type": "string"
         }
        }
       }
      },
      "truncated": {
       "type": "boolean"
      },
      "lines_blank": {
       "type": "integer"
      },
      "lines_total": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "records": [
   {
    "id": 1,
    "name": "ada"
   },
   {
    "id": 2,
    "name": "grace"
   }
  ],
  "truncated": false,
  "lines_blank": 0,
  "lines_total": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-jsonl-parser-fc28f583/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
