# Trustpilot Company Search

Search for companies on Trustpilot by name or keyword. Filters are applied after fetch; pagination counts reflect Trustpilot results.

- **Documentation:** [https://scrappa.co/docs/trustpilot-api/trustpilot_company_search](https://scrappa.co/docs/trustpilot-api/trustpilot_company_search)
- **API group:** Trustpilot API
- **Endpoint:** `GET https://scrappa.co/api/trustpilot/company-search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search query |
| `page` | integer | No | Page number (1-999) |
| `country` | string | No | Country code (ISO-2) |
| `min_rating` | string | No | Minimum rating (any, 3, 4, 4.5) |
| `min_review_count` | string | No | Minimum reviews (any, 25, 50, 100, 250, 500) |
| `locale` | string | No | Locale (e.g. en-US, de-DE) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/trustpilot/company-search?query=amazon"
```

## Example response

```json
{
    "businessUnits": []
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The query parameter is required and filters such as page, country, min_rating, min_review_count, and locale must be valid. |
| 402 | Insufficient Credits | Your API key is valid, but the account has no free, subscription, or package credits available. |
| 500 | Trustpilot Service Error | The Trustpilot endpoint could not complete the current scrape attempt. |
| 503 | The upstream service is temporarily unavailable. Please retry shortly. | The upstream service is temporarily unavailable. Please retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
