{
  "openapi": "3.0.1",
  "info": {
    "title": "EUR-Lex Scraper – EU Legislation API (Regulations & Directives)",
    "description": "Search and download EU law from EUR-Lex via the official CELLAR API: regulations, directives and decisions with CELEX number, title, dates, in-force status, EuroVoc, ELI, PDF links and optional full text in 24 languages. $1 per 1,000 acts.",
    "version": "0.1",
    "x-build-id": "GQ3g52HXfjYHQtva3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/andreaajohansen~eur-lex-cellar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-andreaajohansen-eur-lex-cellar",
        "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/andreaajohansen~eur-lex-cellar/runs": {
      "post": {
        "operationId": "runs-sync-andreaajohansen-eur-lex-cellar",
        "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/andreaajohansen~eur-lex-cellar/run-sync": {
      "post": {
        "operationId": "run-sync-andreaajohansen-eur-lex-cellar",
        "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": {
          "searchQuery": {
            "title": "Search query (words in the title)",
            "type": "string",
            "description": "Words that must all appear in the document title, in the chosen language. Example: artificial intelligence, data protection, deforestation. Leave empty to list documents by the other filters."
          },
          "celexNumbers": {
            "title": "CELEX numbers",
            "type": "array",
            "description": "Look up specific acts by CELEX number, e.g. 32016R0679 (GDPR), 32024R1689 (AI Act), 32019L0790 (Copyright Directive). Other filters still apply.",
            "items": {
              "type": "string"
            }
          },
          "documentTypes": {
            "title": "Document types",
            "type": "array",
            "description": "Leave empty for all legislation types (regulations, directives, decisions, recommendations).",
            "items": {
              "type": "string",
              "enum": [
                "regulation",
                "directive",
                "decision",
                "recommendation"
              ],
              "enumTitles": [
                "Regulations (incl. implementing & delegated)",
                "Directives (incl. implementing & delegated)",
                "Decisions (incl. implementing, delegated, framework)",
                "Recommendations"
              ]
            }
          },
          "dateFrom": {
            "title": "Document date from",
            "type": "string",
            "description": "Earliest document (adoption) date: 2024, 2024-06 or 2024-06-30."
          },
          "dateTo": {
            "title": "Document date to",
            "type": "string",
            "description": "Latest document date: 2025, 2025-12 or 2025-12-31."
          },
          "inForceStatus": {
            "title": "In-force status",
            "enum": [
              "any",
              "in_force",
              "not_in_force"
            ],
            "type": "string",
            "description": "Every act carries an in-force flag from EUR-Lex.",
            "default": "any"
          },
          "language": {
            "title": "Language",
            "enum": [
              "EN",
              "BG",
              "CS",
              "DA",
              "DE",
              "EL",
              "ES",
              "ET",
              "FI",
              "FR",
              "GA",
              "HR",
              "HU",
              "IT",
              "LT",
              "LV",
              "MT",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SL",
              "SV"
            ],
            "type": "string",
            "description": "Language for titles, EuroVoc descriptors, author names, PDF/HTML links and full text. The keyword search also uses this language.",
            "default": "EN"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of documents to save (newest first).",
            "default": 100
          },
          "includeFullText": {
            "title": "Include full text",
            "type": "boolean",
            "description": "Download the HTML version from CELLAR and add the plain text. Slower; not all documents have an HTML version.",
            "default": false
          },
          "maxFullTextChars": {
            "title": "Max full-text characters",
            "minimum": 1000,
            "maximum": 1000000,
            "type": "integer",
            "description": "Full text longer than this is cut (fullTextTruncated = true).",
            "default": 100000
          },
          "excludeCorrigenda": {
            "title": "Exclude corrigenda",
            "type": "boolean",
            "description": "Skip correction notices (CELEX ending in R(01), R(02) ...).",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}