{
  "openapi": "3.0.1",
  "info": {
    "title": "DVF Property Sales API (Valeurs Foncières): Price/m², GPS",
    "description": "Official French property sales (DVF / valeurs foncières) by commune, postal code or department: date, price, surface, rooms, price per m², GPS, median €/m² per commune. No login. MCP-ready for Claude, Cursor, ChatGPT and AI agents. Pay per result, empty results free. $0.50 per 1,000 sales.",
    "version": "0.1",
    "x-build-id": "ZJ7zRV27U94J1jCqg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actose~dvf-property-sales/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actose-dvf-property-sales",
        "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/actose~dvf-property-sales/runs": {
      "post": {
        "operationId": "runs-sync-actose-dvf-property-sales",
        "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/actose~dvf-property-sales/run-sync": {
      "post": {
        "operationId": "run-sync-actose-dvf-property-sales",
        "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": "Communes (cities)",
            "type": "array",
            "description": "City names or INSEE codes, e.g. \"Toulouse\", \"Saint-Étienne\", \"31555\". For homonyms add the department: \"Saint-Denis (93)\". Paris, Lyon and Marseille include all their arrondissements.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "5-digit French postal codes, e.g. \"31000\", \"75011\". Only sales whose address has this postal code are returned.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department codes (\"31\", \"2A\", \"971\") or names (\"Gironde\"). Returns every sale of the department - combine with filters and Max results.",
            "items": {
              "type": "string"
            }
          },
          "years": {
            "title": "Years",
            "type": "array",
            "description": "Years of sale, e.g. [\"2024\", \"2025\"]. DVF covers the last 5 years (currently 2021-2025). Empty = latest available year.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Sold on or after (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional. Only sales dated on or after this day. If Years is empty, the matching years are read automatically."
          },
          "dateTo": {
            "title": "Sold on or before (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional. Only sales dated on or before this day."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Keep only these property types. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "commercial",
                "outbuilding",
                "land"
              ],
              "enumTitles": [
                "Apartment (Appartement)",
                "House (Maison)",
                "Commercial / industrial premises (Local)",
                "Outbuilding only: parking, cellar (Dépendance)",
                "Land only (Terrain)"
              ]
            }
          },
          "saleTypes": {
            "title": "Transaction types",
            "type": "array",
            "description": "Default: standard sales, off-plan sales (VEFA), auctions and building land. Exchanges and expropriations are excluded unless selected.",
            "items": {
              "type": "string",
              "enum": [
                "sale",
                "offPlan",
                "auction",
                "buildingLand",
                "exchange",
                "expropriation"
              ],
              "enumTitles": [
                "Sale (Vente)",
                "Off-plan sale (VEFA)",
                "Auction (Adjudication)",
                "Building land (Vente terrain à bâtir)",
                "Exchange (Echange)",
                "Expropriation"
              ]
            },
            "default": [
              "sale",
              "offPlan",
              "auction",
              "buildingLand"
            ]
          },
          "minPrice": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only sales at or above this price."
          },
          "maxPrice": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only sales at or below this price."
          },
          "minSurface": {
            "title": "Minimum surface (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Built surface (land surface for land-only sales)."
          },
          "maxSurface": {
            "title": "Maximum surface (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Built surface (land surface for land-only sales)."
          },
          "minRooms": {
            "title": "Minimum rooms",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of main rooms (pièces principales)."
          },
          "maxRooms": {
            "title": "Maximum rooms",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of main rooms."
          },
          "minPricePerSqm": {
            "title": "Minimum price per m² (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Useful to drop symbolic or family transfers (e.g. 500)."
          },
          "maxPricePerSqm": {
            "title": "Maximum price per m² (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Useful to drop outliers."
          },
          "excludeMultiUnitSales": {
            "title": "Exclude multi-unit sales",
            "type": "boolean",
            "description": "Drop sales covering several apartments/houses at once (whole buildings, portfolios), whose price per m² is less comparable.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of sales to return (newest first). 0 = no limit. You only pay for sales delivered.",
            "default": 1000
          },
          "includeStatistics": {
            "title": "Price statistics per commune",
            "type": "boolean",
            "description": "Also save median / quartile price per m², median price and surface per commune and property type (computed on the delivered sales) to the key-value store record STATISTICS. Free.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new sales (for scheduled runs)",
            "type": "boolean",
            "description": "Skip sales already delivered by a previous run with the same area and types. DVF is refreshed twice a year (April and October).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}