curl --request GET \
--url https://staging.housera.ro/api/v1/schema<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET'};
fetch('https://staging.housera.ro/api/v1/schema', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/schema"
response = requests.get(url)
print(response.text){
"locale": "<string>",
"version": "<string>",
"types": [
{}
],
"transactions": [
{}
],
"currencies": [
{}
],
"fields": {},
"field_types": [
{}
],
"units": [
{}
],
"features": [
{}
],
"levels": {},
"street_types": [
{}
],
"photo_rooms": [
{}
],
"retired": [
{}
]
}The vocabulary
Types, subtypes, fields with their type and unit, amenities, and withdrawn codes. Public, without a key; labels follow locale, codes are never translated.
curl --request GET \
--url https://staging.housera.ro/api/v1/schema<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET'};
fetch('https://staging.housera.ro/api/v1/schema', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/schema"
response = requests.get(url)
print(response.text){
"locale": "<string>",
"version": "<string>",
"types": [
{}
],
"transactions": [
{}
],
"currencies": [
{}
],
"fields": {},
"field_types": [
{}
],
"units": [
{}
],
"features": [
{}
],
"levels": {},
"street_types": [
{}
],
"photo_rooms": [
{}
],
"retired": [
{}
]
}Response
Successful.
The language of the labels in the response.
The version of the vocabulary's shape. It changes only with an incompatible change to the shape; new codes appear without changing it.
Property types, with allowed transactions and subtypes of each.
Transactions, with price_period (what the price buys) and available (if the transaction is open now on the platform).
The currencies accepted in price_currency.
Each field of the listing: value type, unit, property types and transactions where they exist, allowed values.
The types of values used in fields.
The units used in fields.
The catalog of amenities, with the group and property types to which each applies.
The level codes, for floor and for label floor of the pictures.
Street types (street, boulevard, road…), as a prefix of the address.
The room codes for the labels of the pictures.
The retired codes and their successors.