Trustpilot Company Details

Get detailed company information from Trustpilot including ratings, reviews, contact information, and business data. This endpoint scrapes the company's Trustpilot profile page to extract comprehensive business details.

Endpoint

GET /api/trustpilot_company_details

Parameters

company_domain string Required

The domain of the company for which to get details (e.g., gossby.com, bestbuy.com)

locale string Optional

Locale code to use. Corresponds to the country selector on the Trustpilot website footer (default: en-US)

Request Examples

<?php
$url = "http://scrappa.test/api/trustpilot/company-details";
$data = [
    "company_domain" => "gossby.com",
    "locale" => "en-US"
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . "?" . http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Accept: application/json",
    "X-API-KEY: your-api-key-here"
]);

$response = curl_exec($ch);
curl_close($ch);

$companyDetails = json_decode($response, true);
print_r($companyDetails);
const url = "http://scrappa.test/api/trustpilot/company-details";
const params = new URLSearchParams({
    company_domain: "gossby.com",
    locale: "en-US"
});

fetch(`${url}?${params}`, {
    method: "GET",
    headers: {
        "Accept": "application/json",
        "X-API-KEY": "your-api-key-here"
    }
})
.then(response => response.json())
.then(data => {
    console.log(data);
})
.catch(error => {
    console.error("Error:", error);
});
import requests
import json

url = "http://scrappa.test/api/trustpilot/company-details"

params = {
    "company_domain": "gossby.com",
    "locale": "en-US"
}

headers = {
    "Accept": "application/json",
    "X-API-KEY": "your-api-key-here"
}

response = requests.get(url, params=params, headers=headers)
data = response.json()

print(json.dumps(data, indent=2))
curl -X GET "http://scrappa.test/api/trustpilot/company-details?company_domain=gossby.com&locale=en-US" \
  -H "Accept: application/json" \
  -H "X-API-KEY: your-api-key-here"

Response Schema

{
    "data": {
        "props": {
            "pageProps": {
                "seoData": {
                    "title": "Gossby Reviews | Read Customer Service Reviews of gossby.com",
                    "description": "Do you agree with Gossby's TrustScore? Voice your opinion today and hear what customers have already said."
                },
                "businessUnit": {
                    "claimed": true,
                    "contact": {
                        "email": "[email protected]",
                        "phone": "+1-234-567-8900",
                        "website": "https://gossby.com"
                    },
                    "location": {
                        "address": {
                            "city": "New York",
                            "state": "NY",
                            "street": "123 Business Ave",
                            "zipCode": "10001"
                        },
                        "country": "US"
                    },
                    "verified": true,
                    "categories": [
                        {
                            "categoryId": "retail_fashion",
                            "displayName": "Retail & Fashion"
                        }
                    ],
                    "trustScore": 4.2,
                    "displayName": "Gossby",
                    "identifyingName": "gossby.com",
                    "numberOfReviews": 1542
                }
            }
        }
    },
    "meta": {
        "locale": "en-US",
        "source_url": "https://www.trustpilot.com/review/gossby.com",
        "company_domain": "gossby.com"
    },
    "message": "Trustpilot company details retrieved successfully",
    "success": true
}

Try It Live

Test this endpoint in our interactive playground with real data.

Open in Playground