# SiteTraffic

> A website's traffic estimate: monthly visits, global and category rank, engagement, top countries, traffic sources, keywords, similar sites and audience.

Canonical page: https://okdata.online/docs/objects/site_traffic/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `id` | string | The domain. |
| `url` | string \| null | The site's page on the analytics platform. |
| `category` | string \| null | The site's category, in the platform's words. |
| `global_rank` | integer \| null | Rank among all sites worldwide. |
| `country_rank` | integer \| null | Rank in its top country. |
| `category_rank` | integer \| null | Rank in its category. |
| `monthly_visits` | integer \| null | Estimated visits in the month of snapshot_date. |
| `bounce_rate` | number \| null | Share of visits that leave after one page, 0 to 1. |
| `pages_per_visit` | number \| null | Pages seen per visit. |
| `avg_visit_seconds` | integer \| null | Average visit length in seconds. |
| `top_countries` | object \| null | Share of visits by country (ISO code), 0 to 1, largest first. |
| `traffic_sources` | object \| null | Share of visits by source (direct, search, social, referrals, mail, paid), as given. |
| `top_keywords` | string[] \| null | Search keywords that bring visits, largest first. |
| `competitors` | string[] \| null | Similar sites, by domain. |
| `audience` | object \| null | Visitors by gender and age, and the sites, topics and categories they also visit; null outside the audience endpoint. |
| `snapshot_date` | string \| null | The month the estimate is for (ISO date). |
| `ext` | object | プラットフォーム固有の追加情報。view=full の場合のみ返されます。 |

## Endpoints that return a SiteTraffic

- [Website traffic](https://okdata.online/apis/similarweb/sites/get/) (`similarweb.sites.get`): $0.003 per call
- [Website audience](https://okdata.online/apis/similarweb/sites/audience/get/) (`similarweb.sites.audience.get`): $0.003 per call
- [Similar websites](https://okdata.online/apis/similarweb/sites/competitors/list/) (`similarweb.sites.competitors.list`): $0.003 per call · about 20 results per page

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `id`, `url`, `category`, `global_rank`, `monthly_visits`, `snapshot_date`
- standard: `country_rank`, `category_rank`, `bounce_rate`, `pages_per_visit`, `avg_visit_seconds`, `top_countries`, `traffic_sources`, `top_keywords`, `competitors`, `audience`
- full: `ext`
