domainstringerforderlich
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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
domainstringerforderlichBare website hostname without scheme, path, port, or credentials.
countrystringWorldwide data only; values are case-insensitive.
Standard: "ww"
Mögliche Werte: ww
end_datestringInclusive last complete UTC month in YYYY-MM.
metricsstringOne to four supported Traffic & Engagement metrics.
Standard: "visits"
start_datestringInclusive first month in YYYY-MM; provide together with end_date.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Similarweb Website Traffic TrendDiese API Similarweb | $0.45 pro Aufruf | JSON |
Similarweb | Ab $0.225 pro Aufruf | JSON |
Similarweb | Ab $0.375 pro Aufruf | JSON |
Similarweb | Ab $0.15 pro Aufruf | JSON |
Similarweb | Ab $0.525 pro Aufruf | JSON |
Similarweb | $0.60 pro Aufruf | JSON |
Anleitungen:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
Fragen
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.
$0.45 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
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.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
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.