POST /api/midland/transactions
Price: 1 credit
Get one Hong Kong property deal recorded by Midland Realty by its transaction id (or transaction URL), together with the full price history of the same unit. Returns the transacted price and price per saleable area, gross and saleable area, room counts, floor, floor band, flat and orientation, unit features and floor plans, the eight-level geography, the estate profile (vendor, address, block count, occupation date, coordinates, school nets, facilities, photos and videos), the building, and every earlier deal on the same unit with its price, date, prior price and gain.
Get a single Hong Kong property deal by transaction id (e.g. 'F20260700101'); a full transaction URL is also accepted. Set lang / unit / currency for the output locale. The history field lists every earlier recorded deal on the same flat with prices, dates and gains — this is the price history of that unit. Find ids with midland/transactions/search.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)lang string — Output language. Districts, estates, buildings and feature names are all translated. (default: "zh-hk"; one of: "zh-hk", "zh-cn", "en")unit string — Area unit used for areas and per-area prices. (default: "feet"; one of: "feet", "meter")currency string — Currency used for prices, rents and monthly payments. (default: "HKD"; one of: "HKD", "CNY")transaction string required — Midland transaction id, or the full transaction URL. (examples: "F20260700101", "323084")@type string (default: "MidlandTransaction")id string requiredurl string nullableurl_zh_cn string nullableurl_en string nullabletransaction_type string nullabletransaction_at integer nullablemarket_type string nullabledeal_type string nullablesource string nullableoriginal_source string nullabletags array (default: [])price number nullableprice_per_net_area number nullablearea number nullablenet_area number nullablebedroom_count integer nullablesitting_room_count integer nullablefloor string nullablefloor_level object nullable@type string (default: "MidlandRef")id string nullablename string nullableflat string nullableorientation string nullablegeo object nullable@type string (default: "MidlandGeo")region object nullable@type string (default: "MidlandRef")id string nullablename string nullablesubregion object nullable@type string (default: "MidlandRef")id string nullablename string nullabledistrict object nullable@type string (default: "MidlandRef")id string nullablename string nullablesm_district object nullable@type string (default: "MidlandRef")id string nullablename string nullablecombined_district object nullable@type string (default: "MidlandRef")id string nullablename string nullableint_district object nullable@type string (default: "MidlandRef")id string nullablename string nullableint_sm_district object nullable@type string (default: "MidlandRef")id string nullablename string nullablelux_district object nullable@type string (default: "MidlandRef")id string nullablename string nullableestate object nullable@type string (default: "MidlandTransactionEstate")id string nullablename string nullableaddress string nullablevendor string nullableblock_count_text string nullablefirst_op_at integer nullablelatitude number nullablelongitude number nullableschool_net object nullable@type string (default: "MidlandSchoolNet")kindergarten_id string nullablekindergarten_name string nullableprimary_id string nullableprimary_name string nullablesecondary_id string nullablesecondary_name string nullablefacility_groups array (default: [])@type string (default: "MidlandRef")id string nullablename string nullableproperty_status array (default: [])photos array (default: [])videos array (default: [])@type string (default: "MidlandPropertyVideo")id string nullableurl string nullablestream_url string nullablethumbnail string nullableurl string nullablebuilding object nullable@type string (default: "MidlandBuilding")id string nullablename string nullableaddress string nullablefirst_op_at integer nullablefloor_count integer nullablebuilding_type string nullablelatitude number nullablelongitude number nullablestreetview_latitude number nullablestreetview_longitude number nullablestreetview_angle integer nullablefeatures array (default: [])@type string (default: "MidlandRef")id string nullablename string nullablefloor_plans array (default: [])@type string (default: "MidlandFloorPlan")id string nullablename string nullableurl string nullablesource string nullablephase_id string nullablephase_name string nullablebuilding_id string nullablebuilding_name string nullablefloor_from string nullablefloor_to string nullablefloor_text string nullableimages array (default: [])history array (default: [])@type string (default: "MidlandTransactionHistoryEntry")id string nullabletransaction_at integer nullabletransaction_type string nullablemarket_type string nullableprice number nullablearea number nullablenet_area number nullableprevious_price number nullableprevious_transaction_at integer nullablegain_percent number nullablebedroom_count integer nullablesitting_room_count integer nullablefloor string nullableflat string nullableestate object nullable@type string (default: "MidlandRef")id string nullablename string nullablebuilding object nullable@type string (default: "MidlandBuilding")id string nullablename string nullableaddress string nullablefirst_op_at integer nullablefloor_count integer nullablebuilding_type string nullablelatitude number nullablelongitude number nullablestreetview_latitude number nullablestreetview_longitude number nullablestreetview_angle integer nullablesource string nullableoriginal_source string nullablebuilding_history_url string nullableestate_url string nullablelistings_url string nullablenews_url string nullable422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — No deal with this transaction id. Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.