# Oblique Markets JSON Extractor

> Oblique Markets JSON Extractor is a paid API for AI agents from api.oblique.markets, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21, last successful call 2026-08-30).

Extracts structured JSON from unstructured text by matching it against a caller-supplied JSON Schema, with automatic retry and parse validation.

## Facts

- Endpoint: POST https://api.oblique.markets/api/v1/paid/extract-json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Last successful call: 2026-08-30
- Success rate: 50% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/oblique-markets-json-extractor-7fea5e1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_StyBwBqibUYeUK3CybEyU

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 oblique-markets-json-extractor-7fea5e1b -d '<json body>'
```

Example prompt: Take this block of text — 'John Smith, born March 3 1985, lives at 42 Maple Street, New York, NY 10001, phone 555-234-5678' — and extract it into structured JSON with fields: name (string), birthDate (string), streetAddress (string), city (string), state (string), zip (string), phone (string).

## When to prefer this

Choose this endpoint when you need reliable, schema-validated JSON extracted from unstructured text and cannot tolerate receiving malformed or non-compliant output. The automatic retry-then-502 pattern makes it safer than rolling your own LLM extraction prompt where you'd have to handle parsing failures yourself. It is ideal for pipelines where downstream code expects strictly typed JSON and a hard failure is preferable to silently wrong data. Prefer it over general-purpose LLM calls when you already have a defined JSON Schema and want parse validation enforced server-side.

## Known failure modes

- 502 returned if two consecutive extraction attempts both fail JSON Schema validation — no garbage output is ever returned
- Ambiguous or contradictory input text may produce extraction results that are schema-valid but semantically incomplete
- Very complex or deeply nested JSON Schemas may increase the likelihood of extraction failures
- If the input text contains no information relevant to the schema fields, extracted values may be null or missing
- Schema that is overly strict (e.g. tight regex patterns or enum constraints) may increase retry failure rates

## How this service works

Use when an agent needs extract json. Returns Extract structured JSON from unstructured text against a caller-supplied JSON Schema — parse-validated with one automatic retry, 502 on failure instead of garbage. $0.01.

## Output

A schema-validated JSON object matching the caller-supplied JSON Schema, extracted from the input unstructured text. If the first LLM extraction attempt fails JSON schema validation, the service automatically retries once. If both attempts fail, the endpoint returns a 502 error rather than returning malformed or non-schema-compliant output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Source text; truncated to 8,000 characters"
  },
  "schema": {
   "type": "object",
   "description": "JSON Schema the extracted document must conform to"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "total": 1249.5,
   "vendor": "Acme GmbH",
   "currency": "EUR",
   "due_date": "2026-09-01",
   "invoice_number": "INV-2041"
  },
  "model": "inclusionai/ling-3.0-flash"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/oblique-markets-json-extractor-7fea5e1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.oblique.markets](https://www.zero.xyz/host/api.oblique.markets/llms.txt)
