domainstringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
domainstringobrigatórioBare website hostname without scheme, path, port, or credentials.
countrystringWorldwide data only; values are case-insensitive.
Padrão: "ww"
Valores possíveis: ww
end_datestringInclusive last complete UTC month in YYYY-MM.
metricsstringOne to four supported Traffic & Engagement metrics.
Padrão: "visits"
start_datestringInclusive first month in YYYY-MM; provide together with end_date.
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Similarweb Website Traffic TrendEsta API Similarweb | $0.45 por chamada | JSON |
Similarweb | A partir de $0.225 por chamada | JSON |
Similarweb | A partir de $0.375 por chamada | JSON |
Similarweb | A partir de $0.15 por chamada | JSON |
Similarweb | A partir de $0.525 por chamada | JSON |
Similarweb | $0.60 por chamada | JSON |
Guias:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.45 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: domain (string). Opcionais: country (um de ww), end_date (string), metrics (string) e start_date (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Similarweb Website Traffic Trend funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Similarweb separadamente.