How to get and use Trustpilot API Key: examples, pricing, integration

What is Trustpilot API?

This is a programming interface allowing easy fetch of Trustpilot for the purpose of building a custom integration with a website or app. You can use it only if your business adheres to Trustpilot brand guidelines.

How to get Trustpilot API key

  • Step 1 – Create an account

    Go to Trustpilot Business platform and create a new account for your business or log in with your existing one:

    Trustpilot business platform
    You’re going to have to fill in the form with your business name, website, email, and phone number. Don’t forget to choose your country.
  • Step 2 – Go to the Developers Section

    In your Trustpilot Business account, navigate to Integrations > Developers and click APIs.

    Trustpilot developers section
  • Step 3 – Create your application

    You will go to the Trustpilot APIs page. In the Create a new application section, enter your application’s name and the domains you want redirect URLs for. Press ‘Create application’.

    Create Trustpilot App
    Separate multiple domains with a new line.
  • Step 3 – Get the API key

    Scroll the page down to Your applications section and find there the one you’ve just created. Click the arrow on the right side of the bar to see your credentials in the drop-down section.

    Trustpilot application details

    You can see your Trustpilot API key and secret here. To view them, press the eye icon in the respective field. You can also copy them by clicking on the duplicate icon nearby.

    Trustpilot API key and secret

Trustpilot API examples

The Trustpilot Public API provides access to the content available publicly on the platform. The Customer API, in its turn – to features Trustpilot Business unit features available to merchants using Trustpilot. Business unit is the collection point for all the content. It hosts the company’s rating, reviews, and responses. Each business unit has a unique ID, which is used throughout the APIs.

Trustpilot Reviews API

Business Units API method shows all the reviews written about the business unit. Its parameters allow sorting the order of reviews by creation date, stars, the language they were written on, and more.

Submit Review Trustpilot API

Trustpilot Invitation API solution enables business owners to ask their customers for reviews easily. This kind of API is used to generate links, which then can be sent to the respective users. These URLs are used to invite customers to leave their reviews for a certain product or service. The invitation links are distributed via emails, so you must possess a database of customers credentials.

Trustpilot API Stars

Different kinds of Trustpilot APIs allow displaying the average stars rating for companies and products. You can filter the reviews for a business by the ones with a specific number of stars.Product Reviews API gives an opportunity to display products’ review summaries. They contain information about stars average, distribution and count.

Trustpilot API integration

The Trustpilot content can be integrated with any cms or site builder. There are several possible options to make it. The first one is integration of API keys and access tokens into the code of a website or use them to create your own custom widget. The second is to add a Trustpilot made widget to your website. Or, if you don’t want to dive into technical terms, you can use third-party solutions.

  1. Independent Solutions

    The easiest and most timesaving method to integrate your Trustpilot business profile data smoothly and steadily is by the means third party plugins. Like, for example, of highly customizable Elfsight solutions. These ready-to-use widgets give you the opportunity to display your reviews, rating and user information in one responsive unit. You can add a CTA button to encourage people to leave their reviews!

  2. Custom Integrations

    With a Trustpilot API you can build your own integration or widget that displays your service review data. This way you have the opportunity to create your own custom application that suits your needs perfectly. But, on the other side, you have to be a programmer or possess some coding skills to be able to make it.

    For almost any integration, the first thing you have to do is to get your Business Unit ID. This is an individual key to your domain. You collect the reviews for multiple domains, and each one of them will have its own Business Unit ID.

    The Public API does not require authentication, as you simply need to pass your API key for each request. This key must be added to all calls:

    either as a query parameter, i.e.: ?apikey={key}or an HTTP header, i.e.: apikey:{key}

    The Customer API solutions contain private resources and require OAuth 2.0 authentication. If you would like to access private resources, you will need an access token. To create an access token, you need to create a new application first with API key and API secret. The process is described above.

  3. TrustBox widgets

    While each of these stand-alone solutions has a lot of layouts and functionalities, they have limited content displaying options. For example, you have to create and add several widgets from Trustpilot, if you want to have different content categories displayed. You can show your favorite reviews in one TrustBox, latest reviews in another, and your star rating in the third one.

    You’ve got four options to choose from:

    Review type Description Text shown in the header
    Latest reviews Displays reviews in reverse chronological order, starting from your latest review Showing our latest reviews
    Reviews by star rating Displays the star ratings that you select. For example, all 3-, 4-, and 5-star reviews. Showing our 3, 4, & 5 star reviews
    Favorite reviews Manually select your favorite reviews to display in the TrustBox Showing our favorite reviews
    Reviews by tag Select tagged reviews to target a specific audience. You can select one tag per TrustBox. Showing our favorite reviews

Trustpilot API pricing and limits

There’s no specified Trustpilot API costs, but these solutions are available only to the paid members of Trustpilot Business platform. The company doesn’t disclose a comprehensive Trustpilot API pricing data, because it aims to create tailored packages according to specific needs of every customer.

The Standard plan pricing begins from $199 goes up for each additional module added by the customer.

Although the Trustpilot team does not publish their rate limiting policy, there’s a note that there exist certain limits to the usage of their APIs. Also, keep in mind that to use Trustpilot APIs you have to comply with the company requirements. Trustpilot reserves the right to cancel your API access in the case you violate the guidelines. They touch upon the content displaying aspects, SEO principles, and branding policies. You can read more about these here.

Trustpilot API documentation

The developers section for developers can be accessed from a Trustpilot Business user profile backend under Integrations tab in the side menu. There’s also a wide API documentation portal for developers describing all the existing Trustpilot API codes and queries.

7. FAQ

What is my Business Unit and where to find it?

The Business Unit ID is a special key of your domain. To find out your unique Business Unit ID, use the Find Business Unit API link.

What is the maximum accepted length of access token and refresh token?

The maximum length of access_token and refresh_token is 32 characters.

Invalid redirect URL appears on the Trustpilot login page when I try to authenticate

This could happen for the following reasons:1. Your redirect URL has to be https, but you can test locally with http://localhost2. Before receiving the API key, you have provided us with redirect URL domains which we configure as the allowed.

An error message: Something went wrong appears while I try to Create New Invitation API

Review the Content Type of your Post query. Trustpilot API currently supports JSON as request and response formats. Most likely this error appears because your request has some other data format.

The post How to get and use Trustpilot API Key: examples, pricing, integration appeared first on Elfsight.

Read More Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

Generated by Feedzy