Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/similarweb/website-traffic-trend?country=ww&domain=example.com&metrics=visits' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/similarweb/website-traffic-trend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/similarweb/website-traffic-trend"
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-traffic-trend', 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-traffic-trend",
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-traffic-trend"
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-traffic-trend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/similarweb/website-traffic-trend")
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_body{
"data": {
"domain": "<string>",
"metrics": [
"average_visit_duration"
],
"points": [
{
"month": "<string>",
"values": {
"average_visit_duration": 123,
"bounce_rate": 123,
"new_users": 123,
"page_views": 123,
"pages_per_visit": 123,
"returning_users": 123,
"unique_visitors": 123,
"visits": 123
}
}
]
},
"meta": {
"country": "ww",
"end_date": "<string>",
"granularity": "monthly",
"request_id": "<string>",
"retrieved_at": "2023-11-07T05:31:56Z",
"source": "similarweb",
"start_date": "<string>"
}
}Managed Products
Website Traffic Trend
Website Traffic Trend — SimilarWeb
GET
https://api.aisa.one
/
apis
/
v1
/
similarweb
/
website-traffic-trend
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/similarweb/website-traffic-trend?country=ww&domain=example.com&metrics=visits' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/similarweb/website-traffic-trend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/similarweb/website-traffic-trend"
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-traffic-trend', 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-traffic-trend",
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-traffic-trend"
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-traffic-trend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/similarweb/website-traffic-trend")
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_body{
"data": {
"domain": "<string>",
"metrics": [
"average_visit_duration"
],
"points": [
{
"month": "<string>",
"values": {
"average_visit_duration": 123,
"bounce_rate": 123,
"new_users": 123,
"page_views": 123,
"pages_per_visit": 123,
"returning_users": 123,
"unique_visitors": 123,
"visits": 123
}
}
]
},
"meta": {
"country": "ww",
"end_date": "<string>",
"granularity": "monthly",
"request_id": "<string>",
"retrieved_at": "2023-11-07T05:31:56Z",
"source": "similarweb",
"start_date": "<string>"
}
}First time? Point any MCP client at
https://mcp.aisa.one/mcp — Claude
Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
opens a browser, you click Allow once, and there is no key to paste. The
commands per client, and what each call costs, are on
aisa.one/mcp.Cost 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
Request constraints and usage notes
- country supports ww only; default ww.
- Monthly granularity only.
- Total web source and main domain only.
- Defaults to the latest six complete UTC months; maximum range is 12 months.
- Provider usage grows with inclusive months multiplied by unique requested metrics.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Worldwide data only; values are case-insensitive.
Available options:
ww Bare website hostname without scheme, path, port, or credentials.
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.