Yogasleep could be best described as a company specializing in the creation and sale of products designed to improve sleep. It was founded by  Jim Buckwalter, who designed the first sleep machine in order to help his insomniac wife sleep better.

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://yogasleep.com/products/go-travel-sleep-sound-machine"}'

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://yogasleep.com/products/go-travel-sleep-sound-machine",
"dateFrom": "2018-03-10", *
"reviewLimit" : "1" **
}

* "dateFrom" is optional

** "reviewLimit" is optional

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

Parameter content type: application/json

Response

{
"propertyName": "Go™ Travel Sound Machine",
"location": "",
"ratingValue": "4.7",
"ratingCount": "30",
"reviews": [
{
"reviewId": "325885287",
"customer": {
"username": "Kimberly l.",
"location": "",
"level": "",
"authorUrl": "",
"verified": "True",
"helpfulVotes": "0"
},
"title": "Excellent size and love the",
"reviewUrl": "",
"rating": "5.0",
"text": "Excellent size and love the fact no need to have it plugged at night - very happy with it",
"reviewedOn": "2022-01-01",
"photos": [],
"repliedTo": false,
"externalSource": "",
"replies": [],
"followUpReviews": [],
"comments": [],
"selfReview": null,
"commentsCount": null,
"reviewerPhoto": null,
"language": ""
}

Yogasleep_Review