domainstringobbligatorio
Bare website hostname without scheme, path, port, or credentials.
https://api.sandbase.ai/v1/api/similarweb/website-traffic-trendGet a website's monthly traffic trend for chosen metrics over a date range.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Returns a month-by-month series of traffic metrics for one website, such as visits. It needs a bare domain and can take a month range and up to four metrics.
visits for a news site over the past year to spot seasonal peaks.curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "cnn.com", "metrics": "visits", "start_date": "2026-09", "end_date": "2026-09"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | Bare website hostname without scheme, path, port, or credentials. |
country | string | No | Worldwide data only; values are case-insensitive. |
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. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"domain": "cnn.com",
"metrics": [
"visits"
],
"points": [
{
"month": "2026-09",
"values": {
"visits": 188658557.46746868
}
}
]
},
"meta": {
"country": "ww",
"end_date": "2026-09",
"granularity": "monthly",
"request_id": "imc_91aa25a81e679d4b7772b913a288205efd08f83d9fb1f33e22cd849fd23f7b4e",
"retrieved_at": "2026-11-03T07:43:23.747988977Z",
"source": "similarweb",
"start_date": "2026-09"
}
}
| Field | Meaning |
|---|---|
data.domain | The website the series describes, echoed from the request. |
data.metrics | List of the metrics included in the response, for example visits. |
data.points[].month | The month for this data point, in YYYY-MM format. |
data.points[].values.visits | The value of the visits metric for that month. The response shows it as a decimal number, so round it before display. Other requested metrics appear as sibling keys under values. |
meta.country | The region the data covers. The response shows ww. |
meta.start_date / meta.end_date | The first and last month of the range the response covers. |
meta.granularity | Time step between points. The response shows monthly. |
meta.retrieved_at | UTC timestamp of when the data was fetched. |
start_date and end_date together, both in YYYY-MM format. end_date must be a complete UTC month.domain as a bare hostname such as cnn.com, with no scheme, path or port.metrics takes one to four values in a single string. It defaults to visits.$0.45 per successful call. Failed calls are not charged.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "cnn.com",
"country": "ww",
"metrics": "visits",
"end_date": "2026-09",
"start_date": "2026-09"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
domainstringobbligatorioBare website hostname without scheme, path, port, or credentials.
countrystringWorldwide data only; values are case-insensitive.
Predefinito: "ww"
Valori possibili: ww
end_datestringInclusive last complete UTC month in YYYY-MM.
metricsstringOne to four supported Traffic & Engagement metrics.
Predefinito: "visits"
start_datestringInclusive first month in YYYY-MM; provide together with end_date.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Similarweb Website Traffic TrendQuesta API Similarweb | $0.45 per chiamata | JSON |
Similarweb | Da $0.225 per chiamata | JSON |
Similarweb | Da $0.375 per chiamata | JSON |
Similarweb | Da $0.15 per chiamata | JSON |
Similarweb | Da $0.525 per chiamata | JSON |
Similarweb | $0.60 per chiamata | JSON |
Guide:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.45 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: domain (string). Facoltativi: country (uno tra ww), end_date (string), metrics (string) e start_date (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Similarweb Website Traffic Trend funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Similarweb.