{
  "openapi": "3.0.1",
  "info": {
    "title": "Spitogatos.gr Scraper: Greek Real Estate Listings",
    "description": "Scrape Spitogatos.gr, Greece's largest property marketplace. Sale & rent listings across all of Greece: price, price/m², area, rooms, floor, build year, GPS, energy class, agent/owner name & phone, photos. Filter by area, transaction, type, price, surface. $5/1K listings.",
    "version": "1.0",
    "x-build-id": "pMRJGbLkZdv9kU6fh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dltik~spitogatos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dltik-spitogatos-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/dltik~spitogatos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dltik-spitogatos-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/dltik~spitogatos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dltik-spitogatos-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": "Start URLs (search or listing pages)",
            "type": "array",
            "description": "Paste one or more Spitogatos.gr search-result URLs (e.g. https://www.spitogatos.gr/en/for_sale-homes/athens-center) or single property URLs. This is the most reliable way to target exactly what you see in the browser — build the search on the site, copy the URL, paste it here. When set, the structured filters below are ignored. Leave empty to use the filters instead.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "transaction": {
            "title": "Transaction",
            "enum": [
              "buy",
              "rent"
            ],
            "type": "string",
            "description": "buy = for sale (πωλήσεις), rent = for rent (ενοικιάσεις). Used only when Start URLs is empty.",
            "default": "buy"
          },
          "propertyType": {
            "title": "Property category",
            "enum": [
              "homes",
              "commercial",
              "land",
              "parking"
            ],
            "type": "string",
            "description": "Which kind of property to search. Used only when Start URLs is empty.",
            "default": "homes"
          },
          "locationQuery": {
            "title": "Location(s)",
            "type": "array",
            "description": "Area / city / neighborhood names as they appear on Spitogatos (e.g. ['Athens - Center','Thessaloniki','Glyfada']). Each name is resolved to Spitogatos' internal area ID and searched. Used only when Start URLs is empty. Tip: if a name doesn't resolve, paste the search URL into Start URLs instead, or use Area IDs below.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "areaIDs": {
            "title": "Area IDs (advanced — overrides Location)",
            "type": "array",
            "description": "Spitogatos internal geography IDs (integers), e.g. [100, 104]. Skips name resolution — use this when you already know the IDs (from the site's network calls) for an exact match. Used only when Start URLs is empty.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "priceMin": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum listing price in euros."
          },
          "priceMax": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listing price in euros."
          },
          "areaMin": {
            "title": "Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum living area in m²."
          },
          "areaMax": {
            "title": "Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum living area in m²."
          },
          "roomsMin": {
            "title": "Min rooms/bedrooms",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of rooms (bedrooms)."
          },
          "fetchDetails": {
            "title": "Fetch full detail per listing",
            "type": "boolean",
            "description": "Open each listing's detail page to collect the full description, all photos, agent phone, GPS and amenities. This adds one extra request per listing (slower + more bandwidth) — leave off if the search-page fields are enough.",
            "default": false
          },
          "analyzeListings": {
            "title": "AI analysis (premium)",
            "type": "boolean",
            "description": "Have an AI read each listing and add an 'ai' object: English summary + highlights (the Greek description translated/condensed), condition, view, furnished, and Airbnb potential. With an Investor profile below it also scores each listing (deal_score, estimated yield, buy/watch/skip). Paid Apify plan only — charged as a separate per-listing event ON TOP of listing-scraped. Tip: enable Fetch full detail too, so the AI has the full description to work from.",
            "default": false
          },
          "investorProfile": {
            "title": "Investor profile (optional — unlocks AI scoring)",
            "type": "string",
            "description": "Free text describing your goal so the AI can score & rank listings, e.g. 'Golden-visa buyer, budget 300k, wants Airbnb income in central Athens' or 'Long-term rental, 8%+ gross yield, Thessaloniki'. Leave empty for translation/summary only."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many listings (across all locations / start URLs combined). Each listing is charged at the per-event price — start small (e.g. 20) to validate the output before scaling up. Aliases accepted: 'limit', 'max', 'maxResultsPerSource'.",
            "default": 50
          },
          "customProxyUrl": {
            "title": "Custom proxy URL (optional — overrides Apify proxy)",
            "type": "string",
            "description": "Optional external residential/mobile proxy URL (http://user:pass@host:port). Overrides the Apify proxy. Spitogatos is protected by Imperva bot management — a clean residential IP (ideally Greek/EU) is required to pass. Sticky-session providers (a session-<token> in the credentials) are auto-rotated on a block. Example: http://user:pass_country-GR_session-abc_lifetime-1440@proxies.example.com:1000"
          },
          "proxyConfig": {
            "title": "Proxy (Residential strongly recommended)",
            "type": "object",
            "description": "Apify proxy. Spitogatos.gr is behind Imperva bot protection, so RESIDENTIAL (ideally apifyProxyCountry='GR') is required to get real data — datacenter IPs get the 'Pardon Our Interruption' block. Ignored when customProxyUrl is set.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}