Resources API
-
Get Trustpilot supported locales
Get a list of all supported Trustpilot locales, including URLs to each localized Trustpilot site.
HTTP method: GET
Authentication: API Key
URL: https://api.trustpilot.com/v1/resources/metadata/locales
Parameters
-
translationLocale, Optional string
Specifies the language in which the 'translatedName' property is returned.
Example: ?translationLocale=en-US
curl -X GET "https://api.trustpilot.com/v1/resources/metadata/locales" \-H "apikey: YOUR-API-KEY-HERE"Response
{"locales": [{"locale": "da-DK","language": "da","region": "DK","countryId": 1,"nativeName": "Dansk","translatedName": "Danish","tld": "dk","consumerWebApp": "http://www.trustpilot.dk/","businessWebApp": "https://da-dk.b2b.trustpilot.com/","legalUrl": "http://legal.trustpilot.dk","commercialUrl": "http://business.trustpilot.dk","aboutTrustpilotUrl": "http://company.trustpilot.dk","supportUrl": "https://support.trustpilot.com","helpCenterUrl": "https://help.trustpilot.com","blog": "http://blog.trustpilot.com","businessSignupUrl": "https://signup.business.trustpilot.com/#/signup?locale=en-US","pressUrl": "https://press.trustpilot.com","investorsUrl": "https://investors.trustpilot.com","jobsUrl": "https://jobs.trustpilot.com","statusPageUrl": "https://status.trustpilot.com","isDefaultForLanguage": true,"isSupportedInBusinessWebApp": false}],"defaultLocale": {"locale": "da-DK","language": "da","region": "DK","countryId": 1,"nativeName": "Dansk","translatedName": "Danish","tld": "dk","consumerWebApp": "http://www.trustpilot.dk/","businessWebApp": "https://da-dk.b2b.trustpilot.com/","legalUrl": "http://legal.trustpilot.dk","commercialUrl": "http://business.trustpilot.dk","aboutTrustpilotUrl": "http://company.trustpilot.dk","supportUrl": "https://support.trustpilot.com","helpCenterUrl": "https://help.trustpilot.com","blog": "http://blog.trustpilot.com","businessSignupUrl": "https://signup.business.trustpilot.com/#/signup?locale=en-US","pressUrl": "https://press.trustpilot.com","investorsUrl": "https://investors.trustpilot.com","jobsUrl": "https://jobs.trustpilot.com","statusPageUrl": "https://status.trustpilot.com","isDefaultForLanguage": true,"isSupportedInBusinessWebApp": false}} -
-
Get all countries known to Trustpilot
Get a list of all countries known to Trustpilot, including the name of the country (in English).
HTTP method: GET
Authentication: API Key
URL: https://api.trustpilot.com/v1/resources/metadata/countries
Parameters
-
locale, Optional string
Specifies the language in which the 'translatedName' property is returned.
Example: ?locale=en-US
curl -X GET "https://api.trustpilot.com/v1/resources/metadata/countries" \-H "apikey: YOUR-API-KEY-HERE"Response
{"countries": [{"countryId": "1","country": "DK","englishName": "Denmark","locale": "da-DK","translatedName": "Danmark"}]} -
-
Contains navigational links to all image resources
Get navigational links to all available image resources.
HTTP method: GET
Authentication: API Key
URL: https://api.trustpilot.com/v1/resources/images
Parameters
No parameters required
curl -X GET "https://api.trustpilot.com/v1/resources/images" \-H "apikey: YOUR-API-KEY-HERE"Response
{"links": [{"href": "<Url for the resource>","method": "<Http method for the resource>","rel": "<Description of the relation>"}]} -
Get the star image resources
Return the available images sizes, including URLs for images. Use this resource to get the Trustpilot stars.
HTTP method: GET
Authentication: API Key
URL: https://api.trustpilot.com/v1/resources/images/stars/{stars}
Parameters
-
stars, Required number
The number of stars to return images for.
Example: .../v1/resources/images/stars/4
curl -X GET "https://api.trustpilot.com/v1/resources/images/stars/{stars}" \-H "apikey: YOUR-API-KEY-HERE"Response
{"star128x24": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"star256x48": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"star512x96": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"starSvg": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"stars": 4} -
-
Get the Trustpilot logo images
Return the available logo sizes, including URLs for images. Use this resource to get the Trustpilot logo.
HTTP method: GET
Authentication: API Key
URL: https://api.trustpilot.com/v1/resources/images/logos
Parameters
No parameters required
curl -X GET "https://api.trustpilot.com/v1/resources/images/logos" \-H "apikey: YOUR-API-KEY-HERE"Response
{"darkBackground": {"logo72x18": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"logo144x36": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"logo288x72": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"logo576x144": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"logoSvg": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"}},"lightBackground": {"logo72x18": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"logo144x36": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"logo288x72": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"logo576x144": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"},"logoSvg": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"}}} -
Get the Trustpilot icon images
Return the available logo sizes, including URLs for images. Use this resource to get the Trustpilot checkbox icon.
HTTP method: GET
Authentication: API Key
URL: https://api.trustpilot.com/v1/resources/images/icons
Parameters
No parameters required
curl -X GET "https://api.trustpilot.com/v1/resources/images/icons" \-H "apikey: YOUR-API-KEY-HERE"Response
{"image230x230": {"url": "//trustpilot.com/image.jpg","width": "400","height": "300"}} -
Get the string representation of the stars
Get the Trustscore as text. For example: Excellent.
HTTP method: GET
Authentication: API Key
URL: https://api.trustpilot.com/v1/resources/strings/stars/{stars}
Parameters
-
stars, Required number
The number of stars to return the text representation for.
Example: .../v1/resources/strings/stars/4
-
locale, Required string
The locale to use for the string.
Example: ?locale=da-DK
curl -X GET "https://api.trustpilot.com/v1/resources/strings/stars/{stars}" \-G \--data-urlencode "locale=da-DK" \-H "apikey: YOUR-API-KEY-HERE"Response
{"locale": "en-US","string": "Good","stars": 4} -