categorystringobligatoire
category
https://api.sandbase.ai/v1/api/similarweb/top-sites-rankingGet the top-ranked websites worldwide or in a category, ordered by traffic rank.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
categorystringobligatoirecategory
limitintegerobligatoirelimit
countrystringWorldwide data only; values are case-insensitive.
Par défaut : "ww"
Valeurs possibles : ww
offsetintegeroffset
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Similarweb Top Sites RankingCette API Similarweb | À partir de $0.075 par appel | JSON |
Similarweb | À partir de $0.225 par appel | JSON |
Similarweb | À partir de $0.375 par appel | JSON |
Similarweb | À partir de $0.15 par appel | JSON |
Similarweb | À partir de $0.525 par appel | JSON |
Similarweb | $0.60 par appel | JSON |
Guides :Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.075 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : category (string) et limit (integer). Facultatif : country (l’un de ww) et offset (integer). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Similarweb Top Sites Ranking fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Similarweb séparément.