{
  "openapi": "3.0.1",
  "info": {
    "title": "SeLoger Scraper: Listings, DPE, Agency Phone & Email — $0.9/1K",
    "description": "SeLoger scraper for France real estate, $0.9/1K flat. Export any search, listing or agency URL (achat & location): price, price/m², rooms, surface, DPE/GES + kWh, charges, honoraires, photos, GPS, agency phone, SIRET & website. 80+ fields, JSON/CSV/Excel. Flags price changes & removed listings.",
    "version": "0.0",
    "x-build-id": "xrPEQqHKDnNqpmnLk"
  },
  "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• Search page as SeLoger's address bar shows it — `/recherche/{transaction}/{type}/…/{place-id}` (e.g. `/recherche/achat/appartement/ile-de-france/paris-75000/ad08fr31096`), or the older `/immobilier/{transaction}/immo-{city-dept}/[bien-{type}/]` that redirects there (e.g. `/immobilier/achat/immo-paris-75/`; rentals are `/immobilier/locations/immo-paris-75/`, plural). SeLoger shows only page 1 of these, so the actor continues on the equivalent `/classified-search` search, newest first.\n• Filter search — `/classified-search?distributionTypes=…&locations=…&priceMax=…&numberOfRoomsMin=…`. Every filter in a pasted URL is kept (rooms, bedrooms, surface, energy class, furnished, …). Paginates via `?page=N`.\n• Property detail — `/annonce/{transaction}/{region}/{dept}/{city}/{id}` or `/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 no longer supported and is skipped.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (city names or place IDs)",
            "uniqueItems": true,
            "type": "array",
            "description": "Place names as you would type them in SeLoger's search box: a town (`Cergy`), an arrondissement (`Marseille 7ème`), a postcode (`13007`), a département (`Rhône`) or a region, **or** a raw SeLoger place ID (e.g. `AD08FR31096`). Names are looked up with SeLoger's own place search, and the run log shows the place each one matched. A name SeLoger does not know is skipped and named in the run's status message. 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."
          },
          "bedroomsMin": {
            "title": "Min bedrooms (chambres)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of bedrooms (chambres). Applies to filter-built searches (option B)."
          },
          "privateSellerOnly": {
            "title": "Private sellers only (de particulier)",
            "type": "boolean",
            "description": "Return only listings posted by private owners (de particulier), excluding agencies. Applies to filter-built searches (option B).",
            "default": false
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "DateDesc",
              "PriceAsc",
              "PriceDesc"
            ],
            "type": "string",
            "description": "Ordering for filter-built searches (option B). Newest first is the default.",
            "default": "DateDesc"
          },
          "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
          },
          "scrapeDetails": {
            "title": "Open each listing page for full details",
            "type": "boolean",
            "description": "On: every property row comes from the listing's own page, with all 75+ fields (notary fees, co-ownership charges, DPE kWh, full description, etc. - requires 1 request per property; each opened page bills 2 additional-data units). Off (default): builds rows directly from search result pages (30 properties per request), which runs 10x-30x faster and uses far fewer requests. Off includes: price, rooms, surface, floor, DPE letter, photos, address, transport, agency name, phone, SIRET and website. Direct property URLs (/annonce/...) always scrape full details.",
            "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
          },
          "enrichEmails": {
            "title": "Enrich with contact emails (experimental, billed per email)",
            "type": "boolean",
            "description": "If enabled, finds a contact email for each result from its own website (or by discovering it from the name). Adds contactEmail + contactWebsite columns plus a detailed emailEnrichment object. Billed per contact email found; only charged when an email is returned, never for misses.",
            "default": false
          },
          "useMobileApi": {
            "title": "Richer results with contact details",
            "type": "boolean",
            "description": "If enabled, returns a richer result set: each listing's contact email and phone directly on the row, plus price per m², rooms, surface, floor, energy rating, agency and photos. Requires at least one location to be set.",
            "default": false
          },
          "monitoringMode": {
            "title": "🔄 Monitoring mode (only new listings vs previous runs)",
            "type": "boolean",
            "description": "If checked, only listings not seen in previous runs are scraped — a daily/weekly delta feed without re-paying for the same properties. Requires a paid Apify plan.",
            "default": false
          },
          "detectPriceChanges": {
            "title": "📉 Detect price changes across runs (needs monitoring mode)",
            "type": "boolean",
            "description": "Requires \"monitoring mode\". Tracks each property's price and reports every change across runs — one row per change with oldPrice, newPrice, priceDelta, pctChange, and direction. Rows are pushed to dataset `seloger-changes-<runId>` and billed at the low `additional-data` event rate. No effect unless monitoring mode is on.",
            "default": false
          },
          "detectRemovedListings": {
            "title": "🗑️ Detect removed listings across runs (needs monitoring mode)",
            "type": "boolean",
            "description": "Requires \"monitoring mode\". Reports listings that have left the market since your previous run — one row per property to dataset `seloger-removed-<runId>`, billed at the low `additional-data` event rate. Needs a full search scan (set maxItems high enough to cover the search). No effect unless monitoring mode is on.",
            "default": false
          },
          "storeName": {
            "title": "Name your storage (deduplication & monitoring history)",
            "type": "string",
            "description": "Custom name for the Key-Value Store used for deduplication and monitoring state across runs. If left empty, your user ID is used."
          },
          "instantDatabase": {
            "title": "⚡ Instant agency database (no scraping)",
            "type": "boolean",
            "description": "Return pre-collected French real-estate agencies (name, address, phone, email, website, SIRET/RCS, socials) straight from our accumulated database instead of scraping live. Instant, no proxy. Combine with the db* filters below.",
            "default": false
          },
          "dbName": {
            "title": "DB filter — agency name contains",
            "type": "string",
            "description": "Instant-database mode only: return only agencies whose name contains this text (e.g. 'Century 21')."
          },
          "dbNetwork": {
            "title": "DB filter — network contains",
            "type": "string",
            "description": "Instant-database mode only: return only agencies in a network matching this text (e.g. 'Orpi', 'Laforêt')."
          },
          "dbHasPhone": {
            "title": "DB filter — only agencies with a phone",
            "type": "boolean",
            "description": "Instant-database mode only: return only agencies that have a phone number.",
            "default": false
          },
          "dbHasEmail": {
            "title": "DB filter — only agencies with an email",
            "type": "boolean",
            "description": "Instant-database mode only: return only agencies that have an email.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum items to scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on the number of rows saved to the dataset. Every saved row (property, agency, or instant-database) counts toward this cap and is billed as a result.",
            "default": 1000
          },
          "maxItemsPerSearch": {
            "title": "Max items per search",
            "minimum": 1,
            "type": "integer",
            "description": "Optional per-search cap: stop a single search (each URL, place, or price band) after this many rows and move on to the next one. Keeps one broad city from using up the whole run. The global **Maximum items** still caps the run total. Leave empty for no per-search limit."
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 1,
            "type": "integer",
            "description": "Optional per-search cap on result pages fetched before moving to the next search. Useful to sample the newest listings from many searches cheaply. Leave empty for no per-search page limit."
          },
          "excludeAdIds": {
            "title": "Exclude listing IDs",
            "uniqueItems": true,
            "type": "array",
            "description": "Listing IDs to skip this run — paste the `propertyId` values from an earlier run's output. A matching listing is never fetched, saved, or billed.",
            "items": {
              "type": "string"
            }
          },
          "excludeDatasetIds": {
            "title": "Exclude listing IDs from these datasets",
            "uniqueItems": true,
            "type": "array",
            "description": "Apify dataset IDs from earlier runs of this actor. Every listing ID they contain is added to the skip list automatically, so a scheduled run only returns listings it has not delivered before. Only the ID columns are read, so this adds negligible cost.",
            "items": {
              "type": "string"
            }
          },
          "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": "Retry budget for the legacy pipeline. The default pipeline retries failed pages automatically.",
            "default": 5
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Leave empty: the default works out of the box. Apify Proxy groups chosen here (RESIDENTIAL, datacenter, or no proxy) are ignored. Only your own proxy URLs replace the 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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}