{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Sold House Prices: HM Land Registry Price Paid Records",
    "description": "Every residential sale in England and Wales since 1995, from HM Land Registry Price Paid Data: one row per transaction with price, completion date, full address, postcode, property type, tenure and new-build flag. Filter by postcode, outcode, street, town, district, date range and price band.",
    "version": "0.1",
    "x-build-id": "mfeulkOhxQoHRMVbv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yadroo~uk-land-registry-sold-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yadroo-uk-land-registry-sold-prices",
        "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/yadroo~uk-land-registry-sold-prices/runs": {
      "post": {
        "operationId": "runs-sync-yadroo-uk-land-registry-sold-prices",
        "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/yadroo~uk-land-registry-sold-prices/run-sync": {
      "post": {
        "operationId": "run-sync-yadroo-uk-land-registry-sold-prices",
        "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": {
          "postcodes": {
            "title": "Postcodes, sectors or outcodes",
            "maxItems": 25,
            "type": "array",
            "description": "One per line. A full postcode (`PL6 8RU`) returns the sales registered at that postcode; a sector (`PL6 8`) or an outcode (`PL6`, `SW11`) returns every sale inside it. Case and a missing space are fixed for you, so `pl68ru` and `PL6 8RU` are the same input. A value that is not a UK postcode shape stops the run and names what was wrong, instead of quietly returning another area's sales. The register covers England and Wales only - Scottish and Northern Irish postcodes have no data here.",
            "items": {
              "type": "string"
            }
          },
          "street": {
            "title": "Street name",
            "type": "string",
            "description": "Street as the register prints it, with no house number: `PATTINSON DRIVE`, `Abbey Road`. Case and extra spaces are fixed for you. A street needs a town or a postcode beside it, because the same street name exists in hundreds of towns; the run stops with that message when neither is set."
          },
          "town": {
            "title": "Town or city",
            "type": "string",
            "description": "Town or city as the register prints it. Pick one of the ten largest from the list or type any other town - this is a free-text field, so case and extra spaces are fixed for you and anything the register holds works. The register stores the postal town, so every Greater London address is `LONDON`; to work on one part of London use an outcode or a district instead."
          },
          "district": {
            "title": "Local authority district",
            "type": "string",
            "description": "District as the register prints it: `CITY OF PLYMOUTH`, `CAMDEN`, `BIRMINGHAM`, `CORNWALL`. This is the filter for a London borough, where the town is always `LONDON`. Case and extra spaces are fixed for you; the values live in README -> Reference."
          },
          "county": {
            "title": "County",
            "type": "string",
            "description": "County as the register prints it: `GREATER LONDON`, `DEVON`, `WEST MIDLANDS`. The widest area filter there is - a county holds millions of sales, so use it together with a date window and the row cap."
          },
          "fromDate": {
            "title": "Sold on or after (YYYY-MM-DD)",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Lower bound on the completion date written on the transfer deed, as `YYYY-MM-DD`. Empty = back to January 1995, where the register starts. A date window is the cheapest way to keep a town- or county-wide run small."
          },
          "toDate": {
            "title": "Sold on or before (YYYY-MM-DD)",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Upper bound on the completion date, as `YYYY-MM-DD`. Use it with the lower bound to take one year or one quarter at a time - the usual shape of a run that feeds a valuation model."
          },
          "minPrice": {
            "title": "Minimum price (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only sales of at least this many pounds. The figure is the price on the transfer deed in whole pounds: no fees, no VAT and no estimate."
          },
          "maxPrice": {
            "title": "Maximum price (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper bound on the price paid, in pounds. A band between the two bounds isolates one part of the market - starter homes in a county, or everything above a million in a borough."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Empty = every type. These five are the register's own classes and the only values this field takes: the platform refuses anything else before the run starts (allowed: detached, semi-detached, terraced, flat-maisonette, other). `other` is the register's catch-all and holds a mix, so read those rows with care.",
            "items": {
              "type": "string",
              "enum": [
                "detached",
                "semi-detached",
                "terraced",
                "flat-maisonette",
                "other"
              ],
              "enumTitles": [
                "Detached house",
                "Semi-detached house",
                "Terraced house",
                "Flat or maisonette",
                "Other - property type the register could not place"
              ]
            }
          },
          "tenure": {
            "title": "Tenure",
            "type": "array",
            "description": "Empty = both. Only these two values are accepted and the platform refuses anything else before the run starts. The register records the tenure of the transfer, so a flat sold on a long lease is `leasehold` even where the freehold of the block changed hands separately.",
            "items": {
              "type": "string",
              "enum": [
                "freehold",
                "leasehold"
              ],
              "enumTitles": [
                "Freehold",
                "Leasehold"
              ]
            }
          },
          "newBuild": {
            "title": "New build or established",
            "enum": [
              "any",
              "new",
              "established"
            ],
            "type": "string",
            "description": "The register's new-build flag. `new` is the first sale of a property that had just been built, which is how a housebuilder's output shows up in the data; `established` is every other sale. Only these three values are accepted.",
            "default": "any"
          },
          "categories": {
            "title": "Transaction categories",
            "type": "array",
            "description": "Empty = both, which is what the register publishes. A valuation or price-index model normally wants `standard` only, because the additional category mixes repossessions and portfolio transfers whose price is not a market price. Only these two values are accepted.",
            "items": {
              "type": "string",
              "enum": [
                "standard",
                "additional"
              ],
              "enumTitles": [
                "Standard - sale at full market value between unconnected parties",
                "Additional - repossession, power of sale, buy-to-let or transfer to a non-private buyer"
              ]
            }
          },
          "sortBy": {
            "title": "Order of the rows",
            "enum": [
              "dateDesc",
              "dateAsc",
              "priceDesc",
              "priceAsc"
            ],
            "type": "string",
            "description": "Decides which rows a capped run keeps: newest first for a watch on an area, oldest first to build a history from 1995 forward, highest price first to see the top of a market. Only these four values are accepted.",
            "default": "dateDesc"
          },
          "onlyNew": {
            "title": "Only sales not returned before",
            "type": "boolean",
            "description": "Remember the register's transaction identifier of every row written and, on the next run of the same actor or task, write only identifiers that were not written before - so a monthly schedule appends what the register added instead of resending and recharging the whole area. The first run writes everything that matches. The memory belongs to the actor or task, so two tasks watching two postcodes never mix.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on the rows this run writes, and so on what it costs. Rows arrive in the order chosen above, so a capped newest-first run holds the most recent sales of the area. The register is read in pages of 500 rows; a county with no date window holds millions of sales, so keep the cap and the window together.",
            "default": 50
          },
          "fields": {
            "title": "Only these columns",
            "type": "array",
            "description": "Keep only the named columns, in this order - for example `price, date, address, propertyType`. Empty = every column. `transactionId`, `price`, `date`, `address`, `postcode`, `url` and `fetchedAt` are always written; name one of them here and it moves to the position you gave it. An unknown name is reported in the run status rather than dropped in silence.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}