Trustpilot Countries

Get all available Trustpilot countries with their country codes and names. This is a free endpoint that returns a structured list of all supported countries on Trustpilot.

Endpoint

GET /api/trustpilot_countries

Request Examples


$url = "http://scrappa.test/api/trustpilot/countries";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Accept: application/json"
]);

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

$data = json_decode($response, true);
print_r($data);
curl -X GET "http://scrappa.test/api/trustpilot/countries" -H "Accept: application/json"

Response Schema

{
    "data": {
        "countries": [
            {
                "countryCode": "DK",
                "countryName": "Denmark"
            },
            {
                "countryCode": "IT",
                "countryName": "Italy"
            },
            {
                "countryCode": "ES",
                "countryName": "Spain"
            },
            {
                "countryCode": "US",
                "countryName": "United States"
            },
            {
                "countryCode": "GB",
                "countryName": "United Kingdom"
            }
        ],
        "total_countries": 242
    },
    "message": "Trustpilot countries retrieved successfully",
    "success": true
}

Try It Live

Test this endpoint in our interactive playground with real data.

Open in Playground