{
  "openapi": "3.0.1",
  "info": {
    "title": "Pige Immo — Private Sellers: Leboncoin, PAP, SeLoger, ParuVendu",
    "description": "Private-seller (no agency) property listings in France from Leboncoin, PAP, SeLoger and ParuVendu, for real-estate agents hunting mandates: price, surface, location, photos, seller contact. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "jgyjPmA7JMdbNSPdS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nice_dev~pige-immo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nice_dev-pige-immo-scraper",
        "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~pige-immo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nice_dev-pige-immo-scraper",
        "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~pige-immo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nice_dev-pige-immo-scraper",
        "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": {
          "sources": {
            "title": "Sites",
            "uniqueItems": true,
            "type": "array",
            "description": "Sites to search. Only PRIVATE sellers are returned on every site (Leboncoin and SeLoger: their 'private seller' filter; PAP lists private sellers only; ParuVendu: its 'particulier' sections). Empty = all sites.",
            "items": {
              "type": "string",
              "enum": [
                "leboncoin",
                "pap",
                "seloger",
                "paruvendu"
              ],
              "enumTitles": [
                "Leboncoin",
                "PAP (pap.fr)",
                "SeLoger",
                "ParuVendu"
              ]
            },
            "default": [
              "leboncoin",
              "pap",
              "seloger",
              "paruvendu"
            ]
          },
          "listingType": {
            "title": "For sale or for rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Property for sale (default) or for rent.",
            "default": "sale"
          },
          "location": {
            "title": "Location",
            "maxLength": 200,
            "type": "string",
            "description": "Where to search, as you would type it in France: a city (`Lyon`, `Saint-Denis 93`), a postal code (`69003`), a department number or name (`69`, `Rhône`, `2A`) or a region (`Bretagne`, `Île-de-France`). Empty = all of France."
          },
          "locations": {
            "title": "More locations",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Several locations in one run (cities, postal codes, departments or regions): one search per site and per location (max 500 searches). Added to **Location**.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "radiusKm": {
            "title": "Radius around the city",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Also search the towns around a city, in km (Leboncoin and PAP; SeLoger and ParuVendu search the city only). 0 = the city only (PAP results outside the city are dropped). Ignored for postal codes, departments and regions.",
            "default": 0
          },
          "propertyTypes": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these types. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "land",
                "parking",
                "commercial",
                "building",
                "other"
              ],
              "enumTitles": [
                "Apartment",
                "House",
                "Land / plot",
                "Parking / garage",
                "Shop, office, business premises",
                "Whole building",
                "Other (houseboat, mobile home, life annuity…)"
              ]
            },
            "default": []
          },
          "query": {
            "title": "Keyword",
            "maxLength": 200,
            "type": "string",
            "description": "Word(s) that must appear in the listing (`jardin`, `piscine`, `viager`): Leboncoin searches them itself; PAP, SeLoger and ParuVendu listings are checked by the Actor, which reads several words in ONE entry as that exact phrase (`jardin piscine` does not find 'piscine et jardin'): for separate words, use **More keywords** (one search each). Without **Full listing details**, the word is looked for in the title and the start of the text given by the list (SeLoger and ParuVendu cut it); tick **Full listing details** to search the whole text. Ignored when Start URLs is filled."
          },
          "searchQueries": {
            "title": "More keywords",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Several keywords in one run: one search per keyword (times each site and location). Added to **Keyword**; a listing found by several searches is saved once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "maxItems": 1000,
            "type": "array",
            "description": "Search URLs copied from the sites, or listing URLs. Leboncoin search (`https://www.leboncoin.fr/recherche?category=9&...`, every filter set on the site is kept, private sellers forced), SeLoger private-seller search (`https://www.seloger.com/classified-search?distributionTypes=Buy&locations=AD08FR28808&classifiedBusiness=Private`), ParuVendu private-seller list (`https://www.paruvendu.fr/immobilier/vente/maison-particulier/?lo=69`); PAP search URLs (`https://www.pap.fr/annonce/vente-appartement-lyon-69-g43590`) keep their place, sale / rent and property type. Listing URLs: Leboncoin /ad/ventes_immobilieres/<id>, PAP ...-r<id>, SeLoger /annonce/..., ParuVendu /immobilier/.... When this list is not empty, Location and Keyword are ignored; the filters below still apply. A page number in a search link is not read: every search starts at its first page, and the same search pasted twice runs once. Max 1 000 URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Minimum price in euros (monthly rent for rentals)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Maximum price in euros (monthly rent for rentals)."
          },
          "minSurface": {
            "title": "Min living area",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Minimum living area in m²."
          },
          "maxSurface": {
            "title": "Max living area",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum living area in m²."
          },
          "minRooms": {
            "title": "Min rooms",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum number of rooms (pièces)."
          },
          "maxRooms": {
            "title": "Max rooms",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of rooms (pièces)."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum number of bedrooms."
          },
          "maxBedrooms": {
            "title": "Max bedrooms",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of bedrooms."
          },
          "minLandSurface": {
            "title": "Min land area",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Minimum land / garden area in m²."
          },
          "maxLandSurface": {
            "title": "Max land area",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Maximum land / garden area in m²."
          },
          "minPricePerSquareMeter": {
            "title": "Min price per m²",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Minimum price per m² of living area, in euros (checked by the Actor)."
          },
          "maxPricePerSquareMeter": {
            "title": "Max price per m²",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum price per m² of living area, in euros (checked by the Actor)."
          },
          "energyClasses": {
            "title": "Energy classes (DPE)",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these energy classes. Listings without a class are dropped when this list is set. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G"
              ],
              "enumTitles": [
                "A (most efficient)",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G (least efficient)"
              ]
            },
            "default": []
          },
          "furnished": {
            "title": "Furnished (rentals)",
            "enum": [
              "any",
              "furnished",
              "unfurnished"
            ],
            "type": "string",
            "description": "Rentals only: furnished, unfurnished or both (default). Listings that do not say are kept only with **Both**.",
            "default": "any"
          },
          "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 search (site × location × keyword, or start URL), so that one search cannot use up the whole **Max listings** budget. 0 = no per-search cap.",
            "default": 0
          },
          "extractDetails": {
            "title": "Full listing details",
            "type": "boolean",
            "description": "Add the full description, every photo and every attribute the site gives (energy figures, floor, heating, nearby stations…). Charged per listing delivered with its details (see Pricing).",
            "default": false
          },
          "includePhone": {
            "title": "Seller's phone number",
            "type": "boolean",
            "description": "The phone number published in the listing, when there is one (PAP, SeLoger). Leboncoin shows phone numbers to logged-in members only and ParuVendu behind a contact form: not available. Charged per listing delivered with the seller's own phone number (PAP's shared relay line is delivered, marked as the site's line, and not charged). Check `refusesAgencies` before calling.",
            "default": false
          },
          "includeSellerDetails": {
            "title": "Seller profile (Leboncoin)",
            "type": "boolean",
            "description": "Leboncoin seller profile: member since, number of listings online (several = maybe a professional), ratings, reply rate and time. Slower: one more request per seller. Charged per listing delivered with its seller profile.",
            "default": false
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Only listings first published on or after this date: `2026-09-01`, or a period before now such as `7 days`, `2 weeks`, `1 month` (through the API, `24 hours` also works). Leboncoin and SeLoger: date of FIRST publication (a renewed listing does not count as new). PAP and ParuVendu only show the date of the last update, used instead. Listings without a date are dropped."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Only listings first 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 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 title (no spaces there).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "requirePhone": {
            "title": "Only listings with a phone number",
            "type": "boolean",
            "description": "Keep only the listings that show a phone number (Leboncoin: a number exists for logged-in members; PAP, SeLoger: a number is published). ParuVendu listings are dropped (no phone shown).",
            "default": false
          },
          "requirePhotos": {
            "title": "Only listings with photos",
            "type": "boolean",
            "description": "Drop the listings without any photo.",
            "default": false
          },
          "excludeRefusesAgencies": {
            "title": "Skip sellers who refuse agencies",
            "type": "boolean",
            "description": "Drop the listings whose seller asked not to be contacted by agencies or salespeople (Leboncoin 'Pas de démarchage', PAP 'refuse le démarchage'; SeLoger and ParuVendu have no such flag: kept). Off = they are kept, with `refusesAgencies: true`.",
            "default": false
          },
          "skipDuplicates": {
            "title": "Skip cross-site duplicates",
            "type": "boolean",
            "description": "Drop a listing when the same property (same postal code, type, living area and price) was already saved from another site in this run. Off = it is kept with `duplicateOf` pointing to the first one.",
            "default": false
          },
          "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, and their page is not even opened. First run = everything is new.",
            "default": false
          },
          "priceDropAlerts": {
            "title": "Also return price drops",
            "type": "boolean",
            "description": "With **Only new listings**: a listing already delivered comes back when its price went DOWN since, with `priceDropped: true` and `previousPrice`. Charged the same as any other listing.",
            "default": true
          },
          "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-rentals`) 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": "Proxy for Leboncoin, PAP and ParuVendu: keep the default Apify proxy. SeLoger is always read through a French residential proxy that we provide, included in the price (nothing to set here).",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "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 to the site in any 60 seconds, all of them counted: results pages, listing pages and the extra page read for a listing. A budget, not an even pace: up to this many can leave at once when the minute starts (spread them with the minimum delay below). Lower it if the site answers HTTP 429 / 403 in the log.",
            "default": 60
          },
          "minRequestIntervalMs": {
            "title": "Min delay between requests",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Smallest gap between two requests, in milliseconds. Unlike the per-minute rate, this spreads the requests evenly instead of letting them go out in a burst. 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 the site turns 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.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}