List properties
curl --request GET \
--url https://rest.newlead.ai/v1/properties \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rest.newlead.ai/v1/properties', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://rest.newlead.ai/v1/properties"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"object": "property",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"internal_reference": "<string>",
"type": "flat",
"type_label": "<string>",
"available": true,
"matched_operation": "sale",
"summary": "<string>",
"listings": [
{
"operation": "sale",
"price": 720,
"currency": "EUR",
"idealista_code": "100000001",
"url": "<string>",
"available": true
}
],
"city": "<string>",
"province": "<string>",
"address": "<string>",
"bedrooms": 123,
"bathrooms": 123,
"built_m2": 123,
"features": "<string>",
"description": "<string>",
"visit_hours": "<string>",
"sales_agent": {
"name": "<string>",
"phone": "<string>"
},
"agent_notes": "<string>",
"images": [
{
"url": "https://images.example.com/property/kitchen.jpg",
"label": "<string>",
"ai_generated": true
}
],
"url": "<string>",
"warnings": [
{
"code": "image_not_copied",
"param": "images.3.url",
"message": "<string>"
}
]
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "phone must match pattern \"^\\+[1-9]\\d{6,14}$\".",
"param": "phone",
"request_id": "req_m3k2a9_4f1c2b7e",
"doc_url": "https://docs.newlead.ai/errors#parameter_invalid"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "phone must match pattern \"^\\+[1-9]\\d{6,14}$\".",
"param": "phone",
"request_id": "req_m3k2a9_4f1c2b7e",
"doc_url": "https://docs.newlead.ai/errors#parameter_invalid"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "phone must match pattern \"^\\+[1-9]\\d{6,14}$\".",
"param": "phone",
"request_id": "req_m3k2a9_4f1c2b7e",
"doc_url": "https://docs.newlead.ai/errors#parameter_invalid"
}
}Properties
List properties
Properties in your catalog with at least one published listing, most recently added first, with their photos: the ones on Idealista and the ones you send with PUT /properties/. Use it to show your catalog on your website. With reference, only the properties that match a listing code or your internal reference, published or not: with the full code or the reference, one; with the last digits of the code, those ending that way, up to 3. With no match, the list is empty. If more than 3 match, 400 parameter_invalid: send the full code. If your subaccount has no Idealista account and has never sent a property with PUT /properties/, 403 feature_disabled.
GET
/
properties
List properties
curl --request GET \
--url https://rest.newlead.ai/v1/properties \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rest.newlead.ai/v1/properties', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://rest.newlead.ai/v1/properties"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"object": "property",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"internal_reference": "<string>",
"type": "flat",
"type_label": "<string>",
"available": true,
"matched_operation": "sale",
"summary": "<string>",
"listings": [
{
"operation": "sale",
"price": 720,
"currency": "EUR",
"idealista_code": "100000001",
"url": "<string>",
"available": true
}
],
"city": "<string>",
"province": "<string>",
"address": "<string>",
"bedrooms": 123,
"bathrooms": 123,
"built_m2": 123,
"features": "<string>",
"description": "<string>",
"visit_hours": "<string>",
"sales_agent": {
"name": "<string>",
"phone": "<string>"
},
"agent_notes": "<string>",
"images": [
{
"url": "https://images.example.com/property/kitchen.jpg",
"label": "<string>",
"ai_generated": true
}
],
"url": "<string>",
"warnings": [
{
"code": "image_not_copied",
"param": "images.3.url",
"message": "<string>"
}
]
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "phone must match pattern \"^\\+[1-9]\\d{6,14}$\".",
"param": "phone",
"request_id": "req_m3k2a9_4f1c2b7e",
"doc_url": "https://docs.newlead.ai/errors#parameter_invalid"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "phone must match pattern \"^\\+[1-9]\\d{6,14}$\".",
"param": "phone",
"request_id": "req_m3k2a9_4f1c2b7e",
"doc_url": "https://docs.newlead.ai/errors#parameter_invalid"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "phone must match pattern \"^\\+[1-9]\\d{6,14}$\".",
"param": "phone",
"request_id": "req_m3k2a9_4f1c2b7e",
"doc_url": "https://docs.newlead.ai/errors#parameter_invalid"
}
}Authorizations
BearerAuthApiKeyHeader