Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated?age_bucket=18&country=ww&domain=cnn.com&end_date=2026-09&granularity=monthly&metrics=share&start_date=2026-09' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodySimilarWeb
Demographics - Specific Groups
GET
https://api.aisa.one
/
apis
/
v1
/
similarweb
/
website-analysis
/
websites
/
traffic-by-demographics
/
aggregated
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated?age_bucket=18&country=ww&domain=cnn.com&end_date=2026-09&granularity=monthly&metrics=share&start_date=2026-09' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/similarweb/website-analysis/websites/traffic-by-demographics/aggregated")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyCost and request rules
Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.45
- Declared unit rate (USD): 0.075
- Billing unit: similarweb_credit
- Cost contract: plan_units
- Published reference multiplier: 1.0
- Settlement evidence source: request_snapshot
Declared request billing units
- Units: (metrics × periods) × 6
- metrics: Number of entries in query.metrics, including repeated entries.
- periods: Inclusive periods from query.start_date to query.end_date; granularity: query.granularity. Daily: inclusive days; weekly: inclusive days / 7 rounded up; monthly: inclusive calendar months.
- Allowed granularities: [“monthly”]
- Minimum: 1
- Maximum: 1
Request constraints and usage notes
- country supports ww only; default ww. State-level filtering is not supported.
- Select one age bucket; age_bucket must be provided exactly once.
- The reference example uses the documented v5 metric share. Metric values are comma-separated. Source: https://docs.similarweb.com/api-v5/api-reference/website-analysis-api/website-audience/demographics-specific-groups
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Select one age bucket; age_bucket must be provided exactly once.
Available options:
18, 25, 35, 45, 55, 65 Worldwide data only; values are case-insensitive.
Available options:
ww Required string length:
1 - 2048Available options:
json Available options:
monthly The reference example uses the documented v5 metric share. Metric values are comma-separated.
Available options:
total Response
Successful response