YP is a media company dedicated to connecting local businesses with a ready-to-buy audience. With more than 60 million visitors each month in the U.S., YP is the original source people use to find and connect with local businesses, from the popular YP app, to yellowpages.com and The Real Yellow Pages®.

For local businesses, YP integrated solutions are designed to help build their presence and expand their reach through a variety of print and digital products. YP has a team of marketing experts in local markets across the U.S. with relationships spanning nearly half a million advertisers.

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.yellowpages.com/los-angeles-ca/mip/chi-dynasty-481114552"}'

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.yellowpages.com/los-angeles-ca/mip/chi-dynasty-481114552",
"dateFrom":"2018-04-08", *
“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": "Chi Dynasty",
    "location": "",
    "ratingValue": null,
    "ratingCount": null,
    "reviews": [
        {
            "reviewId": "ac70a3e9-d9fe-4fbb-bc91-c20873409a5c",
            "customer": {
                "username": "Molli M.",
                "location": null,
                "level": null
            },
            "title": "",
            "rating": "5",
            "text": "We eat here a few times a year. It's moderately fancy Chinese food but the quality is always good. Known for the chicken salad, it's a must order item.",
            "reviewedOn": "2016-08-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.yellowpages.com/los-angeles-ca/mip/plum-tree-inn-15945240?lid=15945240"
}

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

Parameter content type: application/json

Response

{
    "valid": true,
    "title": "Plum Tree Inn� Add to Favorites",
    "address": "",
    "phoneNumber": "",
    "websiteURL": "http://www.plumtreeinn.com",
    "categories": "Chinese Restaurants, Asian Restaurants, Caterers, Family Style Restaurants, Restaurants",
    "description": null,
    "reviewCount": 10,
    "rating": 4.0,
    "openingHours": null,
    "specialities": null
}