categorystring必須
category
https://api.sandbase.ai/v1/api/similarweb/top-sites-rankingGet the top-ranked websites worldwide or in a category, ordered by traffic rank.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns a list of the top-ranked websites worldwide, ordered by traffic rank. It needs a category (for example all) and a limit of 1 to 20 rows.
offset.curl -X POST "https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"category": "all", "country": "ww", "limit": 3}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
category | string | Yes | category |
limit | integer | Yes | limit |
country | string | No | Worldwide data only; values are case-insensitive. |
offset | integer | No | offset |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"domain": "google.com",
"rank": 1
}
],
"meta": {
"last_updated": "2026-09-30",
"query": {
"asc": null,
"limit": 3,
"offset": 0,
"sort": null
},
"request": {
"category": "all",
"channel": "total",
"country": "ww",
"end_date": "2026-09-30",
"format": "json",
"granularity": "monthly",
"start_date": "2026-07-01",
"web_source": "total"
},
"status": "success"
}
}
| Field | Meaning |
|---|---|
data[] | One ranked website. The list is ordered by rank. |
data[].domain | Domain name of the ranked website, such as google.com. |
data[].rank | Traffic rank of the domain. 1 is the top site. |
meta.last_updated | Date of the ranking data, in YYYY-MM-DD format. |
meta.query.limit / meta.query.offset | The page size and starting position applied to this call. |
meta.request.category | Category the ranking was built for. all means no category filter. |
meta.request.country | Country scope of the ranking. ww means worldwide. |
meta.request.start_date / meta.request.end_date | Date range the ranking covers, in YYYY-MM-DD format. |
meta.request.granularity | Time grain of the data. The sample shows monthly. |
meta.status | Result of the call. success means the request worked. |
offset with limit to page through the list. limit accepts 1 to 20 and offset accepts 0 to 100000.country accepts only ww (worldwide), and the value is case-insensitive.Billed at the actual cost of each call, about $0.075 for the request above. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 3,
"country": "ww",
"category": "all"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
categorystring必須category
limitinteger必須limit
countrystringWorldwide data only; values are case-insensitive.
デフォルト: "ww"
指定可能な値: ww
offsetintegeroffset
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Similarweb | 1回あたり $0.075 から | JSON |
Similarweb | 1回あたり $0.225 から | JSON |
Similarweb | 1回あたり $0.375 から | JSON |
Similarweb | 1回あたり $0.15 から | JSON |
Similarweb | 1回あたり $0.525 から | JSON |
Similarweb | $0.60 / 回 | JSON |
ガイド:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.075 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: category (string) と limit (integer)。 任意: country(ww のいずれか) と offset (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Similarweb Top Sites Ranking は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Similarweb の API アクセスを別途申請する必要はありません。