{
  "openapi": "3.0.1",
  "info": {
    "title": "DVF France property sales / Mutations immobilières (beta)",
    "description": "Search official DVF+ by commune name/INSEE, year, total price, built area and type. FR : mutations par commune, année, prix, surface et type. Beta / Bêta.",
    "version": "0.1",
    "x-build-id": "QuwkhdUjtSquhcJ1m"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wavy_millpond~dvf-france/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wavy_millpond-dvf-france",
        "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/wavy_millpond~dvf-france/runs": {
      "post": {
        "operationId": "runs-sync-wavy_millpond-dvf-france",
        "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/wavy_millpond~dvf-france/run-sync": {
      "post": {
        "operationId": "run-sync-wavy_millpond-dvf-france",
        "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": {
          "mode": {
            "title": "Mode / Mode",
            "enum": [
              "demo",
              "live"
            ],
            "type": "string",
            "description": "EN: Demo: one fictional row, no network or result event; ignores filters. Live: official APIs. FR : Démo fictive sans réseau ni événement result ; ignore les filtres. Réel : API officielles.",
            "default": "demo"
          },
          "maxItems": {
            "title": "Maximum matches / Maximum de correspondances",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "EN: 1–1000 unique delivered matches, subject to PPE budget and 10000 source-row scan cap. FR : 1–1000 correspondances uniques livrées, sous réserve du budget PPE et du plafond de 10000 lignes sources examinées.",
            "default": 10
          },
          "communeCode": {
            "title": "INSEE commune code / Code INSEE de la commune",
            "pattern": "^(?:\\d{5}|2[ABab]\\d{3})?$",
            "type": "string",
            "description": "EN: Live requires communeCode OR communeName. Example: 59350 (Lille), not a postal code. Skips name resolution. 57/67/68/976 unsupported. FR : En réel, code OU nom obligatoire ; code INSEE, pas postal. Évite la résolution du nom. 57/67/68/976 non couverts.",
            "default": ""
          },
          "year": {
            "title": "Transaction year / Année de mutation",
            "minimum": 2010,
            "maximum": 2026,
            "type": "integer",
            "description": "EN: Transaction year, not publication year. Recent years incomplete; history depends on Cerema. FR : Année de transaction, pas de diffusion. Années récentes incomplètes ; historique selon Cerema.",
            "default": 2025
          },
          "communeName": {
            "title": "Commune name / Nom de commune",
            "maxLength": 200,
            "type": "string",
            "description": "EN: Optional alternative to communeCode, exact current commune name via geo.api.gouv.fr. Ambiguous names fail with INSEE choices; rerun using communeCode. FR : Alternative au code, nom actuel exact via API officielle. Homonymes refusés avec choix INSEE ; relancer avec communeCode.",
            "default": ""
          },
          "minPrice": {
            "title": "Minimum total price / Prix total minimum",
            "minimum": 0,
            "type": "number",
            "description": "EN: Optional inclusive mutation-total bound (EUR); missing source values excluded, zero retained; min ≤ max. Omit to disable. FR : Borne inclusive facultative du total de mutation (EUR) ; valeurs absentes exclues, zéro conservé ; min ≤ max. Omettre pour désactiver."
          },
          "maxPrice": {
            "title": "Maximum total price / Prix total maximum",
            "minimum": 0,
            "type": "number",
            "description": "EN: Optional inclusive mutation-total bound (EUR); missing source values excluded, zero retained; min ≤ max. Omit to disable. FR : Borne inclusive facultative du total de mutation (EUR) ; valeurs absentes exclues, zéro conservé ; min ≤ max. Omettre pour désactiver."
          },
          "minBuiltArea": {
            "title": "Minimum total built area / Surface bâtie totale minimum",
            "minimum": 0,
            "type": "number",
            "description": "EN: Optional inclusive mutation-total bound (m²); missing source values excluded, zero retained; min ≤ max. Omit to disable. FR : Borne inclusive facultative du total de mutation (m²) ; valeurs absentes exclues, zéro conservé ; min ≤ max. Omettre pour désactiver."
          },
          "maxBuiltArea": {
            "title": "Maximum total built area / Surface bâtie totale maximum",
            "minimum": 0,
            "type": "number",
            "description": "EN: Optional inclusive mutation-total bound (m²); missing source values excluded, zero retained; min ≤ max. Omit to disable. FR : Borne inclusive facultative du total de mutation (m²) ; valeurs absentes exclues, zéro conservé ; min ≤ max. Omettre pour désactiver."
          },
          "propertyTypes": {
            "title": "Property types / Types de bien",
            "maxItems": 8,
            "uniqueItems": true,
            "type": "array",
            "description": "EN: Optional OR-list of exact verified DVF+ codes, no prefix match. Empty = all, including other source types. TAB is fiscal, not planning permission. FR : Liste OU de codes DVF+ exacts vérifiés, sans préfixe. Vide = tous, y compris les autres types. TAB fiscal, sans garantie de constructibilité.",
            "items": {
              "type": "string",
              "enum": [
                "111",
                "112",
                "121",
                "131",
                "14",
                "151",
                "21",
                "2313"
              ],
              "enumTitles": [
                "111 — UNE MAISON / One house",
                "112 — DES MAISONS / Several houses",
                "121 — UN APPARTEMENT / One apartment",
                "131 — UNE DEPENDANCE / One outbuilding",
                "14 — ACTIVITE / Business property",
                "151 — BATI MIXTE - LOGEMENTS / Mixed residential building",
                "21 — TERRAIN DE TYPE TAB / Tax-classified building land",
                "2313 — TERRAIN DE TYPE TERRE ET PRE / Arable land and meadow"
              ]
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}