{
  "openapi": "3.0.1",
  "info": {
    "title": "SeLoger France Property Scraper",
    "description": "Scrape property listings from SeLoger.com, France's leading real estate portal. Extract prices, rooms, area, location, energy class, agency info, and photos for sale and rental listings.",
    "version": "1.0",
    "x-build-id": "rJZCt3ekONlSOCS31"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~seloger-france-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-seloger-france-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/parsebird~seloger-france-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-seloger-france-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/parsebird~seloger-france-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-seloger-france-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": {
          "mode": {
            "title": "Input Mode",
            "enum": [
              "url",
              "search"
            ],
            "type": "string",
            "description": "Use existing SeLoger search URLs, or build a search from location and filters below.",
            "default": "url"
          },
          "urls": {
            "title": "Search URLs",
            "type": "array",
            "description": "SeLoger.com search URLs to scrape (classified-search or classified-map links). Only used when Input Mode is 'Search URLs'.",
            "items": {
              "type": "string"
            }
          },
          "distributionType": {
            "title": "Buy or Rent",
            "enum": [
              "Buy",
              "Rent"
            ],
            "type": "string",
            "description": "Search for listings to buy or to rent. Only used when Input Mode is 'Search by filters'.",
            "default": "Buy"
          },
          "estateTypes": {
            "title": "Property Types",
            "type": "array",
            "description": "Property types to include. Only used when Input Mode is 'Search by filters'.",
            "items": {
              "type": "string",
              "enum": [
                "Apartment",
                "House"
              ],
              "enumTitles": [
                "Apartment",
                "House"
              ]
            },
            "default": [
              "Apartment",
              "House"
            ]
          },
          "location": {
            "title": "Location Code",
            "type": "string",
            "description": "SeLoger location code (e.g. AD08FR31096 for Paris). Copy it from the 'locations=' parameter of a SeLoger.com search URL — see the README for a lookup guide. Only used when Input Mode is 'Search by filters'."
          },
          "priceMin": {
            "title": "Min Price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in euros. Leave at 0 for no minimum.",
            "default": 0
          },
          "priceMax": {
            "title": "Max Price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in euros. Leave at 0 for no maximum.",
            "default": 0
          },
          "spaceMin": {
            "title": "Min Living Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum living area in square meters. Leave at 0 for no minimum.",
            "default": 0
          },
          "roomsMin": {
            "title": "Min Rooms",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of rooms (pièces). Applied by the scraper after fetching results, since SeLoger does not support this as a URL filter.",
            "default": 0
          },
          "bedroomsMin": {
            "title": "Min Bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of bedrooms (chambres). Applied by the scraper after fetching results, since SeLoger does not support this as a URL filter.",
            "default": 0
          },
          "maxItems": {
            "title": "Max Listings",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to scrape in total. Set to 0 for unlimited (up to Max Pages).",
            "default": 30
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum number of search result pages to fetch per URL (about 30 listings per page).",
            "default": 20
          },
          "getDetails": {
            "title": "Fetch Full Details",
            "type": "boolean",
            "description": "Open each listing's detail page to get the full untruncated description and GPS coordinates. Slower and uses an extra charge per listing.",
            "default": false
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "SeLoger.com blocks direct datacenter traffic, so a French residential proxy is used by default. Change this only if you need a different proxy setup.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}