> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /28hse/estates/units

> Get the full transaction history of a single flat in a Hong Kong estate. Returns the unit's address, phase and block, its gross and saleable areas in square feet, the bedroom count, the number of recorded deals and the unit floor plan, plus every recorded transaction with its date, price in HKD, price per gross and per saleable square foot, whether the record comes from the Land Registry or from market reporting, the profit or loss percentage against the previous sale and the date of that previous sale — a chain that reaches back to the early 2000s for older estates. The flat is addressed by the estate, phase, block and unit numbers together, exactly as they appear on a transaction row; a set that does not describe one flat returns 412.

**Price:** 1 credit

**⚠️ Common errors:** 412: No flat with this estate, phase, block and unit combination.



## OpenAPI

````yaml /openapi/real-estate.json post /api/28hse/estates/units
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/28hse/estates/units:
    post:
      tags:
        - /28hse
      summary: /28hse/estates/units
      description: >-
        Get the full transaction history of a single flat in a Hong Kong estate.
        Returns the unit's address, phase and block, its gross and saleable
        areas in square feet, the bedroom count, the number of recorded deals
        and the unit floor plan, plus every recorded transaction with its date,
        price in HKD, price per gross and per saleable square foot, whether the
        record comes from the Land Registry or from market reporting, the profit
        or loss percentage against the previous sale and the date of that
        previous sale — a chain that reaches back to the early 2000s for older
        estates. The flat is addressed by the estate, phase, block and unit
        numbers together, exactly as they appear on a transaction row; a set
        that does not describe one flat returns 412.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: No flat with this estate, phase, block and
        unit combination.
      operationId: __api_28hse_estates_units_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Hse28EstateUnitsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Hse28EstateUnit'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Hse28EstateUnitsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        site:
          $ref: '#/components/schemas/Hse28Site'
          default: 28hse
        lang:
          $ref: '#/components/schemas/Hse28Lang'
          default: tc
        estate:
          type: string
        unit:
          type: string
        phase_no:
          type: string
          default: '0'
        block_no:
          type: string
          default: '0'
      type: object
      required:
        - estate
        - unit
    Hse28EstateUnit:
      properties:
        '@type':
          type: string
          default: Hse28EstateUnit
        estate_id:
          type: string
        unit_id:
          type: string
        url:
          anyOf:
            - type: string
            - type: 'null'
        estate_url:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
        street:
          anyOf:
            - type: string
            - type: 'null'
        phase:
          anyOf:
            - type: string
            - type: 'null'
        block:
          anyOf:
            - type: string
            - type: 'null'
        gross_area:
          anyOf:
            - type: number
            - type: 'null'
        saleable_area:
          anyOf:
            - type: number
            - type: 'null'
        room_count:
          anyOf:
            - type: integer
            - type: 'null'
        transaction_count:
          anyOf:
            - type: integer
            - type: 'null'
        floor_plan:
          anyOf:
            - type: string
            - type: 'null'
        transactions:
          items:
            $ref: '#/components/schemas/Hse28UnitTransaction'
          type: array
          default: []
      type: object
      required:
        - estate_id
        - unit_id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    Hse28Site:
      type: string
      enum:
        - 28hse
        - squarefoot
    Hse28Lang:
      type: string
      enum:
        - tc
        - cn
        - en
    Hse28UnitTransaction:
      properties:
        '@type':
          type: string
          default: Hse28UnitTransaction
        transaction_at:
          anyOf:
            - type: integer
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        price_per_gross_sqft:
          anyOf:
            - type: number
            - type: 'null'
        price_per_saleable_sqft:
          anyOf:
            - type: number
            - type: 'null'
        transaction_type:
          anyOf:
            - type: string
            - type: 'null'
        profit_loss_percent:
          anyOf:
            - type: number
            - type: 'null'
        previous_transaction_at:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````