{
  "openapi": "3.0.1",
  "info": {
    "title": "France Property Address Finder",
    "description": "Find the exact address and floor of French property listings (any portal or scraper, or a Bien'ici search), with a confidence score, the recorded sales at that address (DVF) and the owner company (SIREN). Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "5hxpndPph23UMBhFO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nice_dev~france-property-address-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nice_dev-france-property-address-finder",
        "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/nice_dev~france-property-address-finder/runs": {
      "post": {
        "operationId": "runs-sync-nice_dev-france-property-address-finder",
        "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/nice_dev~france-property-address-finder/run-sync": {
      "post": {
        "operationId": "run-sync-nice_dev-france-property-address-finder",
        "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": {
          "location": {
            "title": "City or postal code (Bien'ici search)",
            "maxLength": 200,
            "type": "string",
            "description": "Search the for-sale (or for-rent) listings of this place on Bien'ici and resolve the address of each one, e.g. `Paris 16e`, `Lyon`, `33000`. A name several communes share (`Saint-Denis`): the one Bien'ici lists first, the log names the others — type a postal code (`93200`) to pick. Empty = no search: only the listings you paste below are resolved."
          },
          "locations": {
            "title": "More cities or postal codes",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Several places in one run, one Bien'ici search each (max 100). Added to **City or postal code**; a listing found by several searches is saved once. A search reads 2 500 listings at most: split a big city into districts (`Paris 15e`, `Paris 16e`…).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "listings": {
            "title": "Your listings (JSON)",
            "maxItems": 10000,
            "type": "array",
            "description": "Listings you already have, from any portal or scraper, one object each. Useful keys (English, French and common scraper names are all read): `postalCode` or `inseeCode`, `surface` (m²), `energyValue` (kWh/m²/year shown on the ad) and `ghgValue` (kg CO2/m²/year), `energyClass`, `ghgClass`, `dpeDate`, `propertyType` (`apartment` / `house`), `floor`, `rooms`, `price`, `latitude` + `longitude` + `radiusMeters` (the blurred map area of the ad), `id`, `url`, `title`. The more of them, the better the match: energy values + DPE date find the address alone. Max 10 000.",
            "default": []
          },
          "datasetId": {
            "title": "Dataset of another Actor",
            "maxLength": 64,
            "type": "string",
            "description": "An Apify dataset of your account holding French listings (e.g. the result of a SeLoger, Leboncoin or PAP scraper run): pick it in the list, or give its ID. Each item is read like **Your listings** (same key names and aliases). The Actor gets read access to this dataset only."
          },
          "listingUrls": {
            "title": "Bien'ici listing URLs",
            "maxItems": 1000,
            "uniqueItems": true,
            "type": "array",
            "description": "Single Bien'ici listing pages (e.g. `https://www.bienici.com/annonce/ag755440-551392616`): the listing is read, then its address is resolved. Max 1 000.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of listings to save for the whole run (after deduplication and filters). 0 = no limit.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max listings per search",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for EACH Bien'ici search (each city or postal code), so that the first one cannot use up the whole **Max listings** budget. 0 = no per-search cap.",
            "default": 0
          },
          "transactionType": {
            "title": "For sale or for rent",
            "enum": [
              "buy",
              "rent"
            ],
            "type": "string",
            "description": "Which Bien'ici listings a search returns.",
            "default": "buy"
          },
          "propertyTypes": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Apartments, houses or both (Bien'ici search).",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house"
              ],
              "enumTitles": [
                "Apartment",
                "House"
              ]
            },
            "default": [
              "apartment",
              "house"
            ]
          },
          "minPrice": {
            "title": "Min price (€)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Bien'ici search: listings at this price or above."
          },
          "maxPrice": {
            "title": "Max price (€)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Bien'ici search: listings at this price or below."
          },
          "minSurface": {
            "title": "Min surface (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Bien'ici search: living area at least this many m²."
          },
          "maxSurface": {
            "title": "Max surface (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Bien'ici search: living area at most this many m²."
          },
          "minRooms": {
            "title": "Min rooms",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Bien'ici search: at least this many rooms."
          },
          "maxRooms": {
            "title": "Max rooms",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Bien'ici search: at most this many rooms."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Bien'ici search: at least this many bedrooms."
          },
          "energyClasses": {
            "title": "Energy classes (DPE)",
            "uniqueItems": true,
            "type": "array",
            "description": "Bien'ici search: only listings with one of these energy classes (e.g. `F` and `G` for the homes that can no longer be let). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G"
              ],
              "enumTitles": [
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G"
              ]
            },
            "default": []
          },
          "sortBy": {
            "title": "Sort Bien'ici results by",
            "enum": [
              "newest",
              "oldest",
              "cheapest",
              "mostExpensive"
            ],
            "type": "string",
            "description": "Order in which a Bien'ici search is read (it matters with Max listings): newest first, oldest first (the listings longest on the market), cheapest or most expensive first.",
            "default": "newest"
          },
          "includeSales": {
            "title": "Recorded sales at the address (DVF)",
            "type": "boolean",
            "description": "Every sale recorded since 2021 at the address found (date, price, type, surface, rooms, lots), the last sale, and the sale that looks like this very flat or house (same type, surface within 10 %). Official DVF open data, no names.",
            "default": true
          },
          "includeMarketBenchmark": {
            "title": "Price vs the local market (DVF)",
            "type": "boolean",
            "description": "Compare the listing's price per m² with the median price per m² of the same kind of home (flat or house) sold in its commune since 2021 — official DVF sales, plain sales of one home only: the median, how many sales it comes from, the gap in %, and a deal flag (`underpriced` / `market` / `overpriced`, ± 10 %). For sale listings of a flat or a house with a price and a surface (not a life annuity: its price is the down payment), once the address is found, in a commune with at least 10 such sales. Paid option, off by default: event `market-benchmark`, charged only when the benchmark is found.",
            "default": false
          },
          "includeOwnerCompany": {
            "title": "Owner company",
            "type": "boolean",
            "description": "When the property at that address belongs to a company (SCI, landlord, investor, public body), its name, SIREN, legal form and right (owner, usufruct…), with the floor of each unit it owns. From the DGFiP file of properties owned by legal entities; private owners are never named (not in the file).",
            "default": true
          },
          "includeCompanyDetails": {
            "title": "Owner company details (SIRENE)",
            "type": "boolean",
            "description": "For each owner company: status (active / closed), activity code, creation date, head-office address and SIRET, and its directors (name and role) from the official company register (recherche-entreprises.api.gouv.fr). One extra request per owner company; a syndic or manager is listed without a record.",
            "default": false
          },
          "maxCandidates": {
            "title": "Candidate addresses kept",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many ranked candidate addresses each listing lists in `candidates` (the best one fills the address fields).",
            "default": 3
          },
          "minConfidence": {
            "title": "Min confidence for the address",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Below this score (0 to 1), the address fields stay empty and only `candidates` are listed. Measured on 279 real listings of Paris, Lyon and Bordeaux: at 0.6 the address found was right 99 % of the time with the listing's map area (52 % of listings found), 91 % without it (38 % found).",
            "default": 0.6
          },
          "onlyResolved": {
            "title": "Only listings with an address",
            "type": "boolean",
            "description": "Do not save the listings whose address was not found at **Min confidence**. Each one dropped costs the price of an address check (`detail-filter-check`) instead of a saved listing.",
            "default": false
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Only listings published on or after this date: `2026-09-01`, or a period before now such as `7 days`, `2 weeks`, `1 month`. Reads the Bien'ici publication date, or `publishedAt` of your listings; listings without it are dropped."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Only listings published on or before this date (the whole day is included), or older than a period such as `30 days`."
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Drop the listings whose title or description contains one of these WHOLE words (case and accents ignored): `art` drops \"Art deco\" but keeps \"Smart watch\". Several words in one entry (`hand made`) must appear together, in that order. Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese words are found anywhere in the text (no spaces there).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeIds": {
            "title": "Exclude listings (IDs or URLs)",
            "maxItems": 10000,
            "uniqueItems": true,
            "type": "array",
            "description": "Listing IDs or URLs you already have (e.g. the `id` values of a previous run): they are skipped, not saved and not charged. A stateless alternative to **Only new listings**. Max 10 000.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Skip the listings that a previous run (same **Memory key**) already delivered: they are not saved and not charged. First run = everything is new.",
            "default": false
          },
          "stateKey": {
            "title": "Memory key",
            "pattern": "^[a-zA-Z0-9_-]{1,64}$",
            "maxLength": 64,
            "type": "string",
            "description": "Name of the memory used by **Only new listings**. Give each schedule / task its own key (e.g. `paris-16-sales`) so that they do not share their memory. Letters, digits, `-` and `_`.",
            "default": "default"
          },
          "resetState": {
            "title": "Reset the memory",
            "type": "boolean",
            "description": "Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every listing again. Untick it afterwards.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: every source is open data or an open listing API. Apify Proxy or your own proxies work too. The residential Apify proxy is not available in this Actor.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of requests processed in parallel.",
            "default": 4
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 10,
            "maximum": 2000,
            "type": "integer",
            "description": "Most requests in any 60 seconds, all of them counted (Bien'ici pages, energy-certificate lookups). A budget, not an even pace. Lower it if the log shows HTTP 429.",
            "default": 240
          },
          "minRequestIntervalMs": {
            "title": "Min delay between requests",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Smallest gap between two requests, in milliseconds. 0 = no gap.",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries per request before it is marked as failed. Behind a proxy, a request turned away is also retried on a new proxy session up to 10 times without using up these retries.",
            "default": 5
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Include debug messages in the run log (the points behind each match).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}