Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Similarweb Website Traffic Trend

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

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

Preis
$0.45USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 4 optional

Playground

Eingabe
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.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Similarweb$0.45 pro AufrufJSON
SimilarwebAb $0.225 pro AufrufJSON
SimilarwebAb $0.375 pro AufrufJSON
SimilarwebAb $0.15 pro AufrufJSON
SimilarwebAb $0.525 pro AufrufJSON
Similarweb$0.60 pro AufrufJSON

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

Fragen

FAQ

Wie verwende ich die Similarweb Website Traffic Trend API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Similarweb Website Traffic Trend API?

$0.45 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Similarweb Website Traffic Trend API?

Erforderlich: domain (string). Optional: country (eines von ww), end_date (string), metrics (string) und start_date (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Similarweb Website Traffic Trend API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Similarweb-Entwicklerkonto oder einen API-Schlüssel?

Nein. Similarweb Website Traffic Trend läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Similarweb API beantragen.