Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Similarweb Website Traffic Trend

Documentazione API
https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend

Get a website's monthly traffic trend for chosen metrics over a date range.

Prezzo
$0.45USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 4 opzionali

Playground

Input
Bare website hostname without scheme, path, port, or credentials.
Worldwide data only; values are case-insensitive.
Inclusive last complete UTC month in YYYY-MM.
One to four supported Traffic & Engagement metrics.
Inclusive first month in YYYY-MM; provide together with end_date.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

Similarweb Website Traffic Trend API

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.

Use cases

  • Chart monthly visits for a news site over the past year to spot seasonal peaks.
  • Compare the monthly traffic of a competitor domain against your own by calling the API once per domain.
  • Track how a site's traffic changes after a redesign or a big news event.
  • Pull several metrics for the same months to build a traffic report for a client.

Request

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.

Parameters

NameTypeRequiredDescription
domainstringYesBare website hostname without scheme, path, port, or credentials.
countrystringNoWorldwide data only; values are case-insensitive.
end_datestringNoInclusive last complete UTC month in YYYY-MM.
metricsstringNoOne to four supported Traffic & Engagement metrics.
start_datestringNoInclusive first month in YYYY-MM; provide together with end_date.

Example response

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"
  }
}

Response fields

FieldMeaning
data.domainThe website the series describes, echoed from the request.
data.metricsList of the metrics included in the response, for example visits.
data.points[].monthThe month for this data point, in YYYY-MM format.
data.points[].values.visitsThe 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.countryThe region the data covers. The response shows ww.
meta.start_date / meta.end_dateThe first and last month of the range the response covers.
meta.granularityTime step between points. The response shows monthly.
meta.retrieved_atUTC timestamp of when the data was fetched.

Notes

  • Send start_date and end_date together, both in YYYY-MM format. end_date must be a complete UTC month.
  • Pass 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.
  • For a single-period view, see Similarweb Website Traffic Snapshot. For more engagement metrics, see Similarweb Traffic & Engagement.

Pricing

$0.45 per successful call. Failed calls are not charged.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Similarweb$0.45 per chiamataJSON
SimilarwebDa $0.225 per chiamataJSON
SimilarwebDa $0.375 per chiamataJSON
SimilarwebDa $0.15 per chiamataJSON
SimilarwebDa $0.525 per chiamataJSON
Similarweb$0.60 per chiamataJSON

Guide:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices

Domande

FAQ

Come uso l'API Similarweb Website Traffic Trend?

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.

Quanto costa l'API Similarweb Website Traffic Trend?

$0.45 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Similarweb Website Traffic Trend?

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.

Cosa restituisce l'API Similarweb Website Traffic Trend?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Similarweb?

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.