age_bucketstringobrigatório
Select one age bucket; age_bucket must be provided exactly once.
Valores possíveis: 18, 25, 35, 45, 55, 65
https://api.sandbase.ai/v1/api/similarweb/traffic-by-demographics-aggregatedGet the traffic share of one visitor age group on a website for the selected period.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Get the traffic share of one visitor age group on a website for the selected period.
The response is the official Similarweb API response, unchanged.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/traffic-by-demographics-aggregated" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "cnn.com", "start_date": "2026-09", "end_date": "2026-09", "granularity": "monthly", "metrics": "share", "age_bucket": "25"}'
| Name | Type | Required | Description |
|---|---|---|---|
age_bucket | string | Yes | Select one age bucket; age_bucket must be provided exactly once. |
country | string | No | Worldwide data only; values are case-insensitive. |
domain | string | Yes | domain |
end_date | string | Yes | end_date |
format | string | No | format |
granularity | string | Yes | granularity |
main_domain_only | boolean | No | main_domain_only |
metrics | string | Yes | Comma-separated metrics. Supported: share. |
start_date | string | Yes | start_date |
web_source | string | No | web_source |
$0.45 per metric per month between start_date and end_date. 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/traffic-by-demographics-aggregated" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "cnn.com",
"country": "ww",
"metrics": "share",
"end_date": "2026-09",
"age_bucket": "25",
"start_date": "2026-09",
"granularity": "monthly"
}'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.
age_bucketstringobrigatórioSelect one age bucket; age_bucket must be provided exactly once.
Valores possíveis: 18, 25, 35, 45, 55, 65
domainstringobrigatóriodomain
end_datestringobrigatórioend_date
granularitystringobrigatóriogranularity
Valores possíveis: monthly
metricsstringobrigatórioComma-separated metrics. Supported: share.
start_datestringobrigatóriostart_date
countrystringWorldwide data only; values are case-insensitive.
Padrão: "ww"
Valores possíveis: ww
formatstringformat
Valores possíveis: json
main_domain_onlybooleanmain_domain_only
web_sourcestringweb_source
Valores possíveis: total
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 | A partir de $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/traffic-by-demographics-aggregated 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.
A partir de $0.45 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: age_bucket (um de 18, 25, 35, 45, 55, 65), domain (string), end_date (string), granularity (um de monthly), metrics (string) e start_date (string). Opcionais: country (um de ww), format (um de json), main_domain_only (boolean) e web_source (um de total). 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).
Não. Similarweb Demographics - Specific Groups 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.