# Tollmint Legal Scraping API

> Tollmint Legal Scraping API is a paid API for AI agents from api.tollmint.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-10).

Scrapes and extracts legal data from web sources, with per-call pricing and payment handled autonomously via x402 protocol

## Facts

- Endpoint: POST https://api.tollmint.com/v1/legal/scraping?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollmint-legal-scraping-api-3282b15e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5ZKz3p-U952VrBUoBwvFx

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 tollmint-legal-scraping-api-3282b15e -d '<json body>'
```

Example prompt: Can you scrape the legal terms and conditions from this URL and give me the structured data back? I'll pay per call — no account setup needed.

## When to prefer this

Choose this endpoint when you need autonomous, pay-per-call legal data scraping with no prior account setup or invoicing — ideal for AI agents that need to extract legal text on demand without human-in-the-loop payment flows. Best suited when the x402 payment protocol is supported and per-call USDC microtransactions are acceptable.

## Known failure modes

- Target URL is inaccessible or returns a non-200 status — scraping fails with an error response
- Legal content is behind a login wall or JavaScript-rendered — extraction may be incomplete or empty
- Payment transaction fails or is rejected — request is not processed
- Malformed request parameters — API returns a validation error
- Rate limiting or blocking by the target site — partial or no data returned

## How this service works

An API that quotes its own price and takes payment in the same request. Built for autonomous agents: no account, no invoice, no human in the loop.

## Output

A JSON response containing the scraped and structured legal data extracted from the target source, returned immediately after per-call payment is processed via x402 protocol.

## 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": {
    "body": {
     "type": "object",
     "$schema": "http://json-schema.org/draft-07/schema#",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 50,
       "maximum": 200,
       "minimum": 1
      },
      "search": {
       "type": "string",
       "maxLength": 200,
       "description": "Free-text over summary, instrument and detail."
      },
      "status": {
       "enum": [
        "in-force",
        "enacted-not-yet-in-force",
        "proposed",
        "vacated",
        "superseded",
        "unknown"
       ],
       "type": "string",
       "description": "Filter to one lifecycle state."
      },
      "dead_only": {
       "type": "boolean",
       "default": false,
       "description": "Return only rules that are NOT live law — vacated, superseded, or still proposed. These are the rules most often wrongly believed to be in force."
      },
      "jurisdiction": {
       "type": "string",
       "maxLength": 40,
       "description": "Substring match, e.g. \"EU\", \"UK\", \"US-federal\", \"California\", \"Germany\"."
      },
      "verified_only": {
       "type": "boolean",
       "default": false,
       "description": "Only rows whose source URL resolved when last checked. Off by default: many primary sources (courts, national gazettes) block automated checkers, so \"blocked\" is not \"bad\"."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "POST"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tollmint-legal-scraping-api-3282b15e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tollmint.com](https://www.zero.xyz/host/api.tollmint.com/llms.txt)
