curl --request POST \
--url https://api.anysite.io/api/seloger/listings/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"location": "<string>",
"count": 2,
"timeout": 300,
"mode": "achat",
"property_type": "all",
"sort": "relevance",
"min_price": 1,
"max_price": 1,
"min_area": 1,
"max_area": 1,
"min_rooms": 2,
"min_bedrooms": 2,
"energy_class": [],
"min_floor": 1,
"max_floor": 1,
"max_price_per_m2": 1,
"min_land_area": 1,
"keywords": [],
"has_terrace": false,
"has_balcony": false,
"has_lift": false,
"has_parking": false,
"has_garage": false,
"has_box": false,
"has_cellar": false,
"has_basement": false,
"has_locker": false,
"has_pool": false,
"has_garden": false,
"has_fireplace": false,
"has_guardian": false,
"has_intercom": false,
"has_digicode": false,
"has_alarm": false,
"has_parquet": false,
"has_living_room": false,
"has_dining_room": false,
"has_separate_toilet": false,
"has_entrance_hall": false,
"has_view": false,
"is_unobstructed_view": false,
"is_south_facing": false,
"is_ground_floor": false,
"is_top_floor": false,
"has_disabled_access": false,
"needs_work": false,
"is_exclusive": false,
"has_price_drop": false,
"is_private_seller": false,
"has_video": false,
"has_virtual_tour": false,
"is_furnished": false,
"allows_flat_share": false,
"is_student_housing": false
}
'import requests
url = "https://api.anysite.io/api/seloger/listings/search"
payload = {
"location": "<string>",
"count": 2,
"timeout": 300,
"mode": "achat",
"property_type": "all",
"sort": "relevance",
"min_price": 1,
"max_price": 1,
"min_area": 1,
"max_area": 1,
"min_rooms": 2,
"min_bedrooms": 2,
"energy_class": [],
"min_floor": 1,
"max_floor": 1,
"max_price_per_m2": 1,
"min_land_area": 1,
"keywords": [],
"has_terrace": False,
"has_balcony": False,
"has_lift": False,
"has_parking": False,
"has_garage": False,
"has_box": False,
"has_cellar": False,
"has_basement": False,
"has_locker": False,
"has_pool": False,
"has_garden": False,
"has_fireplace": False,
"has_guardian": False,
"has_intercom": False,
"has_digicode": False,
"has_alarm": False,
"has_parquet": False,
"has_living_room": False,
"has_dining_room": False,
"has_separate_toilet": False,
"has_entrance_hall": False,
"has_view": False,
"is_unobstructed_view": False,
"is_south_facing": False,
"is_ground_floor": False,
"is_top_floor": False,
"has_disabled_access": False,
"needs_work": False,
"is_exclusive": False,
"has_price_drop": False,
"is_private_seller": False,
"has_video": False,
"has_virtual_tour": False,
"is_furnished": False,
"allows_flat_share": False,
"is_student_housing": False
}
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({
location: '<string>',
count: 2,
timeout: 300,
mode: 'achat',
property_type: 'all',
sort: 'relevance',
min_price: 1,
max_price: 1,
min_area: 1,
max_area: 1,
min_rooms: 2,
min_bedrooms: 2,
energy_class: [],
min_floor: 1,
max_floor: 1,
max_price_per_m2: 1,
min_land_area: 1,
keywords: [],
has_terrace: false,
has_balcony: false,
has_lift: false,
has_parking: false,
has_garage: false,
has_box: false,
has_cellar: false,
has_basement: false,
has_locker: false,
has_pool: false,
has_garden: false,
has_fireplace: false,
has_guardian: false,
has_intercom: false,
has_digicode: false,
has_alarm: false,
has_parquet: false,
has_living_room: false,
has_dining_room: false,
has_separate_toilet: false,
has_entrance_hall: false,
has_view: false,
is_unobstructed_view: false,
is_south_facing: false,
is_ground_floor: false,
is_top_floor: false,
has_disabled_access: false,
needs_work: false,
is_exclusive: false,
has_price_drop: false,
is_private_seller: false,
has_video: false,
has_virtual_tour: false,
is_furnished: false,
allows_flat_share: false,
is_student_housing: false
})
};
fetch('https://api.anysite.io/api/seloger/listings/search', 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/seloger/listings/search",
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([
'location' => '<string>',
'count' => 2,
'timeout' => 300,
'mode' => 'achat',
'property_type' => 'all',
'sort' => 'relevance',
'min_price' => 1,
'max_price' => 1,
'min_area' => 1,
'max_area' => 1,
'min_rooms' => 2,
'min_bedrooms' => 2,
'energy_class' => [
],
'min_floor' => 1,
'max_floor' => 1,
'max_price_per_m2' => 1,
'min_land_area' => 1,
'keywords' => [
],
'has_terrace' => false,
'has_balcony' => false,
'has_lift' => false,
'has_parking' => false,
'has_garage' => false,
'has_box' => false,
'has_cellar' => false,
'has_basement' => false,
'has_locker' => false,
'has_pool' => false,
'has_garden' => false,
'has_fireplace' => false,
'has_guardian' => false,
'has_intercom' => false,
'has_digicode' => false,
'has_alarm' => false,
'has_parquet' => false,
'has_living_room' => false,
'has_dining_room' => false,
'has_separate_toilet' => false,
'has_entrance_hall' => false,
'has_view' => false,
'is_unobstructed_view' => false,
'is_south_facing' => false,
'is_ground_floor' => false,
'is_top_floor' => false,
'has_disabled_access' => false,
'needs_work' => false,
'is_exclusive' => false,
'has_price_drop' => false,
'is_private_seller' => false,
'has_video' => false,
'has_virtual_tour' => false,
'is_furnished' => false,
'allows_flat_share' => false,
'is_student_housing' => false
]),
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/seloger/listings/search"
payload := strings.NewReader("{\n \"location\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"mode\": \"achat\",\n \"property_type\": \"all\",\n \"sort\": \"relevance\",\n \"min_price\": 1,\n \"max_price\": 1,\n \"min_area\": 1,\n \"max_area\": 1,\n \"min_rooms\": 2,\n \"min_bedrooms\": 2,\n \"energy_class\": [],\n \"min_floor\": 1,\n \"max_floor\": 1,\n \"max_price_per_m2\": 1,\n \"min_land_area\": 1,\n \"keywords\": [],\n \"has_terrace\": false,\n \"has_balcony\": false,\n \"has_lift\": false,\n \"has_parking\": false,\n \"has_garage\": false,\n \"has_box\": false,\n \"has_cellar\": false,\n \"has_basement\": false,\n \"has_locker\": false,\n \"has_pool\": false,\n \"has_garden\": false,\n \"has_fireplace\": false,\n \"has_guardian\": false,\n \"has_intercom\": false,\n \"has_digicode\": false,\n \"has_alarm\": false,\n \"has_parquet\": false,\n \"has_living_room\": false,\n \"has_dining_room\": false,\n \"has_separate_toilet\": false,\n \"has_entrance_hall\": false,\n \"has_view\": false,\n \"is_unobstructed_view\": false,\n \"is_south_facing\": false,\n \"is_ground_floor\": false,\n \"is_top_floor\": false,\n \"has_disabled_access\": false,\n \"needs_work\": false,\n \"is_exclusive\": false,\n \"has_price_drop\": false,\n \"is_private_seller\": false,\n \"has_video\": false,\n \"has_virtual_tour\": false,\n \"is_furnished\": false,\n \"allows_flat_share\": false,\n \"is_student_housing\": false\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/seloger/listings/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"location\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"mode\": \"achat\",\n \"property_type\": \"all\",\n \"sort\": \"relevance\",\n \"min_price\": 1,\n \"max_price\": 1,\n \"min_area\": 1,\n \"max_area\": 1,\n \"min_rooms\": 2,\n \"min_bedrooms\": 2,\n \"energy_class\": [],\n \"min_floor\": 1,\n \"max_floor\": 1,\n \"max_price_per_m2\": 1,\n \"min_land_area\": 1,\n \"keywords\": [],\n \"has_terrace\": false,\n \"has_balcony\": false,\n \"has_lift\": false,\n \"has_parking\": false,\n \"has_garage\": false,\n \"has_box\": false,\n \"has_cellar\": false,\n \"has_basement\": false,\n \"has_locker\": false,\n \"has_pool\": false,\n \"has_garden\": false,\n \"has_fireplace\": false,\n \"has_guardian\": false,\n \"has_intercom\": false,\n \"has_digicode\": false,\n \"has_alarm\": false,\n \"has_parquet\": false,\n \"has_living_room\": false,\n \"has_dining_room\": false,\n \"has_separate_toilet\": false,\n \"has_entrance_hall\": false,\n \"has_view\": false,\n \"is_unobstructed_view\": false,\n \"is_south_facing\": false,\n \"is_ground_floor\": false,\n \"is_top_floor\": false,\n \"has_disabled_access\": false,\n \"needs_work\": false,\n \"is_exclusive\": false,\n \"has_price_drop\": false,\n \"is_private_seller\": false,\n \"has_video\": false,\n \"has_virtual_tour\": false,\n \"is_furnished\": false,\n \"allows_flat_share\": false,\n \"is_student_housing\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/seloger/listings/search")
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 \"location\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"mode\": \"achat\",\n \"property_type\": \"all\",\n \"sort\": \"relevance\",\n \"min_price\": 1,\n \"max_price\": 1,\n \"min_area\": 1,\n \"max_area\": 1,\n \"min_rooms\": 2,\n \"min_bedrooms\": 2,\n \"energy_class\": [],\n \"min_floor\": 1,\n \"max_floor\": 1,\n \"max_price_per_m2\": 1,\n \"min_land_area\": 1,\n \"keywords\": [],\n \"has_terrace\": false,\n \"has_balcony\": false,\n \"has_lift\": false,\n \"has_parking\": false,\n \"has_garage\": false,\n \"has_box\": false,\n \"has_cellar\": false,\n \"has_basement\": false,\n \"has_locker\": false,\n \"has_pool\": false,\n \"has_garden\": false,\n \"has_fireplace\": false,\n \"has_guardian\": false,\n \"has_intercom\": false,\n \"has_digicode\": false,\n \"has_alarm\": false,\n \"has_parquet\": false,\n \"has_living_room\": false,\n \"has_dining_room\": false,\n \"has_separate_toilet\": false,\n \"has_entrance_hall\": false,\n \"has_view\": false,\n \"is_unobstructed_view\": false,\n \"is_south_facing\": false,\n \"is_ground_floor\": false,\n \"is_top_floor\": false,\n \"has_disabled_access\": false,\n \"needs_work\": false,\n \"is_exclusive\": false,\n \"has_price_drop\": false,\n \"is_private_seller\": false,\n \"has_video\": false,\n \"has_virtual_tour\": false,\n \"is_furnished\": false,\n \"allows_flat_share\": false,\n \"is_student_housing\": false\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "SelogerSearchListing",
"url": "<string>",
"property_type": "<string>",
"distribution_type": "<string>",
"is_new": true,
"is_exclusive": true,
"is_life_annuity": true,
"price": 123,
"price_note": "<string>",
"price_per_m2": 123,
"monthly_price": 123,
"area_m2": 123,
"room_count": 123,
"bedroom_count": 123,
"energy_class": "<string>",
"tags": [],
"city": "<string>",
"zip_code": "<string>",
"district": "<string>",
"transport": [],
"images": [],
"photo_count": 123,
"virtual_tour_url": "<string>",
"video_url": "<string>",
"agency": {
"@type": "SelogerSearchAgency",
"id": "<string>",
"name": "<string>",
"is_private_seller": true,
"phone": "<string>",
"url": "<string>",
"website_url": "<string>",
"image": "<string>"
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/seloger/listings/search
Search SeLoger real estate listings by location (city, arrondissement, neighbourhood or postal code) with mode (achat/location), property type, price, area, room, bedroom, floor, price-per-m², land-area and energy-class (DPE) filters, free-text keywords, the full amenity checklist (terrace, balcony, lift, parking, garage, cellar, pool, garden, fireplace, caretaker, parquet, disabled access, south-facing, ground/top floor, furnished, flat-share, student and more) and ordering. Returns listing cards with title, property type, sale or rental distribution, price and price per m², living area, rooms, bedrooms, energy class, description, tags, address, nearby transport lines, photos, virtual tour and video links, the listing detail url and the listing agency.
Price: 10 credits per 20 results
⚠️ Common errors: 412: Location could not be resolved
curl --request POST \
--url https://api.anysite.io/api/seloger/listings/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"location": "<string>",
"count": 2,
"timeout": 300,
"mode": "achat",
"property_type": "all",
"sort": "relevance",
"min_price": 1,
"max_price": 1,
"min_area": 1,
"max_area": 1,
"min_rooms": 2,
"min_bedrooms": 2,
"energy_class": [],
"min_floor": 1,
"max_floor": 1,
"max_price_per_m2": 1,
"min_land_area": 1,
"keywords": [],
"has_terrace": false,
"has_balcony": false,
"has_lift": false,
"has_parking": false,
"has_garage": false,
"has_box": false,
"has_cellar": false,
"has_basement": false,
"has_locker": false,
"has_pool": false,
"has_garden": false,
"has_fireplace": false,
"has_guardian": false,
"has_intercom": false,
"has_digicode": false,
"has_alarm": false,
"has_parquet": false,
"has_living_room": false,
"has_dining_room": false,
"has_separate_toilet": false,
"has_entrance_hall": false,
"has_view": false,
"is_unobstructed_view": false,
"is_south_facing": false,
"is_ground_floor": false,
"is_top_floor": false,
"has_disabled_access": false,
"needs_work": false,
"is_exclusive": false,
"has_price_drop": false,
"is_private_seller": false,
"has_video": false,
"has_virtual_tour": false,
"is_furnished": false,
"allows_flat_share": false,
"is_student_housing": false
}
'import requests
url = "https://api.anysite.io/api/seloger/listings/search"
payload = {
"location": "<string>",
"count": 2,
"timeout": 300,
"mode": "achat",
"property_type": "all",
"sort": "relevance",
"min_price": 1,
"max_price": 1,
"min_area": 1,
"max_area": 1,
"min_rooms": 2,
"min_bedrooms": 2,
"energy_class": [],
"min_floor": 1,
"max_floor": 1,
"max_price_per_m2": 1,
"min_land_area": 1,
"keywords": [],
"has_terrace": False,
"has_balcony": False,
"has_lift": False,
"has_parking": False,
"has_garage": False,
"has_box": False,
"has_cellar": False,
"has_basement": False,
"has_locker": False,
"has_pool": False,
"has_garden": False,
"has_fireplace": False,
"has_guardian": False,
"has_intercom": False,
"has_digicode": False,
"has_alarm": False,
"has_parquet": False,
"has_living_room": False,
"has_dining_room": False,
"has_separate_toilet": False,
"has_entrance_hall": False,
"has_view": False,
"is_unobstructed_view": False,
"is_south_facing": False,
"is_ground_floor": False,
"is_top_floor": False,
"has_disabled_access": False,
"needs_work": False,
"is_exclusive": False,
"has_price_drop": False,
"is_private_seller": False,
"has_video": False,
"has_virtual_tour": False,
"is_furnished": False,
"allows_flat_share": False,
"is_student_housing": False
}
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({
location: '<string>',
count: 2,
timeout: 300,
mode: 'achat',
property_type: 'all',
sort: 'relevance',
min_price: 1,
max_price: 1,
min_area: 1,
max_area: 1,
min_rooms: 2,
min_bedrooms: 2,
energy_class: [],
min_floor: 1,
max_floor: 1,
max_price_per_m2: 1,
min_land_area: 1,
keywords: [],
has_terrace: false,
has_balcony: false,
has_lift: false,
has_parking: false,
has_garage: false,
has_box: false,
has_cellar: false,
has_basement: false,
has_locker: false,
has_pool: false,
has_garden: false,
has_fireplace: false,
has_guardian: false,
has_intercom: false,
has_digicode: false,
has_alarm: false,
has_parquet: false,
has_living_room: false,
has_dining_room: false,
has_separate_toilet: false,
has_entrance_hall: false,
has_view: false,
is_unobstructed_view: false,
is_south_facing: false,
is_ground_floor: false,
is_top_floor: false,
has_disabled_access: false,
needs_work: false,
is_exclusive: false,
has_price_drop: false,
is_private_seller: false,
has_video: false,
has_virtual_tour: false,
is_furnished: false,
allows_flat_share: false,
is_student_housing: false
})
};
fetch('https://api.anysite.io/api/seloger/listings/search', 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/seloger/listings/search",
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([
'location' => '<string>',
'count' => 2,
'timeout' => 300,
'mode' => 'achat',
'property_type' => 'all',
'sort' => 'relevance',
'min_price' => 1,
'max_price' => 1,
'min_area' => 1,
'max_area' => 1,
'min_rooms' => 2,
'min_bedrooms' => 2,
'energy_class' => [
],
'min_floor' => 1,
'max_floor' => 1,
'max_price_per_m2' => 1,
'min_land_area' => 1,
'keywords' => [
],
'has_terrace' => false,
'has_balcony' => false,
'has_lift' => false,
'has_parking' => false,
'has_garage' => false,
'has_box' => false,
'has_cellar' => false,
'has_basement' => false,
'has_locker' => false,
'has_pool' => false,
'has_garden' => false,
'has_fireplace' => false,
'has_guardian' => false,
'has_intercom' => false,
'has_digicode' => false,
'has_alarm' => false,
'has_parquet' => false,
'has_living_room' => false,
'has_dining_room' => false,
'has_separate_toilet' => false,
'has_entrance_hall' => false,
'has_view' => false,
'is_unobstructed_view' => false,
'is_south_facing' => false,
'is_ground_floor' => false,
'is_top_floor' => false,
'has_disabled_access' => false,
'needs_work' => false,
'is_exclusive' => false,
'has_price_drop' => false,
'is_private_seller' => false,
'has_video' => false,
'has_virtual_tour' => false,
'is_furnished' => false,
'allows_flat_share' => false,
'is_student_housing' => false
]),
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/seloger/listings/search"
payload := strings.NewReader("{\n \"location\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"mode\": \"achat\",\n \"property_type\": \"all\",\n \"sort\": \"relevance\",\n \"min_price\": 1,\n \"max_price\": 1,\n \"min_area\": 1,\n \"max_area\": 1,\n \"min_rooms\": 2,\n \"min_bedrooms\": 2,\n \"energy_class\": [],\n \"min_floor\": 1,\n \"max_floor\": 1,\n \"max_price_per_m2\": 1,\n \"min_land_area\": 1,\n \"keywords\": [],\n \"has_terrace\": false,\n \"has_balcony\": false,\n \"has_lift\": false,\n \"has_parking\": false,\n \"has_garage\": false,\n \"has_box\": false,\n \"has_cellar\": false,\n \"has_basement\": false,\n \"has_locker\": false,\n \"has_pool\": false,\n \"has_garden\": false,\n \"has_fireplace\": false,\n \"has_guardian\": false,\n \"has_intercom\": false,\n \"has_digicode\": false,\n \"has_alarm\": false,\n \"has_parquet\": false,\n \"has_living_room\": false,\n \"has_dining_room\": false,\n \"has_separate_toilet\": false,\n \"has_entrance_hall\": false,\n \"has_view\": false,\n \"is_unobstructed_view\": false,\n \"is_south_facing\": false,\n \"is_ground_floor\": false,\n \"is_top_floor\": false,\n \"has_disabled_access\": false,\n \"needs_work\": false,\n \"is_exclusive\": false,\n \"has_price_drop\": false,\n \"is_private_seller\": false,\n \"has_video\": false,\n \"has_virtual_tour\": false,\n \"is_furnished\": false,\n \"allows_flat_share\": false,\n \"is_student_housing\": false\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/seloger/listings/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"location\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"mode\": \"achat\",\n \"property_type\": \"all\",\n \"sort\": \"relevance\",\n \"min_price\": 1,\n \"max_price\": 1,\n \"min_area\": 1,\n \"max_area\": 1,\n \"min_rooms\": 2,\n \"min_bedrooms\": 2,\n \"energy_class\": [],\n \"min_floor\": 1,\n \"max_floor\": 1,\n \"max_price_per_m2\": 1,\n \"min_land_area\": 1,\n \"keywords\": [],\n \"has_terrace\": false,\n \"has_balcony\": false,\n \"has_lift\": false,\n \"has_parking\": false,\n \"has_garage\": false,\n \"has_box\": false,\n \"has_cellar\": false,\n \"has_basement\": false,\n \"has_locker\": false,\n \"has_pool\": false,\n \"has_garden\": false,\n \"has_fireplace\": false,\n \"has_guardian\": false,\n \"has_intercom\": false,\n \"has_digicode\": false,\n \"has_alarm\": false,\n \"has_parquet\": false,\n \"has_living_room\": false,\n \"has_dining_room\": false,\n \"has_separate_toilet\": false,\n \"has_entrance_hall\": false,\n \"has_view\": false,\n \"is_unobstructed_view\": false,\n \"is_south_facing\": false,\n \"is_ground_floor\": false,\n \"is_top_floor\": false,\n \"has_disabled_access\": false,\n \"needs_work\": false,\n \"is_exclusive\": false,\n \"has_price_drop\": false,\n \"is_private_seller\": false,\n \"has_video\": false,\n \"has_virtual_tour\": false,\n \"is_furnished\": false,\n \"allows_flat_share\": false,\n \"is_student_housing\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/seloger/listings/search")
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 \"location\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"mode\": \"achat\",\n \"property_type\": \"all\",\n \"sort\": \"relevance\",\n \"min_price\": 1,\n \"max_price\": 1,\n \"min_area\": 1,\n \"max_area\": 1,\n \"min_rooms\": 2,\n \"min_bedrooms\": 2,\n \"energy_class\": [],\n \"min_floor\": 1,\n \"max_floor\": 1,\n \"max_price_per_m2\": 1,\n \"min_land_area\": 1,\n \"keywords\": [],\n \"has_terrace\": false,\n \"has_balcony\": false,\n \"has_lift\": false,\n \"has_parking\": false,\n \"has_garage\": false,\n \"has_box\": false,\n \"has_cellar\": false,\n \"has_basement\": false,\n \"has_locker\": false,\n \"has_pool\": false,\n \"has_garden\": false,\n \"has_fireplace\": false,\n \"has_guardian\": false,\n \"has_intercom\": false,\n \"has_digicode\": false,\n \"has_alarm\": false,\n \"has_parquet\": false,\n \"has_living_room\": false,\n \"has_dining_room\": false,\n \"has_separate_toilet\": false,\n \"has_entrance_hall\": false,\n \"has_view\": false,\n \"is_unobstructed_view\": false,\n \"is_south_facing\": false,\n \"is_ground_floor\": false,\n \"is_top_floor\": false,\n \"has_disabled_access\": false,\n \"needs_work\": false,\n \"is_exclusive\": false,\n \"has_price_drop\": false,\n \"is_private_seller\": false,\n \"has_video\": false,\n \"has_virtual_tour\": false,\n \"is_furnished\": false,\n \"allows_flat_share\": false,\n \"is_student_housing\": false\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "SelogerSearchListing",
"url": "<string>",
"property_type": "<string>",
"distribution_type": "<string>",
"is_new": true,
"is_exclusive": true,
"is_life_annuity": true,
"price": 123,
"price_note": "<string>",
"price_per_m2": 123,
"monthly_price": 123,
"area_m2": 123,
"room_count": 123,
"bedroom_count": 123,
"energy_class": "<string>",
"tags": [],
"city": "<string>",
"zip_code": "<string>",
"district": "<string>",
"transport": [],
"images": [],
"photo_count": 123,
"virtual_tour_url": "<string>",
"video_url": "<string>",
"agency": {
"@type": "SelogerSearchAgency",
"id": "<string>",
"name": "<string>",
"is_private_seller": true,
"phone": "<string>",
"url": "<string>",
"website_url": "<string>",
"image": "<string>"
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
1x >= 120 <= x <= 1500achat, location all, appartement, maison relevance, price_asc, price_desc, date_desc x >= 0x >= 0x >= 0x >= 0x >= 1x >= 1A, B, C, D, E, F, G x >= 0x >= 0x >= 0x >= 0Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes