Skip to content

Instantly share code, notes, and snippets.

@edocampo123
Last active March 28, 2018 01:23
Show Gist options
  • Save edocampo123/a0b5d722b30f7da6fbd4820595cd82ac to your computer and use it in GitHub Desktop.
Save edocampo123/a0b5d722b30f7da6fbd4820595cd82ac to your computer and use it in GitHub Desktop.

Property Finder API Documentation

API Endpoints

  1. Get all Properties
  2. Get all Properties with filters
  3. Get single Property
  4. Get options from select box

API Base URL

https://www.ayalalandhousingprogram.com/property-finder-api


Property

Get list of all Properties

Link: /getAllProperties.php

Response:

    {
        "count": 168,
        "property_detail": [
        {
            "name": "1016 Residences",
            "slug": "1016-residences",
            "location": "Cebu",
            "price_range": "P12.7M - P50M",
            "type": [
                "Condominium"
            ],
            "details_photo":"https://www.ayalalandhousingprogram.com/wp-content/uploads/2017/08/thumbnail-1.jpg",
            "brand": "AyalaLand Premier",
            "external_link":"https://www.ayalalandpremier.com/amp/single-property.php?id=1288",
            "is_sold_out": false,
            "featured_image":"https://www.ayalalandhousingprogram.com/wp-content/uploads/2017/08/thumbnail-min-1.jpg"
        },
        {
            "name": "Abreeza Place",
            "slug": "abreeza-place",
            "location": "Davao",
            "price_range": "P3M - P50M",
            "type": [
                "Condominium"
            ],
            "details_photo": "https://www.ayalalandhousingprogram.com/wp-content/uploads/2017/08/featured-min.jpg",
            "brand": "Alveo",
            "external_link":"https://www.alveoland.com.ph/condominium/davao/abreeza-place",
            "is_sold_out": false,
            "featured_image":"https://www.ayalalandhousingprogram.com/wp-content/uploads/2017/08/featured-2.jpg"
},
......

Get list of all Properties with filters

Link: /getAllProperties.php?property_type=property-type&price_range=price-range&property_location=property-location&keyword=keyword

Format:

Query String Data Type Example Value
property_type String Condominum
price_range String 2000000-3000000
property_location String Makati City
keyword String asten

Example: /getAllProperties.php?property_type=Condominium&price_range=2000000-3000000&property_location=Makati+City&keyword=asten

Response:

{
    "property_detail": 
    [
        {
            "name": "Avida Towers Asten",
            "slug": "avida-towers-asten",
            "location": "Makati City",
            "price_range": "P2.6M - P12.8M",
            "type": [
                "Condominium"
            ],
            "details_photo":"https://www.ayalalandhousingprogram.com/wp-content/uploads/2017/08/main-min-55.jpg",
            "brand": "Avida",
            "external_link": "http://avidaland.com/avida-towers-asten",
            "is_sold_out": false,
            "featured_image":"https://www.ayalalandhousingprogram.com/wp-content/uploads/2017/08/main-min-55.jpg"
        }
    ]
}

Get single Property

Format:

Query String Data Type Example Value
slug String 1016-residences

Example: /getSingleProperty.php?slug=1016-residences

Response:

{
    "featured_image": "https://www.ayalalandhousingprogram.com/wp-content/uploads/2017/08/thumbnail-min-1.jpg",
    "project_ID": 72,
    "property_name": "1016 Residences",
    "price_range": "P12.7M - P50M",
    "property_type": [
        "Condominium"
    ],
    "property_size": "98 - 229 sqm",
    "location": "Cebu",
    "external_link": "https://www.ayalalandpremier.com/amp/single-property.php?id=1288"
}

Get options from select box

Link: /getOptions.php

Response:

{
"location_name": [
    "Alabang, Muntinlupa City",
    "Antipolo",
    "Bacolod",
    "Bataan",
    "Batangas",
    "Bonifacio Global City",
    "Bulacan",
    "Cabanatuan City",
    "Cagayan de Oro",
    "Caloocan City",
    "Camarines Sur",
    "Cavite",
    "Cebu",
    "Davao",
    "Iloilo",
    "Laguna",
    "Lipa City",
    "Lucena",
    "Makati City",
    "Mandaluyong City",
    "Manila",
    "Naga",
    "Novaliches",
    "Nueva Ecija",
    "Nuvali",
    "Pampanga",
    "Pangasinan",
    "Paranaque City",
    "Pasay City",
    "Pasig City",
    "Quezon",
    "Quezon City",
    "Rizal",
    "Tagaytay",
    "Taguig",
    "Tarlac",
    "Tuguegarao"
    ],
"project_type": [
    "Commercial Lots",
    "Condominium",
    "Estates",
    "House & Lot",
    "Leisure Club Share",
    "Lot",
    "Offices",
    "Shophouse Development",
    "Townhomes"
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment