{
  "openapi": "3.0.1",
  "info": {
    "title": "PAP Immobilier Scraper - Téléphones & DPE",
    "description": "Extrayez les annonces immobilières PAP avec téléphones, DPE, GES, coordonnées, transports proches, photos et informations détaillées. Recherche par ville, code postal, France ou référence PAP.",
    "version": "0.0",
    "x-build-id": "k8IbV071JzLNY8sfH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clearpath~pap-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clearpath-pap-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/clearpath~pap-scraper/runs": {
      "post": {
        "operationId": "runs-sync-clearpath-pap-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/clearpath~pap-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-clearpath-pap-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": {
          "product": {
            "title": "Listing mode",
            "enum": [
              "vente",
              "location",
              "vacances"
            ],
            "type": "string",
            "description": "Choose the listing mode to search.",
            "default": "vente"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of listings to return. Current supported cap is 1000 per run.",
            "default": 100
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Enter one or more French locations such as France, Paris (75), Strasbourg (67), Paris 5e, or 75005.",
            "items": {
              "type": "string"
            }
          },
          "reference": {
            "title": "Exact PAP reference",
            "type": "string",
            "description": "Optional exact PAP reference like G26/2186. Keep the slash and original casing. If set, the actor can search without locations."
          },
          "newOnly": {
            "title": "Only new properties",
            "type": "boolean",
            "description": "Vente only. Limit results to new-build properties.",
            "default": false
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Optional property types. You can pick multiple options. Some choices only make sense for certain listing modes.",
            "items": {
              "type": "string",
              "enum": [
                "maison",
                "appartement",
                "terrain",
                "garage-parking",
                "immeuble",
                "surface-a-amenager",
                "peniche",
                "mobil-home",
                "viager",
                "multipropriete",
                "residence-avec-service",
                "bureaux",
                "local-commercial",
                "fonds-de-commerce",
                "local-d-activite",
                "divers",
                "location-accession",
                "logement-contre-services",
                "gite",
                "insolite",
                "chambre-d-hotes"
              ],
              "enumTitles": [
                "Maison",
                "Appartement",
                "Terrain",
                "Garage, parking",
                "Immeuble",
                "Surfaces diverses",
                "Péniche",
                "Chalet, mobil-home",
                "Viager",
                "Multipropriété",
                "Résidence avec services",
                "Bureaux et locaux professionnels",
                "Local commercial",
                "Fonds de commerce",
                "Local d'activité",
                "Propositions diverses",
                "Location-accession",
                "Logement contre services",
                "Gîte",
                "Location insolite",
                "Chambre d'hôtes"
              ]
            }
          },
          "tags": {
            "title": "Features",
            "type": "array",
            "description": "Optional features and advanced filters. You can pick multiple options. Some only apply to certain listing modes.",
            "items": {
              "type": "string",
              "enum": [
                "ascenseur",
                "duplex-triplex",
                "dernier-etage",
                "piscine",
                "balcon-terrasse",
                "garages-parkings",
                "acces-handicape",
                "investissement-locatif",
                "visite-virtuelle",
                "coloc",
                "cheques-vacances-acceptes",
                "wifi",
                "equipement-bebe",
                "lave-vaisselle",
                "lave-linge",
                "television",
                "garage-parking",
                "animaux-admis",
                "climatisation",
                "terrasse"
              ],
              "enumTitles": [
                "Ascenseur",
                "Duplex / loft",
                "Dernier étage",
                "Piscine",
                "Balcon, terrasse",
                "Garage, parking",
                "Personne à mobilité réduite",
                "Investissement locatif",
                "Avec visite virtuelle",
                "Colocation acceptée",
                "Chèques vacances",
                "Wi-Fi",
                "Équipement bébé",
                "Lave-vaisselle",
                "Lave-linge",
                "Télévision",
                "Garage ou parking",
                "Animaux bienvenus",
                "Climatisation",
                "Terrasse"
              ]
            }
          },
          "nbPiecesMin": {
            "title": "Minimum rooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum number of rooms."
          },
          "nbPiecesMax": {
            "title": "Maximum rooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum number of rooms."
          },
          "nbBedroomsMin": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum number of bedrooms."
          },
          "nbBedroomsMax": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum number of bedrooms."
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum price in euros."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum price in euros."
          },
          "surfaceMin": {
            "title": "Minimum surface (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum interior surface in square meters."
          },
          "surfaceMax": {
            "title": "Maximum surface (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum interior surface in square meters."
          },
          "landSurfaceMin": {
            "title": "Minimum land surface (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum land surface in square meters."
          },
          "landSurfaceMax": {
            "title": "Maximum land surface (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum land surface in square meters."
          },
          "capacity": {
            "title": "Vacation capacity",
            "minimum": 1,
            "type": "integer",
            "description": "Vacances only."
          },
          "stayStart": {
            "title": "Vacation stay start",
            "type": "string",
            "description": "Vacances only. Format YYYY-MM-DD."
          },
          "stayEnd": {
            "title": "Vacation stay end",
            "type": "string",
            "description": "Vacances only. Format YYYY-MM-DD."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}