{
  "openapi": "3.0.1",
  "info": {
    "title": "Orpi Scraper",
    "description": "Extract comprehensive data from Orpi agencies including agency information and advisor details. Scrapes all agencies from the sitemap and extracts advisor data (names, functions, phones, photos, agentIds) from HTML. Optimized for fast extraction with retry mechanism and batch processing.",
    "version": "1.0",
    "x-build-id": "o3VJd0KTUGkpxmdR7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/corent1robert~orpi-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-corent1robert-orpi-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/corent1robert~orpi-scraper/runs": {
      "post": {
        "operationId": "runs-sync-corent1robert-orpi-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/corent1robert~orpi-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-corent1robert-orpi-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": {
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of concurrent requests (default: 15). Increase for more speed, decrease to reduce server load.",
            "default": 15
          },
          "requestTimeout": {
            "title": "Request Timeout (ms)",
            "minimum": 5000,
            "maximum": 60000,
            "type": "integer",
            "description": "Maximum timeout for each request in milliseconds (default: 12000 = 12 seconds).",
            "default": 12000
          },
          "maxAgencies": {
            "title": "Max Agencies to Process",
            "minimum": 0,
            "type": "integer",
            "description": "Limit the number of agencies from the sitemap. Use **0** for **unlimited** (full France). A small number keeps runs predictable for validation and first-time users.",
            "default": 40
          },
          "filterDepartment": {
            "title": "Department Name",
            "enum": [
              "",
              "Ain",
              "Aisne",
              "Allier",
              "Alpes-de-Haute-Provence",
              "Hautes-Alpes",
              "Alpes-Maritimes",
              "Ardèche",
              "Ardennes",
              "Ariège",
              "Aube",
              "Aude",
              "Aveyron",
              "Bouches-du-Rhône",
              "Calvados",
              "Cantal",
              "Charente",
              "Charente-Maritime",
              "Cher",
              "Corrèze",
              "Corse-du-Sud",
              "Haute-Corse",
              "Côte-d'Or",
              "Côtes-d'Armor",
              "Creuse",
              "Dordogne",
              "Doubs",
              "Drôme",
              "Eure",
              "Eure-et-Loir",
              "Finistère",
              "Gard",
              "Haute-Garonne",
              "Gers",
              "Gironde",
              "Hérault",
              "Ille-et-Vilaine",
              "Indre",
              "Indre-et-Loire",
              "Isère",
              "Jura",
              "Landes",
              "Loir-et-Cher",
              "Loire",
              "Haute-Loire",
              "Loire-Atlantique",
              "Loiret",
              "Lot",
              "Lot-et-Garonne",
              "Lozère",
              "Maine-et-Loire",
              "Manche",
              "Marne",
              "Haute-Marne",
              "Mayenne",
              "Meurthe-et-Moselle",
              "Meuse",
              "Morbihan",
              "Moselle",
              "Nièvre",
              "Nord",
              "Oise",
              "Orne",
              "Pas-de-Calais",
              "Puy-de-Dôme",
              "Pyrénées-Atlantiques",
              "Hautes-Pyrénées",
              "Pyrénées-Orientales",
              "Bas-Rhin",
              "Haut-Rhin",
              "Rhône",
              "Haute-Saône",
              "Saône-et-Loire",
              "Sarthe",
              "Savoie",
              "Haute-Savoie",
              "Paris",
              "Seine-Maritime",
              "Seine-et-Marne",
              "Yvelines",
              "Deux-Sèvres",
              "Somme",
              "Tarn",
              "Tarn-et-Garonne",
              "Var",
              "Vaucluse",
              "Vendée",
              "Vienne",
              "Haute-Vienne",
              "Vosges",
              "Yonne",
              "Territoire de Belfort",
              "Essonne",
              "Hauts-de-Seine",
              "Seine-Saint-Denis",
              "Val-de-Marne",
              "Val-d'Oise",
              "Guadeloupe",
              "Martinique",
              "Guyane",
              "La Réunion",
              "Mayotte"
            ],
            "type": "string",
            "description": "Select a department to filter agencies. Leave as 'All Departments' to process all agencies.",
            "default": ""
          },
          "filterAdvisorFunction": {
            "title": "Advisor Function",
            "enum": [
              "",
              "Gérant",
              "Directeur d'agence",
              "Conseiller",
              "Conseiller en transaction",
              "Assistant en location",
              "Conseiller en location",
              "Assistant en gestion locative",
              "Président",
              "Directeur Général",
              "Copropriété/Syndic - Comptable",
              "Gestionnaire Locatif",
              "Gestionnaire de copropriétés",
              "Directeur",
              "Comptable en gestion locative",
              "Manager Syndic",
              "Directeur Syndic",
              "Manager en Gestion Locative",
              "Assistant Commercial",
              "Manager",
              "Assistant",
              "Manager en transaction",
              "Conseiller en immobilier professionel",
              "Assistant en transaction",
              "Dirigeant",
              "Manager Commercial",
              "Chargé de communication",
              "Comptable en Syndic de copropriété",
              "Responsable en Gestion Locative",
              "Assistant de direction",
              "Stagiaire",
              "Gestionnaire",
              "Responsable en location",
              "Responsable",
              "Responsable en Ressources Humaines",
              "Directeur Gestion Locative",
              "Responsable en transaction",
              "Gestionnaire Locatif éco-système",
              "Directeur adjoint",
              "Assistant copropriété",
              "Chef Comptable",
              "Assistant en immobilier professionel",
              "Responsable Commercial",
              "Comptable",
              "Responsable en gestion de Patrimoine",
              "Conseiller en immobilier neuf",
              "Responsable Comptable",
              "Responsable Syndic",
              "Community Manager",
              "Manager en location",
              "Comptable en société",
              "Copropriété/Syndic - Gestion Locative",
              "Directeur administratif et financier",
              "Directeur Commercial",
              "Manager en gestion de Patrimoine",
              "Conseiller en gestion de Patrimoine / Fiscal",
              "Copropriété/Syndic - Direction",
              "Manager en immobilier professionel",
              "Conseiller en financement",
              "Responsable en immobilier professionel",
              "Directeur en Immobilier professionnel",
              "Copropriété/Syndic",
              "Conseiller en promotion immobilière"
            ],
            "type": "string",
            "description": "Select an advisor function to filter. Leave as 'All Functions' to include all advisors.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}