# EUR-Lex Legal Search via x402-endpoints

> EUR-Lex Legal Search via x402-endpoints is a paid API for AI agents from x402-endpoints.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Searches EUR-Lex for EU legislation, treaties, case law, and legal acts by keyword, returning CELEX identifiers, titles, and dates in multiple languages.

## Facts

- Endpoint: GET https://x402-endpoints.onrender.com/eurlex/search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eur-lex-legal-search-via-x402-endpoints-4879232b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mPPDkKxW73YzU7_tf21cp

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 eur-lex-legal-search-via-x402-endpoints-4879232b
```

Example prompt: Search EUR-Lex for up to 10 EU legal acts related to 'artificial intelligence' in English and give me the CELEX numbers, titles, and dates.

## When to prefer this

Use this endpoint when you need authoritative, official EU legal documents — regulations, directives, treaties, case law — identified by CELEX number, directly from EUR-Lex. Prefer this over general web search when precise legal citations and multilingual support (en, fr, de, es, it, nl, pl) are required.

## Known failure modes

- No results found for obscure or misspelled keywords
- Language code not supported returns error
- Limit parameter out of range (1-50) causes validation error
- EUR-Lex upstream unavailability causes timeout or 503
- Payment of $0.01 USDC not fulfilled causes 402 rejection

## How this service works

Legal research over official EUR-Lex for EU legislation, treaties, case law and legal acts by keyword — returns CELEX number, title and date. Multilingual (en, fr, de, es, it, nl, pl).

## Output

A list of EU legal documents matching the keyword query, each with its CELEX identifier, official title, and publication date, drawn directly from the EUR-Lex database.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "description": "Max documents [1-50], e.g. 10"
      },
      "query": {
       "type": "string",
       "description": "Keywords searched in act titles, e.g. 'data protection'"
      },
      "language": {
       "type": "string",
       "description": "Language: en, fr, de, es, it, nl, pl (default en)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "query": "data protection",
  "cached": false,
  "source": "EUR-Lex / CELLAR SPARQL (publications.europa.eu)",
  "language": "en",
  "documents": [
   {
    "url": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32016R0679",
    "date": "2016-04-27",
    "celex": "32016R0679",
    "title": "Regulation (EU) 2016/679 of the European Parliament and of the Council"
   }
  ],
  "timestamp": "2026-06-24T15:10:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eur-lex-legal-search-via-x402-endpoints-4879232b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-endpoints.onrender.com](https://www.zero.xyz/host/x402-endpoints.onrender.com/llms.txt)
