{
  "openapi": "3.0.1",
  "info": {
    "title": "France Industrial Sites ICPE: Seveso, Permits, Inspections",
    "description": "Official register of French classified industrial sites (ICPE) from Géorisques: operator, SIRET, permit regime, Seveso level, IED, inspections and reports, plus pollutant emissions, CO2 tonnes, waste and water (IREP). Filter by area, SIREN, sector or CO2. Pay per site.",
    "version": "1.0",
    "x-build-id": "zzxWfZJfi2XhaJeWk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datacraft-studio~france-industrial-sites-icpe/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datacraft-studio-france-industrial-sites-icpe",
        "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/datacraft-studio~france-industrial-sites-icpe/runs": {
      "post": {
        "operationId": "runs-sync-datacraft-studio-france-industrial-sites-icpe",
        "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/datacraft-studio~france-industrial-sites-icpe/run-sync": {
      "post": {
        "operationId": "run-sync-datacraft-studio-france-industrial-sites-icpe",
        "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": {
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department codes, e.g. 13, 69, 2A, 974. Leave empty with the other area fields empty to scan all of France (about 139,000 sites).",
            "items": {
              "type": "string"
            }
          },
          "communeInseeCodes": {
            "title": "Cities (INSEE commune codes)",
            "type": "array",
            "description": "5-character INSEE codes, e.g. 69123 (Lyon), 13055 (Marseille). Used instead of departments when filled.",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Around a point: latitude",
            "type": "string",
            "description": "e.g. 45.7578. Used with longitude and radius instead of departments/cities."
          },
          "longitude": {
            "title": "Around a point: longitude",
            "type": "string",
            "description": "e.g. 4.8320"
          },
          "radiusMeters": {
            "title": "Radius (meters)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Search radius around the point.",
            "default": 5000
          },
          "sirens": {
            "title": "SIREN or SIRET numbers",
            "type": "array",
            "description": "Companies to look up. SIRET (14 digits) is the fastest. A SIREN (9 digits) is matched inside the chosen area, or in all of France if no area is given (a few minutes).",
            "items": {
              "type": "string"
            }
          },
          "nameQuery": {
            "title": "Operator name contains",
            "type": "string",
            "description": "e.g. total, veolia, lafarge."
          },
          "nafCodes": {
            "title": "Sector (NAF division)",
            "type": "array",
            "description": "2-digit NAF divisions, e.g. 20 (chemicals), 38 (waste), 10 (food industry), 01 (farming).",
            "items": {
              "type": "string"
            }
          },
          "regimes": {
            "title": "Permit regime",
            "type": "array",
            "description": "Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "authorisation",
                "registration",
                "other",
                "not_icpe"
              ],
              "enumTitles": [
                "Authorisation (Autorisation)",
                "Registration (Enregistrement)",
                "Other regimes (incl. declaration)",
                "No longer ICPE"
              ]
            }
          },
          "seveso": {
            "title": "Seveso status",
            "enum": [
              "any",
              "seveso",
              "high",
              "low",
              "not_seveso"
            ],
            "type": "string",
            "description": "Keep only sites with this Seveso status.",
            "default": "any"
          },
          "sectors": {
            "title": "Site type",
            "type": "array",
            "description": "Keep sites of any of these types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "industry",
                "quarry",
                "wind_farm",
                "cattle",
                "pigs",
                "poultry"
              ],
              "enumTitles": [
                "Industry",
                "Quarry",
                "Wind farm",
                "Cattle farm",
                "Pig farm",
                "Poultry farm"
              ]
            }
          },
          "iedOnly": {
            "title": "Only IED sites (EU Industrial Emissions Directive)",
            "type": "boolean",
            "description": "Sites covered by the EU Industrial Emissions Directive (large polluting installations).",
            "default": false
          },
          "activeOnly": {
            "title": "Only sites in operation",
            "type": "boolean",
            "description": "Keep sites whose status is \"En exploitation\".",
            "default": false
          },
          "updatedSince": {
            "title": "Updated since (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only sites whose Géorisques record changed on or after this date."
          },
          "inspectedSince": {
            "title": "Last inspection since (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only sites inspected on or after this date."
          },
          "includeDetails": {
            "title": "Include inspections, documents and activities lists",
            "type": "boolean",
            "description": "Turn off for a lighter, flat table.",
            "default": true
          },
          "includeEmissions": {
            "title": "Add pollutant emissions, waste and water (IREP)",
            "type": "boolean",
            "description": "Joins the official French pollutant release register (IREP, latest year available) to each site: air, water and soil emissions above the reporting thresholds, CO2 in tonnes, hazardous and non-hazardous waste produced or treated, water withdrawals and discharges. Only about 10% of sites report to IREP (the largest emitters); other sites get irepReported = false. No extra charge.",
            "default": true
          },
          "onlyWithEmissions": {
            "title": "Only sites that report emissions (IREP)",
            "type": "boolean",
            "description": "Keep only sites present in the IREP register for the chosen year (about 13,800 large emitters, waste plants and farms).",
            "default": false
          },
          "minCo2Tonnes": {
            "title": "Minimum CO2 emissions (tonnes per year)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only sites whose reported CO2 to air (total, or fossil if the total is missing) is at least this value. Example: 10000 for big emitters."
          },
          "emissionsYear": {
            "title": "IREP year",
            "minimum": 2003,
            "maximum": 2100,
            "type": "integer",
            "description": "Year of the IREP declarations to join. Empty = latest file published by Géorisques (2025 data at the time of writing)."
          },
          "onlyNew": {
            "title": "Alert mode: only new or changed sites",
            "type": "boolean",
            "description": "Remembers delivered sites (per state store). Schedule it weekly to get only new sites, new inspections or updated records.",
            "default": false
          },
          "stateStoreName": {
            "title": "Alert mode: state store name",
            "type": "string",
            "description": "Use a different name for each saved search.",
            "default": "france-industrial-sites-icpe-state"
          },
          "maxItems": {
            "title": "Maximum sites",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many delivered sites (you only pay for delivered sites).",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}