# European Union API: Search EU law

> Searches EUR-Lex legal acts by topic, ranked by the site's relevance, filtered by document type, year of adoption and in-force status. Short names and ELI links are included when shown in the results.

Unofficial. Not affiliated with or endorsed by European Union.

- Page: https://fous.com/methods/eur-lex.europa.eu/search-eu-law
- Method: `eur-lex.europa.eu/search_eu_law`, version 1
- Website: eur-lex.europa.eu
- Returns: title, short name, document type and number, date, in-force status, author, link, CELEX number, ELI link
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `year` | integer | no |  | Year the document was adopted, for example 2024. |
| `query` | string | yes | `"artificial intelligence"` | Words describing the EU law topic, for example packaging waste. |
| `max_results` | integer | no |  | Maximum laws to return, for example 20 (up to 100). Default 20. |
| `document_type` | string | no |  | Type of law to include, for example regulation. One of "any", "regulation", "directive", "decision". Default "any". |
| `in_force_only` | string | no |  | Return only laws currently in force, for example yes. One of "yes", "no". Default "yes". |

## Output

From a run on Oct 31, 2026, shortened. Its input:

```json
{
  "query": "artificial intelligence"
}
```

Its output:

```json
{
  "laws": [
    {
      "link": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32024R1689",
      "title": "Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 laying down harmonised rules on artificial intelligence and amending Regulations (EC) No 300/2008, (EU) No 167/2013, (EU) No 168/2013, (EU) 2018/858, (EU) 2018/1139 and (EU) 2019/2144 and Directives 2014/90/EU, (…",
      "eli_link": "http://data.europa.eu/eli/reg/2024/1689/oj",
      "in_force": "yes",
      "short_name": "Artificial Intelligence Act",
      "celex_number": "32024R1689",
      "document_date": "2024-06-13",
      "document_type": "Regulation",
      "document_number": "Regulation (EU) 2024/1689",
      "author_institution": "European Parliament, Council of the European Union"
    },
    {
      "link": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32021R0694",
      "title": "Regulation (EU) 2021/694 of the European Parliament and of the Council of 29 April 2021 establishing the Digital Europe Programme and repealing Decision (EU) 2015/2240 (Text with EEA relevance)",
      "eli_link": null,
      "in_force": "yes",
      "short_name": null,
      "celex_number": "32021R0694",
      "document_date": "2021-04-29",
      "document_type": "Regulation",
      "document_number": "Regulation (EU) 2021/694",
      "author_institution": "European Parliament, Council of the European Union"
    },
    {
      "link": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32025R0038",
      "title": "Regulation (EU) 2025/38 of the European Parliament and of the Council of 19 December 2024 laying down measures to strengthen solidarity and capacities in the Union to detect, prepare for and respond to cyber threats and incidents and amending Regulation (EU) 2021/694 (Cyber Solidarity Act)",
      "eli_link": "http://data.europa.eu/eli/reg/2025/38/oj",
      "in_force": "yes",
      "short_name": "Cyber Solidarity Act",
      "celex_number": "32025R0038",
      "document_date": "2024-12-19",
      "document_type": "Regulation",
      "document_number": "Regulation (EU) 2025/38",
      "author_institution": "European Parliament, Council of the European Union"
    }
  ]
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"eur-lex.europa.eu/search_eu_law","input":{"query":"artificial intelligence"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- Find EU directives on packaging waste that are currently in force
- Which regulations did the EU adopt in 2024 about artificial intelligence? I need their CELEX numbers and ELI links.
- Search EUR-Lex for decisions from 2019 on fisheries quotas in the Baltic Sea, including ones no longer in force
- List up to 50 EU laws on data protection and privacy, any type, with short names and dates
- What EU legislation currently applies to batteries recycling? Show results from europa.eu with in-force status and author.

## Input schema

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "year": {
      "type": "integer",
      "maximum": 2100,
      "minimum": 1950,
      "description": "Year the document was adopted, for example 2024."
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Words describing the EU law topic, for example packaging waste."
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum laws to return, for example 20 (up to 100).",
      "x-fous-developer": true
    },
    "document_type": {
      "enum": [
        "any",
        "regulation",
        "directive",
        "decision"
      ],
      "type": "string",
      "default": "any",
      "description": "Type of law to include, for example regulation."
    },
    "in_force_only": {
      "enum": [
        "yes",
        "no"
      ],
      "type": "string",
      "default": "yes",
      "description": "Return only laws currently in force, for example yes."
    }
  },
  "additionalProperties": false
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "laws"
  ],
  "properties": {
    "laws": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "title",
          "short_name",
          "document_type",
          "document_number",
          "document_date",
          "in_force",
          "author_institution",
          "link",
          "celex_number",
          "eli_link"
        ],
        "properties": {
          "link": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "eli_link": {
            "type": [
              "string",
              "null"
            ],
            "x-fous-developer": true
          },
          "in_force": {
            "enum": [
              "yes",
              "no",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "short_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "celex_number": {
            "type": "string",
            "x-fous-developer": true
          },
          "document_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "document_type": {
            "type": "string"
          },
          "document_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "author_institution": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
```

## See more

- [European Union API: Get EU law article](https://fous.com/methods/eur-lex.europa.eu/get-law-article.md): Gets the official text and key dates of one article of an EU regulation or directive from EUR-Lex, in the latest consolidated version when there is one, in any official EU language.
- [European Union API: Search EU contract awards](https://fous.com/methods/ted.europa.eu/search-contract-awards.md): Finds published EU contract award notices on Tenders Electronic Daily by contract topic or winning company, newest publication first, optionally limited to a buyer country and a start date. Values and tender counts are included when published; counts across lots are summed.
- [European Union API: Search EU public procurement notices](https://fous.com/methods/ted.europa.eu/search-tenders.md): Finds recently published EU procurement notices matching what is being bought, with buyer, estimated value, submission deadline and TED notice link. Open-only results must have a future submission deadline.
- [European Union API: Get Eurostat statistic for a country](https://fous.com/methods/ec.europa.eu/get-statistic.md): Looks up an official Eurostat statistic for an EU or EEA country and the EU27 figure for the same period. Quarterly and half-yearly series return the reporting period that contains a requested month.
- [European Union API: Get key interest rates](https://fous.com/methods/ecb.europa.eu/get-key-interest-rates.md): Returns the ECB's current deposit facility, main refinancing operations and marginal lending facility rates with their effective date. Optionally includes earlier rate changes, newest first.
- [European Union API: Validate EU VAT number](https://fous.com/methods/ec.europa.eu/validate-vat-number.md): Checks an EU VAT number in the European Commission's VIES service and returns whether it is valid, with the registered name and address when the country makes them available.
- [European Union API: Get euro exchange rates](https://fous.com/methods/ecb.europa.eu/get-euro-exchange-rates.md): Gets the official ECB euro reference exchange rates for a day, or the latest published day. Weekends, holidays and dates before publication return the previous published day.
- [European Union API: Convert currency](https://fous.com/methods/ecb.europa.eu/convert-currency.md): Converts an amount between currencies using ECB euro reference rates, including euro and cross-currency conversions. Uses the latest preceding published rate when the date has none.
- [All European Union methods](https://fous.com/methods/europa.eu.md)
