{
  "openapi": "3.0.1",
  "info": {
    "title": "SeLoger Scraper — France Property Data & Market KPIs",
    "description": "Scrape SeLoger into clean structured data. Extract French sale and rental property listings by location, postal code, place id, radius, or URL — with price, €/m², area, rooms, DPE energy class, geo, built-in market KPIs, and optional owner/agent contact enrichment.",
    "version": "1.0",
    "x-build-id": "sflAEnmaEn1oM4IvN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~seloger-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-seloger-property-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/sian.agency~seloger-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-seloger-property-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/sian.agency~seloger-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-seloger-property-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": {
          "listingType": {
            "title": "🏠 Listing Type",
            "enum": [
              "sale",
              "rent",
              "both"
            ],
            "type": "string",
            "description": "Which side of the market to scrape.\n\n• **sale** — for-sale listings\n• **rent** — rental listings\n• **both** — runs each query twice, once for sale and once for rent (PAID — doubles the query count)",
            "default": "sale"
          },
          "searchMode": {
            "title": "🧭 Search Mode",
            "enum": [
              "location",
              "zip",
              "placeid",
              "radius",
              "url"
            ],
            "type": "string",
            "description": "How to specify where to search.\n\n• **location** — free-text place name (e.g. Bordeaux)\n• **zip** — French postal code (5 digits)\n• **placeid** — one or more SeLoger place ids\n• **radius** — a distance (km) around a place or location\n• **url** — a seloger.com search-results URL",
            "default": "location"
          },
          "location": {
            "title": "📍 Location  (Search Mode = location or radius)",
            "type": "string",
            "description": "French place name — a city, borough, department, or region. Examples: 'Bordeaux', 'Lyon 3e', 'Paris'. Also used as the radius-mode centre when no Place ID is given.",
            "default": "Bordeaux"
          },
          "locations": {
            "title": "📋 Bulk Locations  (PAID, location mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of French place names. PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "zipCode": {
            "title": "📮 Postal Code  (Search Mode = zip)",
            "type": "string",
            "description": "French postal code (5 digits). Example: '33000' or '75001'."
          },
          "zipCodes": {
            "title": "📋 Bulk Postal Codes  (PAID, zip mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of French postal codes (5 digits). PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "placeIds": {
            "title": "🗺 Place ID(s)  (Search Mode = placeid)",
            "type": "string",
            "description": "One or more SeLoger place ids, comma-separated. Example: 'AD08FR13100'. Discover ids by name or postcode using the autocomplete on seloger.com."
          },
          "placeIdList": {
            "title": "📋 Bulk Place IDs  (PAID, placeid mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of SeLoger place id strings. PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "placeId": {
            "title": "🎯 Radius Centre Place ID  (Search Mode = radius)",
            "type": "string",
            "description": "SeLoger place id to use as the radius centre. If empty, the Location field is used as the centre instead."
          },
          "radius": {
            "title": "📏 Radius (km)  (Search Mode = radius)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Search radius in kilometres around the centre. Defaults to 10 km.",
            "default": 10
          },
          "url": {
            "title": "🔗 Search URL  (Search Mode = url)",
            "type": "string",
            "description": "A seloger.com search-results URL (starts with https://www.seloger.com/). All filters encoded in the URL are respected."
          },
          "urls": {
            "title": "📋 Bulk Search URLs  (PAID, url mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of seloger.com search-results URLs. PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "propertyType": {
            "title": "🏷 Property Type",
            "enum": [
              "House or Apartment",
              "House",
              "Apartment",
              "Building",
              "Land",
              "Parking",
              "Miscellaneous"
            ],
            "type": "string",
            "description": "Filter by property type. Leave empty for all types."
          },
          "sortOrder": {
            "title": "↕️ Sort Order",
            "enum": [
              "Recommended",
              "Newest",
              "Price_Low_to_High",
              "Price_High_to_Low"
            ],
            "type": "string",
            "description": "Ordering of the search results."
          },
          "minPrice": {
            "title": "💵 Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price. For sale this is the asking price; for rent it is the monthly rent. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "💵 Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price. Leave empty for no maximum."
          },
          "minArea": {
            "title": "📐 Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum living area in square metres. Leave empty for no minimum."
          },
          "maxArea": {
            "title": "📐 Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum living area in square metres. Leave empty for no maximum."
          },
          "minRooms": {
            "title": "🚪 Min rooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Minimum number of rooms. Leave empty for any."
          },
          "maxRooms": {
            "title": "🚪 Max rooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of rooms. Leave empty for any."
          },
          "minBedrooms": {
            "title": "🛏 Min bedrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Minimum number of bedrooms. Leave empty for any."
          },
          "maxBedrooms": {
            "title": "🛏 Max bedrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of bedrooms. Leave empty for any."
          },
          "maxResults": {
            "title": "📊 Max results per query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on listings returned per query. Auto-paginates until the cap is reached or the search is fully drained. FREE tier is always capped at 25 listings per run.",
            "default": 100
          },
          "includeDetails": {
            "title": "📇 Include full detail + contacts (PAID)",
            "type": "boolean",
            "description": "When ON, fetches the full detail record for each listing (DPE energy class + GES emissions, owner/agent name + phone, agency contacts, full characteristics, and description). Adds a ListingEnriched charge per listing. Disabled on FREE tier.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}