Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Similarweb Website Traffic Trend

Documentación de la 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.

Precio
$0.45USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 4 opcionales

Entorno de pruebas

Entrada
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.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Similarweb$0.45 por llamadaJSON
SimilarwebDesde $0.225 por llamadaJSON
SimilarwebDesde $0.375 por llamadaJSON
SimilarwebDesde $0.15 por llamadaJSON
SimilarwebDesde $0.525 por llamadaJSON
Similarweb$0.60 por llamadaJSON

Guías:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices

Preguntas

FAQ

¿Cómo uso la API de Similarweb Website Traffic Trend?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Similarweb Website Traffic Trend?

$0.45 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Similarweb Website Traffic Trend?

Requeridos: domain (string). Opcionales: country (una de ww), end_date (string), metrics (string) y start_date (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Similarweb Website Traffic Trend?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Similarweb?

No. Similarweb Website Traffic Trend funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Similarweb por separado.