Trustpilot.com is a Danish consumer review website that hosts reviews of businesses worldwide, while also offering freemium services to businesses. Reportedly, nearly 1 million new reviews are posted each month.  Trustpilot has offices in New York, Denver, London, Copenhagen, Vilnius, Berlin and Melbourne, and employs more than 700 people.

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.trustpilot.com/review/hotelrunner.com"}'

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.trustpilot.com/review/hotelrunner.com",
"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": "HotelRunner",
    "location": null,
    "ratingValue": "4.8",
    "ratingCount": "82",
    "reviews": [
        {
            "reviewId": null,
            "customer": {
                "username": "Marjon Smits",
                "location": "TN",
                "level": null
            },
            "title": "Using Hotelrunner for 2 years now.",
            "rating": "5",
            "text": "During the past 2 years, the team from Hotelrunner was always
 available in their friendly and efficient manner to assist and resolve any
 issues. Easy to use.",
            "reviewedOn": "2022-01-22",
            "photos": null,
            "repliedTo": false,
            "externalSource": null,
            "replies": [],
            "followUpReviews": null,
            "comments": null,
            "selfReview": null,
            "commentsCount": null,
            "reviewerPhoto": null
        }
    ]
}
trustpilot final