Skip to main content
POST
/
api
/
hemnet
/
properties
/hemnet/properties
curl --request POST \
  --url https://api.anysite.io/api/hemnet/properties \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "property": "<string>",
  "timeout": 300
}
'
import requests

url = "https://api.anysite.io/api/hemnet/properties"

payload = {
"property": "<string>",
"timeout": 300
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({property: '<string>', timeout: 300})
};

fetch('https://api.anysite.io/api/hemnet/properties', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/hemnet/properties",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'property' => '<string>',
'timeout' => 300
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.anysite.io/api/hemnet/properties"

payload := strings.NewReader("{\n \"property\": \"<string>\",\n \"timeout\": 300\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/hemnet/properties")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"property\": \"<string>\",\n \"timeout\": 300\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/hemnet/properties")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"property\": \"<string>\",\n \"timeout\": 300\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "@type": "HemnetProperty",
    "street_address": "<string>",
    "area": "<string>",
    "post_code": "<string>",
    "municipality": {
      "@type": "HemnetLocationRef",
      "id": "<string>",
      "name": "<string>"
    },
    "region": {
      "@type": "HemnetLocationRef",
      "id": "<string>",
      "name": "<string>"
    },
    "district": {
      "@type": "HemnetLocationRef",
      "id": "<string>",
      "name": "<string>"
    },
    "asking_price": {
      "@type": "HemnetMoney",
      "amount": 123,
      "formatted": "<string>"
    },
    "fee": {
      "@type": "HemnetMoney",
      "amount": 123,
      "formatted": "<string>"
    },
    "square_meter_price": {
      "@type": "HemnetMoney",
      "amount": 123,
      "formatted": "<string>"
    },
    "running_costs": {
      "@type": "HemnetMoney",
      "amount": 123,
      "formatted": "<string>"
    },
    "living_area": 123,
    "supplemental_area": 123,
    "land_area": 123,
    "formatted_floor": "<string>",
    "room_count": 123,
    "construction_year": "<string>",
    "housing_form": "<string>",
    "housing_form_groups": [],
    "tenure": "<string>",
    "energy_class": "<string>",
    "is_foreclosure": true,
    "is_new_construction": true,
    "is_upcoming": true,
    "is_project": true,
    "bidding_started": true,
    "days_on_hemnet": 123,
    "view_count": 123,
    "water_distance_meters": 123,
    "coastline_distance_meters": 123,
    "published_at": "<string>",
    "url": "<string>",
    "coordinates": [],
    "labels": [],
    "open_houses": [],
    "amenities": [],
    "broker": {
      "@type": "HemnetBroker",
      "id": "<string>",
      "name": "<string>",
      "email": "<string>",
      "phone": "<string>",
      "alias": "<string>",
      "profile_url": "<string>",
      "image": "<string>"
    },
    "agency": {
      "@type": "HemnetAgency",
      "id": "<string>",
      "name": "<string>",
      "alias": "<string>",
      "profile_url": "<string>",
      "email": "<string>",
      "phone": "<string>",
      "web_url": "<string>",
      "street_address": "<string>",
      "post_code": "<string>",
      "city": "<string>"
    },
    "brf": {
      "@type": "HemnetBrf",
      "registration_number": "<string>",
      "name": "<string>"
    },
    "price_history": [],
    "images": [],
    "floor_plans": []
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
property
string
required
Minimum string length: 1
timeout
integer
default:300
Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:HemnetProperty
street_address
string | null
area
string | null
post_code
string | null
municipality
object | null
region
object | null
district
object | null
asking_price
object | null
fee
object | null
square_meter_price
object | null
running_costs
object | null
living_area
number | null
supplemental_area
number | null
land_area
number | null
formatted_floor
string | null
room_count
number | null
construction_year
string | null
housing_form
string | null
housing_form_groups
string[]
tenure
string | null
energy_class
string | null
is_foreclosure
boolean | null
is_new_construction
boolean | null
is_upcoming
boolean | null
is_project
boolean | null
bidding_started
boolean | null
days_on_hemnet
integer | null
view_count
integer | null
water_distance_meters
integer | null
coastline_distance_meters
integer | null
published_at
string | null
url
string | null
coordinates
number[]
labels
string[]
open_houses
object[]
amenities
object[]
broker
object | null
agency
object | null
brf
object | null
price_history
object[]
images
string[]
floor_plans
string[]