Yelp.com, is a crowd-sourced local business review and social networking site. Its user community is primarily active in major metropolitan areas. The site has pages devoted to individual locations, such as restaurants or schools, where Yelp users can submit a review of their products or services using a one to five star rating system. Businesses can also update contact information, hours and other basic listing information or add special deals. In addition to writing reviews, users can react to reviews, plan events or discuss their personal lives

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.yelp.com/biz/the-eleanor-dc-washington?osq=Bars”}’

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.yelp.com/biz/the-eleanor-dc-washington?osq=Bars”,
“datefrom”:”2018-05-13″ *
}

*  “datefrom” is optional

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

Parameter content type: application/json

Response

{
        “propertyName”: “Grazie Pizza”,
        “location”: “Manhattan, NYC”,
        “reviews”: [
              {
                       “reviewId”: “4524325”,
                       “customer”: {
                               “username”: “”,
                               “location”: null,
                               “level”: null
                        },
                        “title”: ”  “,
                        “rating”: “5”,
                        “text”: “Pizza was very tasty”,
                        “reviewedOn”: “2018-05-13”,
                        “photos”: null,
                        “repliedTo”: true,
                        “externalSource”: null,
                        “replies”: [
                                {
                                      “repliedBy”: “Chef Luigi”,
                                      “text”: “Thank you!”
                                 }
                                        ]
                              }
              ]
}

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.yelp.com/biz/the-eleanor-dc-washington?osq=Bars”
}

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

Parameter content type: application/json

Response

{
“valid”:true,
“title”:”Grazie Pizza Restaurant”,
“address”:”W 48th St”,
“phoneNumber”:”555-5555″,
“websiteURL”:”graziepizzanyc.com”,
“categories”:”Restaurant, Pizza, Italian food, Traditional”
}

Write operations

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

Request

{
“propertyUrl”:”https://www.yelp.com/biz/the-eleanor-dc-washington?osq=Bars

“,
“reviewId”:”49416187″,
“username”:”coolreviewer”,
“password”:”1dfe59d”,
“businessRole”:”Chef Luigi”,
“text”:”Thank you for review!”
}

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

Parameter content type: application/json

Response

{
“success”:true
}