{
  "openapi": "3.0.1",
  "info": {
    "title": "France Brownfield Sites (Cartofriches) - Vacant Land Finder",
    "description": "Find French brownfield sites in the official Cartofriches inventory: status, land area, soil pollution, zoning, owner type and parcels, by town or radius.",
    "version": "1.3",
    "x-build-id": "6VPapARwuLGfALcrJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eurodata-lab~france-brownfield-sites/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eurodata-lab-france-brownfield-sites",
        "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/eurodata-lab~france-brownfield-sites/runs": {
      "post": {
        "operationId": "runs-sync-eurodata-lab-france-brownfield-sites",
        "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/eurodata-lab~france-brownfield-sites/run-sync": {
      "post": {
        "operationId": "run-sync-eurodata-lab-france-brownfield-sites",
        "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": {
          "communeCodes": {
            "title": "Commune INSEE codes",
            "type": "array",
            "description": "Keep only sites in these communes, by 5-character INSEE code (not the postal code), for example 16015 for Angouleme or 59350 for Lille. Paris (75056), Lyon (69123) and Marseille (13055) include their arrondissements. Leave empty for all communes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "departmentCodes": {
            "title": "Department codes",
            "type": "array",
            "description": "Keep only sites in these departments, for example 59, 2A or 974. Leave empty for all of France.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Latitude (radius search)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Latitude of the centre of a radius search, in decimal degrees (WGS84), for example 45.6484. Use it with Longitude and Radius. Leave empty for no radius search."
          },
          "longitude": {
            "title": "Longitude (radius search)",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of the centre of a radius search, in decimal degrees (WGS84), for example 0.1562. Use it with Latitude and Radius."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 500,
            "type": "number",
            "description": "Search radius around the latitude and longitude, in kilometres. Each site gets its distance to the centre in distanceKm. Sites owned by private individuals are placed at the centre of their commune (privacy).",
            "default": 10
          },
          "statuses": {
            "title": "Site status",
            "type": "array",
            "description": "<b>Without project</b>: confirmed brownfield with no known redevelopment project (the best leads). <b>Potential</b>: possible brownfield not yet confirmed on site. <b>With project</b>: a redevelopment project exists. <b>Reconverted</b>: already redeveloped. Leave empty for all statuses.",
            "items": {
              "type": "string",
              "enum": [
                "withoutProject",
                "potential",
                "withProject",
                "reconverted"
              ],
              "enumTitles": [
                "Without project",
                "Potential (not yet confirmed)",
                "With project",
                "Reconverted"
              ]
            },
            "default": []
          },
          "siteTypes": {
            "title": "Site type",
            "type": "array",
            "description": "Keep only these former uses of the site. Leave empty for all types. Many sites are of unknown type in the source.",
            "items": {
              "type": "string",
              "enum": [
                "industrial",
                "commercial",
                "housing",
                "publicFacility",
                "agroIndustrial",
                "railway",
                "leisureTourismHotel",
                "logistics",
                "quarryOrMine",
                "hospital",
                "military",
                "education",
                "religious",
                "airport",
                "port",
                "office",
                "mixed",
                "other",
                "unknown"
              ],
              "enumTitles": [
                "Industrial",
                "Commercial",
                "Housing",
                "Public facility",
                "Agro-industrial",
                "Railway",
                "Leisure, tourism, hotel",
                "Logistics",
                "Quarry or mine",
                "Hospital",
                "Military",
                "Education",
                "Religious",
                "Airport",
                "Port",
                "Office",
                "Mixed",
                "Other",
                "Unknown"
              ]
            },
            "default": []
          },
          "minLandAreaM2": {
            "title": "Minimum land area (m²)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep only sites whose land holding is at least this size, in square metres (10 000 m² = 1 hectare). Sites of private owners only have an area range (privacy): they are kept when their range overlaps your bounds. Sites without a known area are left out when this filter is set. 0 = no minimum.",
            "default": 0
          },
          "maxLandAreaM2": {
            "title": "Maximum land area (m²)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep only sites whose land holding is at most this size, in square metres. Sites of private owners are kept when their area range overlaps your bounds. 0 = no maximum.",
            "default": 0
          },
          "landAreaRanges": {
            "title": "Land area range",
            "type": "array",
            "description": "Keep only sites in these land area ranges (works the same for every site, including sites of private owners, whose exact area is withheld). Leave empty for all sizes.",
            "items": {
              "type": "string",
              "enum": [
                "under1000",
                "from1000to5000",
                "from5000to10000",
                "atLeast10000"
              ],
              "enumTitles": [
                "Under 1,000 m²",
                "1,000 to 5,000 m²",
                "5,000 m² to 1 hectare",
                "1 hectare or more"
              ]
            },
            "default": []
          },
          "soilPollution": {
            "title": "Soil pollution",
            "type": "array",
            "description": "Keep only sites with this soil pollution status. Most sites are \"Unknown\" in the source. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "proven",
                "suspected",
                "unlikely",
                "none",
                "treated",
                "unknown"
              ],
              "enumTitles": [
                "Proven",
                "Suspected",
                "Unlikely",
                "None",
                "Treated",
                "Unknown"
              ]
            },
            "default": []
          },
          "zoningCategories": {
            "title": "Planning zone",
            "type": "array",
            "description": "Keep only sites in these zones of the local urban plan. <b>Urban</b> (U) and <b>To be urbanised</b> (AU) are buildable zones of a PLU; <b>Buildable area</b> and <b>Non-buildable area</b> come from a simple municipal map (carte communale). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "urban",
                "toBeUrbanised",
                "agricultural",
                "natural",
                "buildableArea",
                "nonBuildableArea",
                "other",
                "unknown"
              ],
              "enumTitles": [
                "Urban (U)",
                "To be urbanised (AU)",
                "Agricultural (A)",
                "Natural (N)",
                "Buildable area (municipal map)",
                "Non-buildable area (municipal map)",
                "Other",
                "Unknown"
              ]
            },
            "default": []
          },
          "ownerGroups": {
            "title": "Owner type",
            "type": "array",
            "description": "Keep only sites with at least one owner of these types (Cerema land-owner classification). Owners that are private individuals are never named, and their sites are located at commune level only. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "publicAuthority",
                "landProfessional",
                "agriculturalOrNatural",
                "networkOperator",
                "civilCompanyOrCoOwnership",
                "educationOrResearch",
                "healthOrSocial",
                "business",
                "leisureCultureReligion",
                "otherLegalEntity",
                "privateIndividual"
              ],
              "enumTitles": [
                "Public authority (State, region, department, municipality...)",
                "Land and property professional (social housing, public land agency, developer, investor)",
                "Agricultural, forestry or nature body",
                "Network operator (rail, road, energy, water, telecom)",
                "Civil company (SCI) or co-ownership",
                "Education or research",
                "Health or social",
                "Business (industry, retail, quarry)",
                "Leisure, culture or religion",
                "Other legal entity",
                "Private individual (never named)"
              ]
            },
            "default": []
          },
          "ownerNameContains": {
            "title": "Owner name contains",
            "type": "string",
            "description": "Keep only sites with an owner (company or public body) whose name contains this text, for example SNCF, EPF or COMMUNE DE LENS (at least 3 characters, accents and case ignored). Leave empty for all owners.",
            "default": ""
          },
          "changedSince": {
            "title": "Identified or updated since",
            "type": "string",
            "description": "Keep only sites identified or updated on or after this date, for monitoring new entries. Enter a date (2026-01-31), \"today\", or a period such as \"30 days ago\" or \"6 months ago\". Leave empty for all dates.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "landAreaDesc",
              "landAreaAsc",
              "newest",
              "distance",
              "sourceOrder"
            ],
            "type": "string",
            "description": "Order of the results. <b>Distance</b> needs a radius search. <b>Most recent</b> uses the latest of the identification and update dates.",
            "default": "landAreaDesc"
          },
          "maxResults": {
            "title": "Maximum number of results",
            "minimum": 1,
            "maximum": 40000,
            "type": "integer",
            "description": "Safety cap on the number of sites returned. The run stops once it is reached, so you never pay for more than this.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}