{
  "openapi": "3.0.1",
  "info": {
    "title": "SeLoger Scraper",
    "description": "Scrape SeLoger.com, France's leading real-estate marketplace. Search apartments, houses, land and parking for sale or rent by location, place id, postcode, radius or URL; pull full listing details with agency contacts, find similar listings, and resolve French locations to place ids.",
    "version": "1.0",
    "x-build-id": "XbuAiLsjmGU0HuHk9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one-api~seloger-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one-api-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/one-api~seloger-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one-api-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/one-api~seloger-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one-api-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": {
          "property_inputs": {
            "title": "Listing id or seloger.com URL (one per line)",
            "type": "array",
            "description": "Auto-detects each entry and calls the right endpoint:\n• A SeLoger classified id (e.g. `263KK19CF4XA`) or numeric legacy id (e.g. `270267807`) → `/details/byid`\n• A `seloger.com` listing URL → `/details/byurl`\n\nEach row is one full listing record (price, areas, rooms, energy, photos, agency contact). The listing `id` appears in the `Property ID` column of search results.",
            "items": {
              "type": "string"
            }
          },
          "include_similar": {
            "title": "Also fetch similar listings",
            "type": "boolean",
            "description": "For each Property Details input, also call `/details/similar` and add those listings as extra rows.",
            "default": false
          },
          "similar_count": {
            "title": "Similar listings per property",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many similar listings to return per property (when the toggle above is on).",
            "default": 8
          },
          "search_inputs": {
            "title": "Search query (one per line)",
            "type": "array",
            "description": "Auto-detects each entry and routes to the right `/search/*` endpoint:\n• A `seloger.com` search URL → `/search/byurl`\n• A 5-digit French postcode (e.g. `33000`) → `/search/byzip`\n• A SeLoger place id (e.g. `AD08FR13100`, get these from the Locations section) → `/search/byplaceid`\n• Anything else — a city, neighbourhood or region (e.g. `Bordeaux`, `Lyon`, `Paris 11e`) → `/search/bylocation`\n\nSet a **Radius** below to search around a place/location instead. The filters below apply to every search. Each hit returns one row per listing.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Deal type",
            "enum": [
              "For_Sale",
              "For_Rent"
            ],
            "type": "string",
            "description": "Buy (achat) or rent (location). SeLoger is a French portal — there is no public sold filter.",
            "default": "For_Sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "House or Apartment",
              "House",
              "Apartment",
              "Building",
              "Land",
              "Parking",
              "Miscellaneous"
            ],
            "type": "string",
            "description": "Which category to search. Comma-separate to combine (e.g. `House,Apartment`).",
            "default": "House or Apartment"
          },
          "priceRange": {
            "title": "Price range (€)",
            "type": "string",
            "description": "Format: `min:150000,max:500000` — either half optional. Euros. For rentals this is the monthly rent.",
            "default": ""
          },
          "rooms": {
            "title": "Rooms",
            "type": "string",
            "description": "Format: `min:3` or `min:2,max:5` — either half optional.",
            "default": ""
          },
          "bedrooms": {
            "title": "Bedrooms",
            "type": "string",
            "description": "Format: `min:2` or `min:1,max:4` — either half optional.",
            "default": ""
          },
          "areaRange": {
            "title": "Living area (m²)",
            "type": "string",
            "description": "Format: `min:50,max:120` — either half optional.",
            "default": ""
          },
          "radius": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Search within this many km of the place/location (uses `/search/byradius`). Leave 0 for an exact place search. Ignored for postcode and URL inputs.",
            "default": 0
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "Recommended",
              "Newest",
              "Price_Low_to_High",
              "Price_High_to_Low"
            ],
            "type": "string",
            "description": "How to sort search results.",
            "default": "Recommended"
          },
          "count_only": {
            "title": "Count only (no listings)",
            "type": "boolean",
            "description": "Return just the total number of matching listings per query (uses `/search/count`) instead of fetching the listings.",
            "default": false
          },
          "pages": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages to fetch for each Search query.",
            "default": 1
          },
          "resultCount": {
            "title": "Results per page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Listings requested per Search page (1–100).",
            "default": 20
          },
          "location_inputs": {
            "title": "Location text or place id (one per line)",
            "type": "array",
            "description": "Resolve French locations to SeLoger place ids you can feed back into the Search section:\n• Free text (e.g. `Bordeaux`, `Lyon`, `33000`) → `/autocomplete` (regions, departments, cities, boroughs, postcodes)\n• A place id (e.g. `AD08FR13100`) → `/places/byid` (resolve id to name, type, coordinates)\n\nEach row's `Property ID` is the place id.",
            "items": {
              "type": "string"
            }
          },
          "location_result_count": {
            "title": "Autocomplete suggestions per query",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many suggestions to return per autocomplete query.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}