{
  "openapi": "3.0.1",
  "info": {
    "title": "EU & International Law Search: EUR-Lex, DE, AT, NL, ES, JP",
    "description": "Search official law databases (EUR-Lex, Germany, Austria, Netherlands, Spain, Japan) by keyword or document id. Clean JSON per law: title, type, number, dates, in force or repealed, ELI, links, optional full text. For AI agents, legal research and compliance. Pay per law.",
    "version": "0.1",
    "x-build-id": "9CbX4KZSsgGgpFAwy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/henrycrawl~law-regulation-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-henrycrawl-law-regulation-search",
        "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/henrycrawl~law-regulation-search/runs": {
      "post": {
        "operationId": "runs-sync-henrycrawl-law-regulation-search",
        "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/henrycrawl~law-regulation-search/run-sync": {
      "post": {
        "operationId": "run-sync-henrycrawl-law-regulation-search",
        "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": "Search words",
            "type": "string",
            "description": "Words that must ALL appear in the law's title. Use the official language of each jurisdiction (EU: any EU language set in 'EU language', DE/AT: German, NL: Dutch, ES: Spanish, JP: Japanese), or give per-jurisdiction words below."
          },
          "jurisdictions": {
            "title": "Jurisdictions",
            "type": "array",
            "description": "Which official databases to search. Default: all six.",
            "items": {
              "type": "string",
              "enum": [
                "EU",
                "DE",
                "AT",
                "NL",
                "ES",
                "JP"
              ],
              "enumTitles": [
                "European Union (EUR-Lex)",
                "Germany (federal law, gesetze-im-internet.de)",
                "Austria (federal law, RIS)",
                "Netherlands (wetten.overheid.nl)",
                "Spain (BOE consolidated legislation)",
                "Japan (e-Gov laws)"
              ]
            }
          },
          "queryByJurisdiction": {
            "title": "Search words per jurisdiction",
            "type": "object",
            "description": "Optional: different search words per jurisdiction, e.g. {\"DE\": \"Datenschutz\", \"ES\": \"protección de datos\", \"JP\": \"個人情報\"}. Overrides 'Search words' for that jurisdiction."
          },
          "documentIds": {
            "title": "Look up by document id",
            "type": "array",
            "description": "Exact documents as JURISDICTION:id, e.g. EU:32016R0679 (CELEX), DE:bdsg_2018, AT:10001597 (Gesetzesnummer), NL:BWBR0040940, ES:BOE-A-2018-16673, JP:415AC0000000057.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "in-force",
              "all",
              "repealed"
            ],
            "type": "string",
            "description": "Return only laws currently in force (default), all, or only repealed ones. Germany publishes only laws in force.",
            "default": "in-force"
          },
          "maxResultsPerJurisdiction": {
            "title": "Max laws per jurisdiction",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Best matches per jurisdiction (EU: exact phrase and regulations / directives first; national: main acts first).",
            "default": 5
          },
          "includeFullText": {
            "title": "Include full text",
            "type": "boolean",
            "description": "Also return the full consolidated text of each law as plain text (charged separately per document).",
            "default": false
          },
          "fullTextMaxChars": {
            "title": "Max characters of full text",
            "minimum": 0,
            "maximum": 2000000,
            "type": "integer",
            "description": "Cut long laws to this many characters (fullTextTruncated tells you). 0 = no limit.",
            "default": 50000
          },
          "euLanguage": {
            "title": "EU language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "pt",
              "sv",
              "da",
              "fi",
              "cs",
              "ro",
              "hu",
              "el",
              "bg",
              "sk",
              "sl",
              "hr",
              "lt",
              "lv",
              "et",
              "ga",
              "mt"
            ],
            "type": "string",
            "description": "Language of EU titles, search words and full text.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}