# SimilarWeb Traffic

Get website traffic analytics, rankings, and engagement metrics for any domain.

- **Documentation:** [https://scrappa.co/docs/similarweb-api/similarweb](https://scrappa.co/docs/similarweb-api/similarweb)
- **API group:** SimilarWeb API
- **Endpoint:** `GET https://scrappa.co/api/similarweb`

## 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 |
| --- | --- | --- | --- |
| `domain` | string | Yes | The domain to analyze. Protocols and www prefixes are stripped automatically. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/similarweb?domain=google.com"
```

## Example response

```json
{
    "domain": "google.com",
    "site_name": "google.com",
    "title": "Google",
    "category": "computers_electronics_and_technology/search_engines",
    "global_rank": {
        "Rank": 1
    },
    "country_rank": {
        "Country": 840,
        "CountryCode": "US",
        "Rank": 1
    },
    "engagement": {
        "visits": "84172772881",
        "time_on_site": "592.7030576468261",
        "page_per_visit": "8.358154686471503",
        "bounce_rate": "0.28502974800803477",
        "month": "12",
        "year": "2025"
    }
}
```

## 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)
