# Similarweb Website Traffic Trend API

> Usage-based billing; Default request estimate: $0.45 USD (not a fixed price). Declared unit rate: $0.075 USD per similarweb_credit. Account-specific pricing and final settlement may differ.

Source: https://www.sandbase.ai/model/similarweb/website-traffic-trend
API reference: https://www.sandbase.ai/model/similarweb/website-traffic-trend/docs

## Facts

- Provider: Similarweb
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend`
- Price: $0.68 per call
- Capabilities: api, similarweb, web analytics
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `domain` | string | yes |  |
| `country` | string | no | ww |
| `end_date` | string | no |  |
| `metrics` | string | no |  |
| `start_date` | string | no |  |

## FAQ

### How do I use the Similarweb Website Traffic Trend API?

Send a POST request to https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Similarweb Website Traffic Trend API cost?

$0.68 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Similarweb Website Traffic Trend API accept?

Required: domain (string). Optional: country (one of ww), end_date (string), metrics (string) and start_date (string). The Parameters table and the Playground on this page list every field.

### What does the Similarweb Website Traffic Trend API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Similarweb developer account or API key?

No. Similarweb Website Traffic Trend runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Similarweb API access separately.

## README

### Similarweb Website Traffic Trend API

Usage-based billing; Default request estimate: $0.45 USD (not a fixed price). Declared unit rate: $0.075 USD per similarweb_credit. Account-specific pricing and final settlement may differ.

The response is the official Similarweb API response, unchanged.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "similarweb/website-traffic-trend", "domain": "<domain>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `country` | string | No | Worldwide data only; values are case-insensitive. |
| `domain` | string | Yes | Bare website hostname without scheme, path, port, or credentials. |
| `end_date` | string | No | Inclusive last complete UTC month in YYYY-MM. |
| `metrics` | string | No | One to four supported Traffic & Engagement metrics. |
| `start_date` | string | No | Inclusive first month in YYYY-MM; provide together with end_date. |

#### Pricing

Flat price per call. Failed calls are not charged.
