{
  "openapi": "3.0.1",
  "info": {
    "title": "France Property Prices, Rents, Yields & ABC Zones by Town",
    "description": "Official French property prices per m² (DVF), asking rents (ANIL), gross rental yield and housing zones (ABC zone, zone tendue, APL, Denormandie) by town, postcode, district, EPCI or department. Filter by zone or yield. Pay per area.",
    "version": "1.0",
    "x-build-id": "bigEiRawMDP5gu2FO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datacraft-studio~france-property-price-stats/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datacraft-studio-france-property-price-stats",
        "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-property-price-stats/runs": {
      "post": {
        "operationId": "runs-sync-datacraft-studio-france-property-price-stats",
        "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-property-price-stats/run-sync": {
      "post": {
        "operationId": "run-sync-datacraft-studio-france-property-price-stats",
        "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": {
          "communes": {
            "title": "Towns",
            "type": "array",
            "description": "Town names or INSEE codes, e.g. Lyon, Bordeaux, Paris 15e Arrondissement, 33063.",
            "items": {
              "type": "string"
            }
          },
          "postcodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "Each postcode returns every town (or Paris/Lyon/Marseille district) it covers.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department codes for department-level statistics, e.g. 69, 75, 2A, 974.",
            "items": {
              "type": "string"
            }
          },
          "epcis": {
            "title": "EPCI (intercommunalities)",
            "type": "array",
            "description": "9-digit SIREN of a metropole or community of communes, e.g. 200046977 (Métropole de Lyon).",
            "items": {
              "type": "string"
            }
          },
          "allCommunesOfDepartments": {
            "title": "All towns of these departments",
            "type": "array",
            "description": "Department codes; returns every town of each department (one charged row per town found).",
            "items": {
              "type": "string"
            }
          },
          "allDepartments": {
            "title": "All departments",
            "type": "boolean",
            "description": "Add every French department.",
            "default": false
          },
          "includeFrance": {
            "title": "Add France as a whole",
            "type": "boolean",
            "description": "Add a national row for comparison.",
            "default": false
          },
          "monthsOfHistory": {
            "title": "Months of monthly history",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Monthly figures included per area (also used for the trend). 0 = none.",
            "default": 12
          },
          "minSales": {
            "title": "Minimum sales to show a price",
            "minimum": 5,
            "maximum": 1000,
            "type": "integer",
            "description": "Prices based on fewer sales are hidden (sales counts are kept). Never below 5.",
            "default": 5
          },
          "includeRents": {
            "title": "Add rents and gross yield",
            "type": "boolean",
            "description": "Add asking rents per m² (ANIL Carte des loyers, latest yearly edition) and an indicative gross yield = 12 × rent / median sale price. Same price per area.",
            "default": true
          },
          "minGrossYieldPct": {
            "title": "Minimum gross yield (%)",
            "type": "string",
            "description": "Optional, e.g. 6 or 5.5. Only areas whose apartment or house gross yield reaches this value are delivered (others are not charged). Needs rents."
          },
          "sortByYield": {
            "title": "Sort by gross yield",
            "type": "boolean",
            "description": "Deliver the highest-yield areas first (best of apartment and house). Combine with 'All towns of these departments' and 'Max areas' for a top list.",
            "default": false
          },
          "includeZones": {
            "title": "Add housing zones (ABC, zone tendue, APL, Denormandie)",
            "type": "boolean",
            "description": "Add the official ABC zoning (Abis, A, B1, B2, C: PTZ/LLI/rent caps), whether the town is in a 'zone tendue' (vacant-housing tax and 1-month tenant notice), the APL zone 1/2/3 and whether the town is eligible for the Denormandie tax reduction (Action Cœur de Ville or ORT towns). Department rows get the number of towns per zone. Same price per area.",
            "default": true
          },
          "abcZones": {
            "title": "Only these ABC zones",
            "type": "array",
            "description": "Optional. Only towns in these ABC zones are delivered (others are not charged). Needs housing zones.",
            "items": {
              "type": "string",
              "enum": [
                "Abis",
                "A",
                "B1",
                "B2",
                "C"
              ],
              "enumTitles": [
                "A bis",
                "A",
                "B1",
                "B2",
                "C"
              ]
            }
          },
          "onlyZoneTendue": {
            "title": "Only towns in a zone tendue",
            "type": "boolean",
            "description": "Only deliver towns listed as 'zone tendue' (continuous urban area over 50,000 inhabitants with a housing shortage). Others are not charged.",
            "default": false
          },
          "onlyDenormandie": {
            "title": "Only Denormandie towns",
            "type": "boolean",
            "description": "Only deliver towns where the Denormandie tax reduction applies (renovated old rental housing; Action Cœur de Ville and ORT towns, official DILA list). Others are not charged. Needs housing zones.",
            "default": false
          },
          "maxItems": {
            "title": "Max areas",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of areas delivered (and charged).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}