{
  "openapi": "3.0.1",
  "info": {
    "title": "Green-Acres Property Scraper: Listings, Prices, Rooms & Areas",
    "description": "Scrapes Green-Acres property adverts from the France, Spain, Italy, Portugal, Greece and UAE sites into one table. Filter by property type, bedrooms, bathrooms, rooms, features, EUR price, area and town. Rows keep the published price and currency. $1.76 per 1,000 adverts.",
    "version": "0.3",
    "x-build-id": "Knxw9Edyp21iUPeXb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~green-acres-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-green-acres-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/getascraper~green-acres-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-green-acres-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/getascraper~green-acres-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-green-acres-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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Listing page URLs",
            "type": "array",
            "description": "Green-Acres listing pages to read adverts from. Use a category or region page from www.green-acres.fr, .es, .it, .pt, .gr or .ae (for example a villa or house page for one region). The country of each advert is taken from the domain you pick.",
            "default": [
              {
                "url": "https://www.green-acres.fr/maison/villas/haute-normandie"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "propertyType": {
            "title": "Property type contains",
            "type": "string",
            "description": "Keeps only adverts whose property type includes this word, such as villa, house or apartment. Leave empty to keep every property type.",
            "default": ""
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Keeps only adverts with at least this many bedrooms. Adverts that do not list a bedroom count are left out when this is set. Set to 0 to turn off.",
            "default": 0
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Keeps only adverts with at least this many bathrooms. Adverts that do not list a bathroom count are left out when this is set. Set to 0 to turn off.",
            "default": 0
          },
          "minRooms": {
            "title": "Minimum rooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Keeps only adverts with at least this many rooms in total. Adverts that do not list a room count are left out when this is set. Set to 0 to turn off.",
            "default": 0
          },
          "features": {
            "title": "Required features",
            "type": "array",
            "description": "Keywords that must each appear in the advert's feature list, such as terrace, garage or fireplace. Matching ignores capital letters. Adverts with no feature list are left out when this is set.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minPriceEur": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "maximum": 500000000,
            "type": "integer",
            "description": "Keeps only adverts priced at or above this amount in euros. Only adverts priced in EUR can be compared, so adverts priced in another currency are left out when this is set. Set to 0 to turn off.",
            "default": 0
          },
          "maxPriceEur": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "maximum": 500000000,
            "type": "integer",
            "description": "Keeps only adverts priced at or below this amount in euros. Only adverts priced in EUR can be compared, so adverts priced in another currency are left out when this is set. Set to 0 to turn off.",
            "default": 0
          },
          "minSurfaceArea": {
            "title": "Minimum living area",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Keeps only adverts whose living area is at least this number, in the unit the advert shows (usually sq ft). The number is not converted. Set to 0 to turn off.",
            "default": 0
          },
          "maxSurfaceArea": {
            "title": "Maximum living area",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Keeps only adverts whose living area is at most this number, in the unit the advert shows (usually sq ft). The number is not converted. Set to 0 to turn off.",
            "default": 0
          },
          "minLandArea": {
            "title": "Minimum plot size",
            "minimum": 0,
            "maximum": 10000000,
            "type": "number",
            "description": "Keeps only adverts whose land or plot size is at least this number, in the unit the advert shows (sq ft or acres). The number is not converted. Set to 0 to turn off.",
            "default": 0
          },
          "maxLandArea": {
            "title": "Maximum plot size",
            "minimum": 0,
            "maximum": 10000000,
            "type": "number",
            "description": "Keeps only adverts whose land or plot size is at most this number, in the unit the advert shows (sq ft or acres). The number is not converted. Set to 0 to turn off.",
            "default": 0
          },
          "areaUnit": {
            "title": "Area unit to match",
            "enum": [
              "any",
              "sq ft",
              "acres"
            ],
            "type": "string",
            "description": "Set this to sq ft or acres to keep only adverts that show their area in that unit. Choose Any unit to skip the check. This applies to the living area and plot size filters.",
            "default": "any"
          },
          "countries": {
            "title": "Countries",
            "uniqueItems": true,
            "type": "array",
            "description": "Keeps only adverts from the chosen countries. Leave empty to keep adverts from every country you read.",
            "items": {
              "type": "string",
              "enum": [
                "FR",
                "ES",
                "IT",
                "PT",
                "GR",
                "AE"
              ],
              "enumTitles": [
                "France",
                "Spain",
                "Italy",
                "Portugal",
                "Greece",
                "United Arab Emirates"
              ]
            },
            "default": []
          },
          "cityContains": {
            "title": "Town or city contains",
            "type": "string",
            "description": "Keeps only adverts whose town includes this text, such as Fecamp or Gournay. Matching ignores capital letters. Adverts that do not show a town are left out when this is set.",
            "default": ""
          },
          "maxItems": {
            "title": "Maximum adverts",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Stops the run after this many adverts that pass your filters are saved. The default keeps a run short. Raise it only when you need a larger batch.",
            "default": 20
          },
          "includeImageUrls": {
            "title": "Include photo URLs",
            "type": "boolean",
            "description": "Adds the list of gallery photo URLs to each advert. Off by default because the list makes each row much wider.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy used for every request. The default Apify datacenter proxy is enough for this site. Change it only if requests start failing.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}