{
  "serviceId": "structured-extraction",
  "displayName": "Structured Extraction",
  "description": "Rule-based extraction of named fields from text; not a language model, it returns only what the text states. POST /v1/extract with {text, schema}: schema is a JSON Schema, a list of field names, or {fields: {name: regex}}. Built-in fields include email, phone, date, url, money and company; other fields come from \"Label: value\" lines. Pay per request in USDC; no account, no API key.",
  "category": "documents",
  "resourceUrl": "https://agent.pocket.network/v1/structured-extraction",
  "priceUsd": "0.005000",
  "priceVersion": 1,
  "rails": [
    {
      "id": "base",
      "network": "eip155:8453",
      "chainId": 8453,
      "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "tokenDecimals": 6,
      "payToAddress": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
    }
  ],
  "paymentNetworks": [
    "eip155:8453",
    "eip155:4217"
  ],
  "paymentProtocols": [
    "x402",
    "mpp"
  ],
  "protocols": [
    "rest"
  ],
  "inputSchema": {
    "type": "object",
    "description": "The request body for POST /v1/extract.",
    "properties": {
      "text": {
        "type": "string",
        "description": "The text to extract from."
      },
      "schema": {
        "description": "A JSON Schema with properties, a list of field names, or {fields: {name: regex}}."
      }
    },
    "required": [
      "text",
      "schema"
    ]
  },
  "outputSchema": {
    "type": "object",
    "description": "For POST /v1/extract, a JSON object with `fields` (null when not found), matched_by and schema_mode. The exact shape is the service's own and is not pinned here; errors return a JSON object with an `error` field."
  },
  "methods": {
    "GET /v1/health": "read",
    "GET /v1/version": "read",
    "POST /v1/extract": "read"
  },
  "firstParty": true,
  "networks": [
    "eip155:8453",
    "eip155:4217"
  ],
  "serving": true,
  "page": "https://agent.pocket.network/services/structured-extraction",
  "descriptor": "https://agent.pocket.network/services/structured-extraction/descriptor.json"
}