{
  "openapi": "3.0.1",
  "info": {
    "title": "SeLoger 🇫🇷 [$0.9💰] All-in-One — Search · Detail · Agencies",
    "description": "🔥 $0.9/1K · SeLoger.com all-in-one scraper français — search URLs + property URLs + agency profiles in ONE actor. Auto-classifies 3 URL kinds. Extracts price · fees · mortgage · m² · DPE/GES · lat-lng · 5+ agency fields. Apify Residential FR mandatory. JSON + CSV. No browser",
    "version": "0.0",
    "x-build-id": "VYhntVIdWmBULdeOE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~seloger-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-seloger-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/memo23~seloger-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-seloger-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/memo23~seloger-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-seloger-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": {
          "startUrls": {
            "title": "SeLoger.com URLs",
            "type": "array",
            "description": "Accepted URL shapes:\n• SEO listing — `/immobilier/{transaction}/immo-{city-dept}/` (e.g. `/immobilier/achat/immo-paris-75/`). Paginates via `?LISTING-LISTpg=N`.\n• Filter search — `/classified-search?classifiedBusiness=…&distributionTypes=…&locations=…&priceMin=…&priceMax=…&order=DateDesc`. The new SeLoger search shape with full filter support. Paginates via `?page=N`.\n• Property detail — `/annonces/{type}/{slug}/{city-dept}[/{neighborhood}]/{id}.htm`.\n• Agency profile — `/professionnels-immobilier/{opaque-id}`. Emits one agency row + every property the agency has listed.\n\nThe older `/list.htm?projects=…` query-style URL is WAF-blocked and rejected.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (city names or place IDs)",
            "uniqueItems": true,
            "type": "array",
            "description": "Either a city name (e.g. `Paris`, `Lyon`, `Marseille`, `Nice`, `Bordeaux`, `Toulouse`, `Cagnes-sur-Mer` — ~40 known) **or** a raw SeLoger place ID (e.g. `AD08FR31096`). Unknown cities are skipped with a warning. Multiple locations search the union.",
            "items": {
              "type": "string"
            }
          },
          "distributionType": {
            "title": "Transaction type",
            "enum": [
              "Buy",
              "Rent",
              "Buy_Auction"
            ],
            "type": "string",
            "description": "Buy = achat, Rent = location, Buy_Auction = vente aux enchères.",
            "default": "Buy"
          },
          "estateTypes": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by property type. Leave empty for both Apartment + House.",
            "items": {
              "type": "string",
              "enum": [
                "Apartment",
                "House",
                "House_Or_Apartment"
              ]
            }
          },
          "priceMin": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Lower price bound in euros. Leave empty for no lower bound."
          },
          "priceMax": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper price bound in euros. Leave empty for no upper bound."
          },
          "roomsMin": {
            "title": "Min rooms (pièces)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of rooms (pièces). 1 = studio, 2 = 1-bed, 3 = 2-bed, etc."
          },
          "splitByPrice": {
            "title": "🚀 Split by price bands (break SeLoger's ~370-result cap)",
            "type": "boolean",
            "description": "SeLoger caps every `/classified-search?` URL at ~20 pages × ~20 = **~370 properties**. Enable splitting to run 5 narrower searches in one go — each gets its own page-20 budget, multiplying total yield to **~1,850 properties**. Cost scales ~5× because each band is a separate set of fetches.\n\nDefault bands (log-distributed for the FR market): [0–200K], [200K–400K], [400K–700K], [700K–1.2M], [1.2M+]. If you supplied `priceMin`/`priceMax` above, the user range is split into 5 equal bands instead.",
            "default": false
          },
          "enrichAgency": {
            "title": "Fetch agency profile per property",
            "type": "boolean",
            "description": "When enabled, each unique agency profile (`/professionnels-immobilier/{id}`) is fetched once and merged into every property row from that agency — adds `agencyAddress`, `agencyDescription`, `agencyServices`, `agencyOpeningHours`, `agencyTeamMembers`, `agencyLogoUrl`. Cached per agency, so a 50-property batch from one agency costs one extra fetch.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum items to scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on the number of property rows emitted. Agency-only rows do not count toward this cap.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of property pages processed in parallel.",
            "default": 10
          },
          "minConcurrency": {
            "title": "Min concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of pages processed in parallel.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "type": "integer",
            "description": "Number of retries before a failed request is given up. The 3-stack race (impit Chrome + gotScraping + impers libcurl) kicks in after the first 3 impit-only attempts.",
            "default": 5
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "SeLoger geo-fences non-FR IPs hard — leave the default to use Apify Residential FR. Override at your own risk; UK/DE/US residential proxies return 403/empty bodies in our recon.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "FR"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}