Merx Legal API

The Legal API from Merx — 1 operation(s) for legal.

GitHub OpenAPI

Operations 1

GET /v1/legal/search French legal search — laws, decrees, case law via Légifrance #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/merxprotocol-eu:merxprotocol-eu-legal-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

merxprotocol-eu-legal-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Merx Legal API
  version: 1.0.0
  description: European business data — French company verification, EU VAT validation, and legal search. Paid via MPP (HTTP 402 Tempo charge).
  x-guidance: Merx provides European business intelligence. Use GET /v1/company/{siret} with a 14-digit French SIRET number to get company status, directors, address, and BODACC risk score. Use GET /v1/vat/{country}/{number} with a 2-letter ISO country code and VAT number to validate EU VAT numbers via VIES. Use GET /v1/legal/search?q=... to search French legal databases. All paid endpoints require an X-API-Key header and return HTTP 402 with an MPP Tempo payment challenge. After payment, re-request with the Authorization header containing the payment credential.
servers:
- url: https://api.merxprotocol.eu
security:
- apiKey: []
tags:
- name: Legal
paths:
  /v1/legal/search:
    get:
      operationId: searchLegal
      summary: French legal search — laws, decrees, case law via Légifrance
      tags:
      - Legal
      x-payment-info:
        pricingMode: fixed
        price: '0.150000'
        protocols:
        - mpp
      parameters:
      - name: q
        in: query
        required: true
        description: Search query (3-200 characters)
        schema:
          type: string
          minLength: 3
          maxLength: 200
      - name: type
        in: query
        required: false
        description: Filter by document type
        schema:
          type: string
          enum:
          - code
          - loi
          - decret
          - jurisprudence
          - all
          default: all
      - name: limit
        in: query
        required: false
        description: Maximum number of results
        schema:
          type: integer
          minimum: 1
          maximum: 10
          default: 5
      requestBody:
        required: true
        description: Parameters are passed as query strings, but schema is provided for agent discovery
        content:
          application/json:
            schema:
              type: object
              required:
              - q
              properties:
                q:
                  type: string
                  minLength: 3
                  maxLength: 200
                  description: Search query (e.g. "licenciement faute grave")
                type:
                  type: string
                  enum:
                  - code
                  - loi
                  - decret
                  - jurisprudence
                  - all
                  default: all
                  description: Document type filter
                limit:
                  type: integer
                  minimum: 1
                  maximum: 10
                  default: 5
                  description: Maximum number of results
      responses:
        '200':
          description: Legal search results
          content:
            application/json:
              schema:
                type: object
                required:
                - query
                - results
                - total
                properties:
                  query:
                    type: string
                  type:
                    type: string
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        title:
                          type: string
                        jurisdiction:
                          type: string
                        date:
                          type: string
                        summary:
                          type: string
                        url:
                          type: string
                  total:
                    type: integer
                  metadata:
                    type: object
                    properties:
                      source:
                        type: string
                      latency_ms:
                        type: integer
                      checked_at:
                        type: string
        '402':
          description: Payment Required
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication
x-discovery:
  ownershipProofs: []