{
  "openapi": "3.0.1",
  "info": {
    "title": "Pap Immobilier Scraper",
    "description": "Scrape PAP.fr real estate listings with full filters: city, transaction, property type, rooms, price, surface, tags. Returns clean JSON — price per m², photos, location, description. Works on all French cities. Proxies included.",
    "version": "1.0",
    "x-build-id": "MV8aRCEbPG7O3eEUn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leadsbrary~pap-immobilier-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leadsbrary-pap-immobilier-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/leadsbrary~pap-immobilier-scraper/runs": {
      "post": {
        "operationId": "runs-sync-leadsbrary-pap-immobilier-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/leadsbrary~pap-immobilier-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-leadsbrary-pap-immobilier-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": {
          "city": {
            "title": "City / Arrondissement",
            "type": "string",
            "description": "City name, arrondissement or postcode. Ex: 'Paris 15', '75015', 'Lyon 6', 'Marseille 8', 'Bordeaux'",
            "default": "Paris 15"
          },
          "transaction": {
            "title": "Transaction",
            "enum": [
              "vente",
              "location"
            ],
            "type": "string",
            "description": "Type of transaction.",
            "default": "vente"
          },
          "types": {
            "title": "Property Type",
            "enum": [
              "maison",
              "appartement",
              "terrain",
              "garage-parking",
              "immeuble",
              "peniche",
              "viager",
              "bureaux",
              "local-commercial",
              "fonds-de-commerce"
            ],
            "type": "string",
            "description": "Property type to search.",
            "default": "appartement"
          },
          "pieces": {
            "title": "Rooms Min (Pièces)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of rooms (pièces). Leave empty for no filter."
          },
          "chambresMin": {
            "title": "Bedrooms Min (Chambres)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Minimum number of bedrooms (chambres)."
          },
          "prixMin": {
            "title": "Price Min (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in euros."
          },
          "prixMax": {
            "title": "Price Max (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in euros."
          },
          "surfaceMin": {
            "title": "Surface Min (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum living area in square metres."
          },
          "surfaceMax": {
            "title": "Surface Max (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum living area in square metres."
          },
          "terrainMin": {
            "title": "Land Surface Min (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum land area in square metres (maison/terrain only)."
          },
          "terrainMax": {
            "title": "Land Surface Max (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum land area in square metres."
          },
          "tagPiscine": {
            "title": "Piscine",
            "type": "boolean",
            "description": "Filter: with swimming pool.",
            "default": false
          },
          "tagBalcon": {
            "title": "Balcon / Terrasse",
            "type": "boolean",
            "description": "Filter: with balcony or terrace.",
            "default": false
          },
          "tagAscenseur": {
            "title": "Ascenseur",
            "type": "boolean",
            "description": "Filter: with elevator.",
            "default": false
          },
          "tagGarage": {
            "title": "Garage / Parking",
            "type": "boolean",
            "description": "Filter: with garage or parking.",
            "default": false
          },
          "tagDernierEtage": {
            "title": "Dernier étage",
            "type": "boolean",
            "description": "Filter: top floor only.",
            "default": false
          },
          "tagVisiteVirtuelle": {
            "title": "Visite virtuelle",
            "type": "boolean",
            "description": "Filter: with virtual tour.",
            "default": false
          },
          "neufExclus": {
            "title": "Exclude New Builds",
            "type": "boolean",
            "description": "If true, exclude new construction listings.",
            "default": false
          },
          "maxAds": {
            "title": "Max Ads",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of ads to collect. PAP.fr returns ~10 ads per page.",
            "default": 100
          },
          "delay": {
            "title": "Delay Between Pages (seconds)",
            "minimum": 0.5,
            "maximum": 30,
            "type": "number",
            "description": "Pause between page requests to avoid rate limiting. Default: 1.5s",
            "default": 1.5
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for HTTP requests. Uses Apify's proxy pool by default — nothing to change for most users."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}