Apartments.com is one of the most popular online apartment listing websites, offering renters access to information of more than 500,000 available units for rent. In addition to serving renters nationwide, Apartments.com is an advertising partner for professional property owners and management companies, private landlords and classified listings. The company is a subsidiary of Washington, DC-based CoStar Group, Inc. along with ApartmentFinder.com, and ApartmentHomeLiving.com. CoStar operates websites with over 19 million unique monthly visitors with more than 9 million registered members.

Submitting the API request

This is sample CURL request you can use to test JustLikeAPI features.

Please make sure to replace:
- YOUR_API_KEY with the one you received from our support team
- PAGE_SPECIFIC_URL - with the endpoint of the method you're trying to invoke
- JSON payload - with the contents of your request (the sample payload for each request is given below)

curl -X POST https://api.justlikeapi.io/reviews/get -H 'authorization: Bearer YOUR_API_KEY' -H 'cache-control: no-cache' -H 'content-type: application/json' -d '{ "propertyUrl": "https://www.apartments.com/the-abbey-sun-prairie-wi/4zyd90l/#reviewsWrapper" }'

Read operations

Get method will pull in reviews for platform of your choice. Reviews will be ordered by date and can include information from the code example bellow:

Request

{
"propertyUrl":"https://www.apartments.com/the-abbey-sun-prairie-wi/4zyd90l/#reviewsWrapper",
"dateFrom":"2018-03-10", *
“reviewLimit”:”1″ **
}

*  "dateFrom" is optional

** “reviewLimit” is also optional (retrieves a specified number of reviews)

Base URL : https://justlikeapi.io/reviews/get

Parameter content type: application/json

Response

{
    "propertyName": "The Abbey",
    "location": "",
    "ratingValue": null,
    "ratingCount": null,
    "reviews": [
        {
            "reviewId": "edbrlxp",
            "customer": {
                "username": "",
                "location": null,
                "level": null
            },
            "title": "",
            "rating": "1",
            "text": "Kiss that security deposit goodbye. The property managers cleaning,
 wear and tear, normal use expectations are out of wack. If for some reason 
you do decide to take the chance , be sure you take extensive photos at move in.
 open cabinets and take photos of hinges, inside drawers, ect.
 The prices for this place vs surrounding competition does not line up,
 so i would just avoid the hassle",
            "reviewedOn": "2020-01-22",
            "photos": null,
            "repliedTo": false,
            "externalSource": null,
            "replies": [],
            "followUpReviews": null,
            "comments": null,
            "selfReview": null,
            "commentsCount": null,
            "reviewerPhoto": null
        }
    ]
}

Verify method will return propertyURL. This would be general information of that property. Bellow is a code example of request and response for Verify method:

Request

{
"propertyUrl":"https://www.apartments.com/alexan-garza-ranch-austin-tx/bcc8veb/#reviewsWrapper"
}

Base URL : https://justlikeapi.io/reviews/verify

Parameter content type: application/json

Response

{
    "valid": true,
    "title": "Alexan Garza Ranch",
    "address": "4009 Sabio Dr, Austin, TX 78749, US",
    "phoneNumber": "+1-512-518-6297",
    "websiteURL": "https://alexangarzaranch.com/",
    "categories": null,
    "description": "Now Leasing for Fall 2019.  Alexan Garza Ranch is the ideal home for those who want it all. Modern, thoughtful design inside and out gives you the best of everything in your own space and within the community. The easy access to downtown, coupled with the convenience of south Austin, makes this property perfectly situated to get you where you want to be.",
    "reviewCount": 3,
    "rating": 4.8,
    "openingHours": null,
    "specialities": null
}