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/23-deake-st-south-portland-me/tslty88” }’

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/23-deake-st-south-portland-me/tslty88″,
“datefrom”:”2018-03-10″ *
}

*  “datefrom” is optional

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

Parameter content type: application/json

Response

{
        “propertyName”: “Real Estate Company”,
        “location”: “NYC, NY”,
        “reviews”: [
              {
                       “reviewId”: “1324325”,
                       “customer”: {
                               “username”: “”,
                               “location”: null,
                               “level”: null
                        },
                        “title”: ”  “,
                        “rating”: “5”,
                        “text”: “I stayed here last summer, and it’s lovely. There are many things to do nearby. I loved every minute!”,
                        “reviewedOn”: “2018-03-10”,
                        “photos”: null,
                        “repliedTo”: true,
                        “externalSource”: null,
                        “replies”: [
                                {
                                      “repliedBy”: “Property manager”,
                                      “text”: “I’m glad to hear you enjoyed. We hope you’ll visit again soon!”
                                 }
                                        ]
               }
                      ]
}

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/23-deake-st-south-portland-me/tslty88″
}

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

Parameter content type: application/json

Response

{
“valid”:true,
“title”:”Real Estate Company”,
“address”:”5th Ave”,
“phoneNumber”:”555-5555″,
“websiteURL”:”realestatecomp.com”,
“categories”:”Real Estate, Selling Agent”
}

Write operations

Executing the below request will write/overwrite the content with the content given in the sample code bellow:

Request

{
“propertyUrl”:”https://www.apartments.com/23-deake-st-south-portland-me/tslty88″,
“reviewId”:”49416187″,
“username”:”happyestate”,
“password”:”24fgty31″,
“businessRole”:”Real Estate Agent Ana”,
“text”:”Thank you for your review!”
}

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

Parameter content type: application/json

Response

{
“success”:true
}