# Légifrance French Legal Texts Search & Lookup

> Légifrance French Legal Texts Search & Lookup is a paid API for AI agents from x402-endpoints.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Searches and retrieves French legal texts, codes, and articles from the official Légifrance database (DILA/PISTE) by keyword or specific text ID across corpora including laws/decrees, codes, and JORF

## Facts

- Endpoint: GET https://x402-endpoints.onrender.com/fr-legifrance/search
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/l-gifrance-french-legal-texts-search-lookup-541f1425
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HwqDH8I7zpQ9b_a0GnaQS

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 l-gifrance-french-legal-texts-search-lookup-541f1425
```

Example prompt: Search Légifrance for French laws about 'données personnelles' (personal data) in the LODA_DATE corpus and return up to 10 results.

## When to prefer this

Use this endpoint when you need to search or retrieve official French national law, codes, decrees, or JORF entries. Prefer this over EUR-Lex for French national legislation (not EU law). Ideal for legal research tasks requiring access to the official French legal corpus via Légifrance.

## Known failure modes

- No results found for keyword — legal terminology may need to be more specific in French
- Invalid corpus name (fond) — must be LODA_DATE, CODE_DATE, or JORF
- Text ID not found — document may have been repealed or ID is incorrect
- Limit out of range — must be between 1 and 50
- PISTE/DILA upstream API unavailable — returns server error
- Query too vague returning too many results — narrow with more specific French legal terminology

## How this service works

Official Légifrance (French law, via DILA/PISTE) — French legal texts, codes and articles search and lookup by keyword and corpus (codes, laws/decrees, JORF), or consult a text by id. Complements EUR-Lex (EU law) on the national French side. Official France coverage.

## Output

Returns a list of matching French legal texts, codes, or articles from the official Légifrance database, including text identifiers, titles, and content snippets. When querying by text_id, returns the full text of the specific legal document.

## 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": [],
     "properties": {
      "q": {
       "type": "string",
       "description": "Keyword search in French legal texts, e.g. 'données personnelles'"
      },
      "fond": {
       "type": "string",
       "description": "Corpus: LODA_DATE (laws/decrees) | CODE_DATE | JORF (default LODA_DATE)"
      },
      "limit": {
       "type": "integer",
       "description": "Max results [1-50], e.g. 10"
      },
      "text_id": {
       "type": "string",
       "description": "If set, consult a specific text by id/cid instead of searching"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fond": "LODA_DATE",
  "mode": "search",
  "count": 1,
  "query": "données personnelles",
  "total": 107757,
  "cached": false,
  "source": "Légifrance via DILA/PISTE (api.piste.gouv.fr)",
  "results": [
   {
    "id": "LEGITEXT000048853940_01-01-2024",
    "cid": "JORFTEXT000048736062",
    "date": "2024-01-01T00:00:00.000+0000",
    "etat": "VIGUEUR",
    "title": "Décret n° 2023-1397 du 29 décembre 2023 relatif au traitement des données personnelles et au contrôle du placement en activité partielle",
    "nature": "DECRET",
    "text_summary": null
   }
  ],
  "timestamp": "2026-06-25T12:00:00Z",
  "disclaimer": "Indicative data from Légifrance (DILA), not legal advice."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/l-gifrance-french-legal-texts-search-lookup-541f1425/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)
