# Similarweb Top Sites Ranking API

> Get the top-ranked websites worldwide or in a category, ordered by traffic rank.

Source: https://www.sandbase.ai/apis/similarweb/top-sites-ranking
API reference: https://www.sandbase.ai/apis/similarweb/top-sites-ranking/docs

## Facts

- Provider: Similarweb
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking`
- Price: From $0.07 per call
- Capabilities: api, similarweb, web analytics
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `category` | string | yes |  |
| `limit` | integer | yes |  |
| `country` | string | no | ww |
| `offset` | integer | no |  |

## FAQ

### How do I use the Similarweb Top Sites Ranking API?

Send a POST request to https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Similarweb Top Sites Ranking API cost?

From $0.07 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Similarweb Top Sites Ranking API accept?

Required: category (string) and limit (integer). Optional: country (one of ww) and offset (integer). The Parameters table and the Playground on this page list every field.

### What does the Similarweb Top Sites Ranking API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Similarweb developer account or API key?

No. Similarweb Top Sites Ranking runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Similarweb API access separately.

## README

### Similarweb Top Sites Ranking API

Get the top-ranked websites worldwide or in a category, ordered by traffic rank.

The response is the official Similarweb API response, unchanged.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "similarweb/top-sites-ranking", "category": "all", "country": "ww", "limit": 3}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `category` | string | Yes | category |
| `country` | string | No | Worldwide data only; values are case-insensitive. |
| `limit` | integer | Yes | limit |
| `offset` | integer | No | offset |

#### Pricing

$0.075 per returned row (1 Similarweb credit), up to 20 rows; billed on rows returned. Failed calls are not charged.
