Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/similarweb/website/top-sites-ranking?category=Finance&country=ww&limit=1' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/similarweb/website/top-sites-ranking \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/similarweb/website/top-sites-ranking"
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/top-sites-ranking', 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/top-sites-ranking",
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/top-sites-ranking"
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/top-sites-ranking")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/similarweb/website/top-sites-ranking")
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>",
"rank": 123
}
],
"meta": {
"status": "success",
"last_updated": "2026-06-30",
"query": {},
"request": {}
}
}排名
Top Sites Ranking
<!-- aisa-pricing:start -->
按用量计费;默认请求预估费用:$0.075 USD(不是固定价格)。 声明的单位费率:每 similarweb_credit $0.075 USD。 最终费用以账户适用价格及实际结算为准。
<!-- aisa-pricing:end -->
GET
https://api.aisa.one
/
apis
/
v1
/
similarweb
/
website
/
top-sites-ranking
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/similarweb/website/top-sites-ranking?category=Finance&country=ww&limit=1' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/similarweb/website/top-sites-ranking \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/similarweb/website/top-sites-ranking"
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/top-sites-ranking', 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/top-sites-ranking",
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/top-sites-ranking"
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/top-sites-ranking")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/similarweb/website/top-sites-ranking")
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>",
"rank": 123
}
],
"meta": {
"status": "success",
"last_updated": "2026-06-30",
"query": {},
"request": {}
}
}请求规范
- 方法与路径: GET /apis/v1/similarweb/website/top-sites-ranking
- 可用状态: enabled
- 请求 URL 模板: https://api.aisa.one/apis/v1/similarweb/website/top-sites-ranking
- category: query; 必填
- country: query; 可选
- limit: query; 必填
- offset: query; 可选
- Runtime 事实版本: 472d1bfda50ffcb36fea4b8745e9822da1d9f0225a1e0e220b661005b2d4b7b2
{
"operationId": "get_similarweb_top_sites_ranking",
"method": "GET",
"path": "/apis/v1/similarweb/website/top-sites-ranking",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"examples": {
"default": {
"value": "Finance"
},
"minimal": {
"value": "Finance"
}
},
"in": "query",
"name": "category",
"required": true,
"schema": {
"maxLength": 191,
"minLength": 1,
"type": "string"
}
},
{
"examples": {
"default": {
"value": "ww"
},
"minimal": {
"value": "ww"
}
},
"in": "query",
"name": "country",
"required": false,
"schema": {
"default": "ww",
"description": "Worldwide data only; values are case-insensitive.",
"enum": [
"ww"
],
"type": "string"
}
},
{
"examples": {
"default": {
"value": 1
},
"minimal": {
"value": 1
}
},
"in": "query",
"name": "limit",
"required": true,
"schema": {
"maximum": 20,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "offset",
"required": false,
"schema": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "response_count",
"customer_multiplier": 1.0,
"customer_pricing": "provider_cost_multiplier",
"default_request_estimate_usd": 0.075,
"estimate_source": "profile_seed",
"evidence_source": "response_body",
"maximum_units": 20,
"reserve_plan_units": {
"input": "limit",
"input_multiplier": 1
},
"unit": "similarweb_credit",
"unit_rate_usd": 0.075
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按用量计费;默认请求预估费用:$0.075 USD(不是固定价格)。 声明的单位费率:每 similarweb_credit $0.075 USD。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。- 默认请求参考估价(USD): 0.075
- 声明的单位费率(USD): 0.075
- 计费单位: similarweb_credit
- 计费依据: response_count
- 公开参考倍率: 1.0
- 声明的最大计数或单位数: 20
- 结算证据来源: response_body
预留单位(不是结算用量)
- 单位数: (limit) × 1
- 公开请求参数: limit
请求约束与用量说明
- country 仅支持 ww,默认值为 ww;不支持州级筛选。
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
查询参数
Required string length:
1 - 191Worldwide data only; values are case-insensitive.
可用选项:
ww 必填范围:
1 <= x <= 20必填范围:
0 <= x <= 100000