$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "http://api.domus.la/pro-grid", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "authorization: TOKEN_INGRESO", ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
{ "total": 1104, "per_page": 1, "current_page": 1, "last_page": 1104, "from": 1, "to": 1, "data": [ { "codpro": 12345, "branch": 123, "address": "Property's Address", "city": "CALI ", "zone": "NORTE", "neighborhood": "Brisas De Los Alamos", "neighborhood_id": 0, "type": "APARTAMENTO", "biz": "ARRIENDO", "area_cons": 51, "area_lot": 0, "bedrooms": 3, "bathrooms": 1, "price": 680000, "rent": 680000, "administration": 141100, "latitude": "3.4966725342944", "longitude": "-76.49851083755", "saleprice": 0, "description": "Here comes the property's description", "parking": 1, "parking_covered": 0, "real_state": 301, "build_year": 2000, "image": "http://pictures.domus.la/inmobiliaria_301/74738_1_1484748497.jpg" } ] }
Parametro | Descripcion | Ejemplo |
---|---|---|
Authorization | Token : Llave de acceso | 'authorization' => 'TOKEN_AUTENTICACION' |
perpage | Numero de inmuebles que desea consultar por pagina | 'perpage' => '10' |
Inmobiliaria | Enviar 1 si la inmobiliaria tiene varias sucursales | 'inmobiliaria' => '1' |
Parametro | Descripcion | Ejemplo |
---|---|---|
page | Numero de la pagina que desea ver | &page=3 |
codpro | Traer un codigo especifico | ?codpro=262 |
city | Buscar por ciudad | &city=11001 |
address | Buscar por direccion | &address=25 |
zone | Buscar por zona | &zone=3 |
biz | Buscar por tipo de negocio | &biz=2 |
stratum | Buscar por estrato | &stratum=4 |
type | Buscar por tipo de inmueble | &type=5 |
neighborhood | Buscar por barrio | &neighborhood=colina |
neighborhood_id | Buscar por id barrio | &neighborhood_id=4751 |
area_cons | Filtrar area construida en m² | &area_cons=60 |
minarea - maxarea | Filtrar por rango de area en m² | &minarea=45&maxarea=65 |
area_lot | Filtrar por area de lote en m² | &area_lot=80 |
floor_type | Filtrar tipo de piso | &floor_type=ceramica |
bedrooms | Filtrar por habitaciones | &bedrooms=4 |
minbed - maxbed | Filtrar por rango de habitaciones | &minbed=2&maxbed=4 |
bathrooms | Filtrar por baños | &bathrooms=4 |
minbath - maxbath | Filtrar por rango de baños | &minbath=2&maxbath=3 |
rent | Filtrar por valor del canon | &rent=1200000 |
pcmin - pcmax | Filtrar por rango de canon | &pcmin=800000&pcmax=1100000 |
saleprice | Filtrar por valor de venta | &saleprice=200000000 |
pvmin - pvmax | Filtrar por rango de venta | &pvmin=85000000&pvmax=92000000 |
administration | Filtrar por valor de administracion | &administration=250000 |
description | Filtrar por una palabra contenida en la descripcion | &description=remodelado |
status | Filtrar por estado | &status=3 |
built_year | Filtrar por año de construido | &built_year=1998 |
minage - maxage | Filtrar por rango de año construido | &minage=2000&maxage=2005 |
great | Traer inmuebles destacados | &great=on |
destination | Filtrar destinacion | &destination=2 |
broker | Filtrar por id asesor | &broker=1256 |
branch | Filtrar por sucursal en caso que la inmobiliaria tenga mas de una | &branch=601 |
minparking - maxparking | Filtrar por rango de parqueos | &minparking=2&maxparking=4 |
amenities | Filtrar por caracteristicas | &amenities=24,87,63 |
Indice | Ejemplo | |
---|---|---|
ASC | Orden ascendente | &sort=asc |
DESC | Orden descendente | &sort=desc |
saleprice | &order=saleprice | |
rent | &order=rent | |
administration | &order=administration | |
address | &order=address | |
zone | &order=zone | |
biz | &order=biz | |
stratum | &order=stratum | |
type | &order=type | |
neighborhood | &order=neighborhood | |
neighborhood_id | &order=neighborhood | |
area_cons | &order=area_cons | |
area_lot | &order=area_lot | |
floor_type | &order=floor_type | |
floor | &order=floor | |
bedrooms | &order=bedrooms | |
bathrooms | &order=bathrooms | |
pricemin | &order=pricemin | |
pricemax | &order=pricemax |
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "http://api.domus.la/pro-detail/123456", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "authorization: TOKEN_INGRESO", ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
{ "data": [ { "codpro": 12345, "address": "Property's Address", "city": "CALI ", "zone": "NORTE", "neighborhood": "Brisas De Los Alamos", "neighborhood_id": 0, "type": "APARTAMENTO", "biz": "ARRIENDO", "area_cons": 51, "area_lot": 0, "floor_type": "Ceramica ", "floor": "", "bedrooms": 3, "bathrooms": 1, "stratum": 3, "price": 680000, "rent": 680000, "administration": 141100, "saleprice": 0, "description": "Here comes the property description", "desc_eng": "", "desc_fre": "", "resctrictions": "", "comment": "", "comment2": "", "video": "https://www.youtube.com/watch?v=iB1hZaeKul8&featuaddsare=youtu.be", "parking": 1, "parking_covered": 0, "consignation_date": "0000-00-00", "registry_date": "2017-01-18 09:08:16", "latitude": "3.4966725342944", "longitude": "-76.49851083755", "status": 1, "build_year": 2000, "great": "", "building_unit": "", "branch": 3010, "real_state": 301, "window_sign": 0, "front": 0, "rear": 0, "private_area": 0, "proyect_id": 0, "destination": 1, "commission_percentage": 0, "matricula_number": "", "visits": 1, "broker": [ { "code": 1234, "name": "Nombre del asesor", "last_name": "", "telephone": "123456", "movil_phone": "1234556", "email": "[email protected]", "picture": "", "status": 1 } ], "asesor": 9361, "images": [ { "imageurl": "http://pictures.domus.la/inmobiliaria_301/74738_1_1484748497.jpg", "thumburl": "http://pictures.domus.la/inmobiliaria_301/74738_1_min1484748497.jpg" }, { "imageurl": "http://pictures.domus.la/inmobiliaria_301/74738_1_1484748498.jpg", "thumburl": "http://pictures.domus.la/inmobiliaria_301/74738_1_min1484748498.jpg" }, { "imageurl": "http://pictures.domus.la/inmobiliaria_301/74738_1_1484748500.jpg", "thumburl": "http://pictures.domus.la/inmobiliaria_301/74738_1_min1484748500.jpg" }, { "imageurl": "http://pictures.domus.la/inmobiliaria_301/74738_1_1484748502.jpg", "thumburl": "http://pictures.domus.la/inmobiliaria_301/74738_1_min1484748502.jpg" }, { "imageurl": "http://pictures.domus.la/inmobiliaria_301/74738_1_1484748503.jpg", "thumburl": "http://pictures.domus.la/inmobiliaria_301/74738_1_min1484748503.jpg" }, ], "amenities": [ { "id": "119", "name": "Vigilancia", "type": 2 }, { "id": "180", "name": "Closet", "type": 1 }, { "id": "324", "name": "Cocina Integral mixta", "type": 1 }, { "id": "164", "name": "Garaje/Parqueadero(s)", "type": 3 }, { "id": "278", "name": "Piso en cerámica", "type": 1 } ] } ] }
Parametro | Descripcion | Ejemplo |
---|---|---|
Authorization | Token : Llave de acceso | 'authorization' => 'TOKEN_AUTENTICACION' |
Inmobiliaria | Enviar 1 si la inmobiliaria tiene varias sucursales | 'inmobiliaria' => '1' |
Ficha | Enviar 1 si se quiere ver la ficha del inmueble en los elementos de la respuesta | 'ficha' => '1' |
Parametro | Descripcion | Ejemplo |
---|---|---|
/codigo_del_inmueble | Codigo | /262 |