{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Sold House Prices Scraper (Land Registry)",
    "description": "Get UK sold house prices from HM Land Registry for any postcode, sector, street, town or district: price, date, address, type, tenure, previous sale, coordinates and today's value. Area price stats, comparable sales valuations and the monthly UK House Price Index.",
    "version": "1.0",
    "x-build-id": "cMGWWgRNROIPC7kVE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parselab~uk-house-prices-land-registry-sold-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parselab-uk-house-prices-land-registry-sold-prices-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/parselab~uk-house-prices-land-registry-sold-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parselab-uk-house-prices-land-registry-sold-prices-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/parselab~uk-house-prices-land-registry-sold-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parselab-uk-house-prices-land-registry-sold-prices-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": {
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "transactions",
              "areaStats",
              "comparables",
              "houseIndex"
            ],
            "type": "string",
            "description": "Transactions lists sold prices one sale per row. Area stats gives median, average and quartile prices per area, street, property type or year. Comparables values one property from nearby sales moved to today's prices. House index gives the monthly UK House Price Index for regions, counties and local authorities.",
            "default": "transactions"
          },
          "postcodes": {
            "title": "Postcodes, sectors or outcodes",
            "type": "array",
            "description": "Full postcodes (PL6 8RU), postcode sectors (PL6 8) or outcodes (PL6). England and Wales.",
            "items": {
              "type": "string"
            }
          },
          "towns": {
            "title": "Towns",
            "type": "array",
            "description": "Post towns as written by the Land Registry, for example MANCHESTER or LONDON.",
            "items": {
              "type": "string"
            }
          },
          "districts": {
            "title": "Local authority districts",
            "type": "array",
            "description": "For example Manchester, City of Westminster, Leeds.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "For example GREATER MANCHESTER, KENT, WEST YORKSHIRE.",
            "items": {
              "type": "string"
            }
          },
          "streets": {
            "title": "Streets",
            "type": "array",
            "description": "Street names. Add a town or district too, for example street DAISY BANK ROAD with town MANCHESTER.",
            "items": {
              "type": "string"
            }
          },
          "monthsBack": {
            "title": "Months back",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "How many months of sales to read when no start date is set.",
            "default": 24
          },
          "dateFrom": {
            "title": "Sold from",
            "type": "string",
            "description": "First sale date, YYYY-MM-DD. Data starts in January 1995."
          },
          "dateTo": {
            "title": "Sold to",
            "type": "string",
            "description": "Last sale date, YYYY-MM-DD."
          },
          "minPrice": {
            "title": "Minimum price (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip sales below this price."
          },
          "maxPrice": {
            "title": "Maximum price (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip sales above this price."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Empty means all types.",
            "items": {
              "type": "string",
              "enum": [
                "detached",
                "semi-detached",
                "terraced",
                "flat",
                "other"
              ],
              "enumTitles": [
                "Detached",
                "Semi-detached",
                "Terraced",
                "Flat or maisonette",
                "Other"
              ]
            }
          },
          "tenure": {
            "title": "Tenure",
            "enum": [
              "any",
              "freehold",
              "leasehold"
            ],
            "type": "string",
            "description": "Freehold or leasehold.",
            "default": "any"
          },
          "newBuild": {
            "title": "New build",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "New builds only, existing homes only, or both.",
            "default": "any"
          },
          "includeAdditionalPrice": {
            "title": "Include additional price paid sales",
            "type": "boolean",
            "description": "Repossessions, buy to let purchases and sales to companies. Turn off to keep standard market sales only.",
            "default": true
          },
          "subjectPostcode": {
            "title": "Postcode of the property to value",
            "type": "string",
            "description": "Comparables mode. Full postcode, for example PL6 8RU."
          },
          "subjectPropertyType": {
            "title": "Type of the property to value",
            "enum": [
              "detached",
              "semi-detached",
              "terraced",
              "flat"
            ],
            "type": "string",
            "description": "Comparables mode. Only sales of this type are used."
          },
          "askingPrice": {
            "title": "Asking price (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Comparables mode. Optional, compared with the estimate."
          },
          "minComparables": {
            "title": "Minimum comparable sales",
            "minimum": 3,
            "maximum": 100,
            "type": "integer",
            "description": "If the postcode has fewer sales, the sector is used, then the outcode.",
            "default": 10
          },
          "regions": {
            "title": "Index regions",
            "type": "array",
            "description": "House index mode. Country, region, county or local authority names (United Kingdom, London, Manchester, Kent) or ONS codes (E09000033). Scotland and Northern Ireland are included.",
            "items": {
              "type": "string"
            }
          },
          "groupBy": {
            "title": "Group area stats by",
            "enum": [
              "searchArea",
              "postcodeSector",
              "outcode",
              "street",
              "town",
              "district",
              "county",
              "propertyType",
              "saleYear",
              "saleQuarter",
              "saleMonth"
            ],
            "type": "string",
            "description": "Area stats mode only.",
            "default": "searchArea"
          },
          "addLocation": {
            "title": "Add location details",
            "type": "boolean",
            "description": "Adds latitude, longitude, ward, local authority, region, constituency, LSOA and deprivation rank for each postcode.",
            "default": true
          },
          "addTodayValue": {
            "title": "Add today's value estimate",
            "type": "boolean",
            "description": "Moves each sale price to today with the local House Price Index for that property type.",
            "default": true
          },
          "includePreviousSale": {
            "title": "Add the previous sale of the same home",
            "type": "boolean",
            "description": "Transactions mode. Adds previous price, date, years held and yearly growth. One extra lookup per postcode.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}