{
  "openapi": "3.0.1",
  "info": {
    "title": "DVF France - Transactions Immobilières API",
    "description": "Recherchez et analysez les transactions immobilières françaises (DVF) depuis 2014. 15+ filtres : département, commune, GPS, prix, surface, Carrez, type, pièces, lots. Analytics incluses : prix médian/m², évolution, répartition. Données officielles data.gouv.fr. Export JSON/CSV/Excel.",
    "version": "1.1",
    "x-build-id": "XRh5Vmqz6G4bOiZI0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dltik~dvf-france-transactions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dltik-dvf-france-transactions",
        "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/dltik~dvf-france-transactions/runs": {
      "post": {
        "operationId": "runs-sync-dltik-dvf-france-transactions",
        "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/dltik~dvf-france-transactions/run-sync": {
      "post": {
        "operationId": "run-sync-dltik-dvf-france-transactions",
        "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",
        "required": [
          "departement"
        ],
        "properties": {
          "departement": {
            "title": "Département",
            "type": "string",
            "description": "Code département (ex: 75, 92, 33, 2A). Obligatoire."
          },
          "codeInsee": {
            "title": "Code INSEE commune",
            "type": "string",
            "description": "Code INSEE de la commune (ex: 92012 pour Boulogne-Billancourt). Si vide, tout le département."
          },
          "codePostal": {
            "title": "Code postal",
            "type": "string",
            "description": "Code postal (ex: 75001, 92100). Alternative au code INSEE."
          },
          "rue": {
            "title": "Nom de rue",
            "type": "string",
            "description": "Recherche partielle dans le nom de voie (ex: 'RIVOLI', 'VICTOR HUGO'). Insensible à la casse."
          },
          "latitude": {
            "title": "Latitude (recherche géo)",
            "type": "number",
            "description": "Latitude du point central pour recherche par rayon (41-51.5 pour France métro)."
          },
          "longitude": {
            "title": "Longitude (recherche géo)",
            "type": "number",
            "description": "Longitude du point central pour recherche par rayon (-5.5 à 10 pour France métro)."
          },
          "rayonKm": {
            "title": "Rayon (km)",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "Rayon de recherche en kilomètres autour du point lat/lon.",
            "default": 2
          },
          "typeBien": {
            "title": "Type de bien",
            "enum": [
              "tous",
              "appartement",
              "maison",
              "terrain",
              "local",
              "dependance"
            ],
            "type": "string",
            "description": "Filtrer par type de bien.",
            "default": "tous"
          },
          "natureCulture": {
            "title": "Nature de culture",
            "type": "string",
            "description": "Filtrer par nature de culture du terrain (ex: 'vignes', 'terres', 'bois', 'jardins'). Recherche partielle."
          },
          "prixMin": {
            "title": "Prix minimum (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Prix minimum de la transaction."
          },
          "prixMax": {
            "title": "Prix maximum (€)",
            "type": "integer",
            "description": "Prix maximum de la transaction."
          },
          "surfaceMin": {
            "title": "Surface bâtie min (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Surface habitable minimum."
          },
          "surfaceMax": {
            "title": "Surface bâtie max (m²)",
            "type": "integer",
            "description": "Surface habitable maximum."
          },
          "surfaceTerrainMin": {
            "title": "Surface terrain min (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Surface de terrain minimum."
          },
          "surfaceTerrainMax": {
            "title": "Surface terrain max (m²)",
            "type": "integer",
            "description": "Surface de terrain maximum."
          },
          "surfaceCarrezMin": {
            "title": "Surface Carrez min (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Surface loi Carrez minimum (copropriété)."
          },
          "surfaceCarrezMax": {
            "title": "Surface Carrez max (m²)",
            "type": "number",
            "description": "Surface loi Carrez maximum (copropriété)."
          },
          "dateDebut": {
            "title": "Date début",
            "type": "string",
            "description": "Date début (format: YYYY-MM-DD). Par défaut: 1 an en arrière."
          },
          "dateFin": {
            "title": "Date fin",
            "type": "string",
            "description": "Date fin (format: YYYY-MM-DD). Par défaut: aujourd'hui."
          },
          "nbPiecesMin": {
            "title": "Nombre de pièces min",
            "minimum": 1,
            "type": "integer",
            "description": "Nombre minimum de pièces principales."
          },
          "nbPiecesMax": {
            "title": "Nombre de pièces max",
            "minimum": 1,
            "type": "integer",
            "description": "Nombre maximum de pièces principales."
          },
          "nbLotsMin": {
            "title": "Nombre de lots min",
            "minimum": 1,
            "type": "integer",
            "description": "Nombre minimum de lots dans la mutation (1 = vente simple, >1 = multi-lots)."
          },
          "nbLotsMax": {
            "title": "Nombre de lots max",
            "minimum": 1,
            "type": "integer",
            "description": "Nombre maximum de lots."
          },
          "sortBy": {
            "title": "Trier par",
            "enum": [
              "date_desc",
              "date_asc",
              "prix_desc",
              "prix_asc",
              "surface_desc",
              "distance"
            ],
            "type": "string",
            "description": "Critère de tri des résultats.",
            "default": "date_desc"
          },
          "maxResults": {
            "title": "Nombre max de résultats",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Limite le nombre de transactions retournées.",
            "default": 100
          },
          "includeAnalytics": {
            "title": "Inclure les analytics",
            "type": "boolean",
            "description": "Ajoute prix médian/m², évolution, répartition par commune et type au dataset.",
            "default": true
          },
          "annees": {
            "title": "Années à couvrir",
            "type": "array",
            "description": "Liste des années à inclure (ex: [2023, 2024, 2025]). Par défaut: déterminé par les dates.",
            "items": {
              "type": "integer"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}