{
  "openapi": "3.0.1",
  "info": {
    "title": "EU AI Act & Regulation Monitor (RAG-Optimized)",
    "description": "Monitors EUR-Lex for EU AI-related legislation and delivers clean, structured Markdown/JSON enriched with CELEX IDs, version hashes, token counts, and vector-DB chunk hints. Ideal for RAG pipelines, legal AI assistants, and compliance dashboards.\n\nPremium RAG-Ready Feed: $50.00 per 1,000 results.",
    "version": "2.0",
    "x-build-id": "uqdVSxSmAYFhm99Ee"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aelix~eu-ai-act-regulation-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aelix-eu-ai-act-regulation-monitor",
        "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/aelix~eu-ai-act-regulation-monitor/runs": {
      "post": {
        "operationId": "runs-sync-aelix-eu-ai-act-regulation-monitor",
        "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/aelix~eu-ai-act-regulation-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-aelix-eu-ai-act-regulation-monitor",
        "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": {
          "searchTerms": {
            "title": "Search Terms",
            "type": "array",
            "description": "One or more EUR-Lex search queries. Documents found across multiple terms are saved only once (deduplicated by CELEX ID). Add more terms for a broader sweep. Leave blank to use the single 'Search Query' field below.",
            "default": [
              "\"artificial intelligence\""
            ],
            "items": {
              "type": "string"
            }
          },
          "searchText": {
            "title": "Search Query (single term)",
            "type": "string",
            "description": "Used only when 'Search Terms' is empty. Supports EUR-Lex query syntax: double-quotes for phrases, OR/AND for boolean logic.",
            "default": "\"artificial intelligence\""
          },
          "searchIn": {
            "title": "Search In",
            "enum": [
              "ti",
              "te",
              "ti-te"
            ],
            "type": "string",
            "description": "Where within each document to apply the search query.",
            "default": "ti-te"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter EUR-Lex language code for the document text (the structure is identical across all 24 official languages).",
            "default": "en"
          },
          "maxPages": {
            "title": "Max Result Pages (per search term)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of EUR-Lex result pages to crawl per search term (~10 results per page).",
            "default": 3
          },
          "maxDocuments": {
            "title": "Max Documents (total, across all terms)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on total unique documents SAVED (and billed) across all search terms. The crawl stops as soon as this many are saved. Use to control maximum spend.",
            "default": 25
          },
          "changedOnly": {
            "title": "Only new or changed documents",
            "type": "boolean",
            "description": "When on, only documents that are NEW or whose text CHANGED since a previous run are delivered (and billed). State persists across runs, so scheduled monitoring stays cheap. Turn off to re-deliver the full corpus every run.",
            "default": true
          },
          "excludeCorrigenda": {
            "title": "Exclude Corrigenda",
            "type": "boolean",
            "description": "Filter out correction notices (Corrigenda) so you only get primary legislation.",
            "default": true
          },
          "includeConsolidated": {
            "title": "Include Consolidated Texts",
            "type": "boolean",
            "description": "Include EUR-Lex consolidated versions (sector 0). Off by default — the original adopted act is the authentic, citable text; consolidated versions have no legal effect.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Concurrent HTTP requests. EUR-Lex tolerates modest concurrency comfortably.",
            "default": 5
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Route requests through Apify Proxy (datacenter). Enable only if EUR-Lex starts rate-limiting the run's IP — direct access normally works.",
            "default": false
          },
          "startUrl": {
            "title": "Override Start URL",
            "type": "string",
            "description": "Advanced: override the EUR-Lex search-results URL entirely. Bypasses the search-term builder. Leave blank for normal operation."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}