# Base Intel API — Structured Text & Web Extraction

> Base Intel API — Structured Text & Web Extraction is a paid API for AI agents from base-intel-api.jakemaxsigal.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Extracts structured fields from raw text or a web page URL using LLM inference, returning typed key-value data in a single call

## Facts

- Endpoint: GET https://base-intel-api.jakemaxsigal.workers.dev/extract?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-intel-api-structured-text-web-extraction-d5d0b087
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y3vay6-VCMB9iaqx279Td

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 base-intel-api-structured-text-web-extraction-d5d0b087
```

Example prompt: Pull the company name, invoice date, and total amount (as a number) from this text: 'Acme Corp — Invoice #4421, dated March 15 2025, total due $3,450.00.'

## When to prefer this

Choose this endpoint when you need to turn unstructured text or a live web page into typed, named fields in a single API call without building a custom parsing pipeline. It is ideal for document parsing (invoices, receipts, emails), lightweight web scraping into structured JSON, and any scenario where you need LLM-powered extraction billed per-call at $0.02 USDC rather than managing your own model infrastructure.

## Known failure modes

- Missing required 'fields' query parameter returns an error
- Text exceeding 12,000 characters gets truncated (truncated: true in response)
- Ambiguous field names may result in empty or incorrect extractions
- URL fetch failures return an error if the page is inaccessible or paywalled
- Payment not sent or insufficient USDC results in HTTP 402 response
- Schema and fields both omitted causes undefined extraction behavior

## How this service works

One-call ALLOW, WARN, or BLOCK trade-risk decisions for Base agents, combining contract safety with live DEX liquidity and activity. Paid per result in USDC over x402.

## Output

A JSON object containing a 'data' map of extracted field names to typed values, a count of fields found, a list of missing fields, the LLM model used, the source type (text or url), a timestamp, and a truncation flag indicating if the input was cut off.

## 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": [
      "fields"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "A web page to fetch and extract from instead of text."
      },
      "text": {
       "type": "string",
       "description": "The text to extract from (max 12,000 characters). Use this or url."
      },
      "fields": {
       "type": "string",
       "description": "Comma-separated fields to extract, with optional types: name,email,price:number,in_stock:boolean,tags:array."
      },
      "schema": {
       "type": "string",
       "description": "Alternative to fields: a JSON Schema object of properties."
      },
      "instructions": {
       "type": "string",
       "description": "Optional extra guidance, e.g. 'amounts in USD'."
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "date": {
         "type": "string"
        },
        "amount": {
         "type": "number"
        },
        "company": {
         "type": "string"
        }
       }
      },
      "found": {
       "type": "number"
      },
      "model": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "missing": {
       "type": "array",
       "items": {}
      },
      "provider": {
       "type": "string"
      },
      "timestamp": {
       "type": "string"
      },
      "truncated": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "date": "2026-10-09",
   "amount": 1200,
   "company": "Acme Corp"
  },
  "found": 3,
  "model": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
  "source": "text",
  "missing": [],
  "provider": "base-intel-extract",
  "timestamp": "2026-10-07T00:00:00.000Z",
  "truncated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-intel-api-structured-text-web-extraction-d5d0b087/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-intel-api.jakemaxsigal.workers.dev](https://www.zero.xyz/host/base-intel-api.jakemaxsigal.workers.dev/llms.txt)
