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/plum-tree-inn-15945240?lid=15945240”}’

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/plum-tree-inn-15945240?lid=15945240″,
“datefrom”:”2018-04-08″ *
}

*  “datefrom” is optional

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

Parameter content type: application/json

Response

{
        “propertyName”: “Low Rider Motorworks”,
        “location”: “Los Angeles,CA”,
        “reviews”: [
              {
                       “reviewId”: “5678325”,
                       “customer”: {
                               “username”: “”,
                               “location”: null,
                               “level”: null
                        },
                        “title”: ”  “,
                        “rating”: “5”,
                        “text”: “My car is a blast now, thank you ! “,
                        “reviewedOn”: “2018-04-08”,
                        “photos”: null,
                        “repliedTo”: true,
                        “externalSource”: null,
                        “replies”: [
                                {
                                      “repliedBy”: “Low Riders Support”,
                                      “text”: “We’re glad you’re happy with our service”
                                 }
                               ]
                    }
         ]
}

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”:”Low Rider Motorworks”,
“address”:”E 45th St”,
“phoneNumber”:”555-5555″,
“websiteURL”:”lowridercustomize.me”,
“categories”:”Car service, Customization”
}

Write operations

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

Request

{
“propertyUrl”:”https://www.yellowpages.com/los-angeles-ca/mip/plum-tree-inn-15945240?lid=15945240″,
“reviewId”:”49416187″,
“username”:”lowridersbad”,
“password”:”1234asdf”,
“businessRole”:”Low Riders Support”,
“text”:”Thank you for your review!”
}

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

Parameter content type: application/json

Response

{
“success”:true
}