{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Law Lookup API (EUR-Lex): article text, in force, amendments",
    "description": "The text of an EU law article as in force today (or on a date), whether the act is in force, what amended it, plus new Official Journal acts. Ask by name (GDPR, AI Act), citation, CELEX or ELI; 24 languages. Official EUR-Lex/Cellar data with a source link per row.",
    "version": "0.1",
    "x-build-id": "u2YwE6Qzun6c57tKg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bosco_labs~eu-law-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bosco_labs-eu-law-lookup",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/bosco_labs~eu-law-lookup/runs": {
      "post": {
        "operationId": "runs-sync-bosco_labs-eu-law-lookup",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/bosco_labs~eu-law-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-bosco_labs-eu-law-lookup",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "title": "EU act",
            "pattern": "^[^\\[\\]{}<>\\r\\n]*$",
            "type": "string",
            "description": "The EU act to look up: a short name (\"GDPR\", \"AI Act\", \"DSA\", \"NIS2\", \"DORA\", \"MiCA\", \"CSRD\"...), a citation (\"Regulation (EU) 2024/1689\", \"Directive 95/46/EC\", \"Regulation (EC) No 1907/2006\"), a bare number (\"2016/679\"), a CELEX number (\"32016R0679\") or an ELI URI (\"http://data.europa.eu/eli/reg/2016/679/oj\"). \"AI Act Article 50\" also works. Leave empty only when using ojSince (new Official Journal acts). An unreadable citation fails in seconds, with examples, at no charge."
          },
          "article": {
            "title": "Article(s)",
            "pattern": "^\\s*([A-Za-z.\\s]*\\d[0-9A-Za-z\\s().,;]*)?$",
            "type": "string",
            "description": "Article number, optionally with a paragraph: \"5\", \"6(1)\", \"4a\"; several separated by commas (\"5, 6(1)\", up to 10). One row per article. Empty = one row for the whole act with its table of contents and recital count (no full text unless include has \"text\")."
          },
          "language": {
            "title": "Language",
            "enum": [
              "BG",
              "CS",
              "DA",
              "DE",
              "EL",
              "EN",
              "ES",
              "ET",
              "FI",
              "FR",
              "GA",
              "HR",
              "HU",
              "IT",
              "LT",
              "LV",
              "MT",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SL",
              "SV"
            ],
            "type": "string",
            "description": "EU language code of the text and titles: BG, CS, DA, DE, EL, EN, ES, ET, FI, FR, GA, HR, HU, IT, LT, LV, MT, NL, PL, PT, RO, SK, SL, SV. Default EN. If the text is missing in that language, English is returned with a warning. E.g. \"DE\".",
            "default": "EN"
          },
          "asOf": {
            "title": "As of date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}(T.*)?)?$",
            "type": "string",
            "description": "YYYY-MM-DD, e.g. \"2025-01-01\": return the consolidated version that applied on that date. Empty = today (the newest consolidated version in force now). Acts without consolidated versions return the Official Journal text."
          },
          "include": {
            "title": "Extra sections",
            "type": "array",
            "description": "Any of \"metadata\" (always on), \"amendments\" (amended_by, corrected_by, repealed_by, amends, repeals), \"citing\" (acts and judgments that cite this act, newest first) and \"text\" (the whole act as plain text, cut at maxTextChars). Default [\"metadata\", \"amendments\"]. The price is the same.",
            "items": {
              "type": "string",
              "enum": [
                "metadata",
                "amendments",
                "citing",
                "text"
              ],
              "enumTitles": [
                "Metadata (always on)",
                "Amendments (amended/corrected/repealed by, amends, repeals)",
                "Citing acts and judgments",
                "Full text of the act"
              ]
            },
            "default": [
              "metadata",
              "amendments"
            ]
          },
          "maxTextChars": {
            "title": "Max text characters",
            "minimum": 1000,
            "maximum": 500000,
            "type": "integer",
            "description": "Cap on article_text and text, in characters, e.g. 30000 (default). Longer text is cut and flagged (article_text_truncated / text_truncated) with a warning.",
            "default": 30000
          },
          "maxCiting": {
            "title": "Max citing acts",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "With include \"citing\": how many citing acts to list, newest first, e.g. 20 (default). citing_acts_total always gives the full count.",
            "default": 20
          },
          "ojSince": {
            "title": "New OJ acts since (date)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}(T.*)?)?$",
            "type": "string",
            "description": "Switches to Official Journal mode: list acts published in the OJ L series from this date (YYYY-MM-DD, e.g. \"2026-11-03\") until today, newest first, at most 31 days back. Leave query empty when you use this. Empty = normal lookup."
          },
          "keywords": {
            "title": "OJ title keywords",
            "pattern": "^[^\\[\\]{}<>\\r\\n]*$",
            "type": "string",
            "description": "OJ mode only: comma-separated words or phrases; an act is kept when its title (in the chosen language) contains any of them, case-insensitive, e.g. \"artificial intelligence, data\". Empty = all acts."
          },
          "maxResults": {
            "title": "Max OJ acts",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "OJ mode only: the most acts to return, newest first, e.g. 50 (default). One charge per act returned.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}