# SimilarWeb 关键词搜索 API (similarweb.search)

- Canonical page: [https://everyinfra.com/similarweb-api/search](https://everyinfra.com/similarweb-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "similarweb", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=similarweb&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 待分析的网站域名，例如 example.com；即使 action 名为 search，也不是全网关键词搜索。search 返回流量概览，competitors 返回相似网站，audience 返回单站受众资料。指标是第三方估算，不等于该站 GA4 实测。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| global_rank | 全球流量排名，数字越小越靠前。 |
| country_rank | 所在国家的流量排名。 |
| category_rank | 所属分类内的流量排名。 |
| country | 国家或地区。可能是全称也可能是 ISO 代码，取决于平台，未归一。 |
| monthly_visits | 月访问量。**SimilarWeb 的模型估算值，不是站长后台真值。** |
| bounce_rate | 跳出率，只看一个页面就离开的访问占比。0.6 表示 60%。 |
| pages_per_visit | 每次访问的平均浏览页数。 |
| avg_visit_duration | 平均访问时长，时:分:秒（如 00:02:30）。 |
| company_name | 运营公司名称。 |
| company_founded | 公司成立年份。 |
| company_employees_min | 公司员工数估算下限。 |
| company_employees_max | 公司员工数估算上限。 |
| company_hq_country | 公司总部国家。 |
| company_hq_city | 公司总部城市。 |
| top_countries | 访问量最高的国家及占比。 |
| top_keywords | 带来最多流量的搜索词。 |
| traffic_sources | 流量来源构成（直接 / 搜索 / 社交 / 外链 / 邮件 / 广告）及占比。 |
| top_referrals | 带来最多流量的外部站点。 |
| social_distribution | 社交流量在各平台间的分布。 |
| competitors | SimilarWeb 判定的竞品站点。 |
| snapshot_date | 该份数据的统计快照日期。**流量数据有滞后，别当实时值。** |
| email | 联系邮箱，原文透传。 |
| emails | 联系邮箱列表（一条记录可能有多个），原文透传、去重。 |
| phone | 联系电话，原文透传，未做号码格式归一。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "similarweb",
  "action": "search",
  "params": {
    "keyword": "example.com"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "similarweb",
        "action": "search",
        "params": {
            "keyword": "example.com",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "similarweb",
  "action": "search",
  "results": [
    {
      "id": "example.com",
      "url": "https://www.similarweb.com/website/example.com",
      "name": "example.com",
      "text": "",
      "category": "computers_electronics_and_technology/programming_and_developer_software",
      "global_rank": 7941,
      "country_rank": 12471,
      "category_rank": 280,
      "monthly_visits": 9345666,
      "bounce_rate": 0.6514912791710534,
      "avg_visit_duration": "00:02:30",
      "top_countries": [
        {
          "countryAlpha2Code": "US",
          "countryAlpha2CodeRaw": "US",
          "countryUrlCode": "united-states",
          "visitsShare": 0.1329426107445016,
          "visitsShareChange": 0.23721803817648812
        },
        {
          "countryAlpha2Code": "GB",
          "countryAlpha2CodeRaw": "GB",
          "countryUrlCode": "united-kingdom",
          "visitsShare": 0.09609787381537664,
          "visitsShareChange": 0.748813150577166
        },
        {
          "countryAlpha2Code": "IN",
          "countryAlpha2CodeRaw": "IN",
          "countryUrlCode": "india",
          "visitsShare": 0.0812021419465102,
          "visitsShareChange": 0.2577621588969865
        }
      ],
      "top_keywords": [
        {
          "name": "www.example.com",
          "estimatedValue": null,
          "volume": null,
          "cpc": null
        },
        {
          "name": "example.com",
          "estimatedValue": null,
          "volume": null,
          "cpc": 0.71
        },
        {
          "name": "price comparison",
          "estimatedValue": null,
          "volume": null,
          "cpc": 1.64
        }
      ],
      "traffic_sources": [
        {
          "source": "ads",
          "rank": 1,
          "percentage": 0.464616847938312,
          "isHigher": null
        },
        {
          "source": "direct",
          "rank": 2,
          "percentage": null,
          "isHigher": null
        },
        {
          "source": "referrals",
          "rank": 3,
          "percentage": null,
          "isHigher": null
        }
      ],
      "top_referrals": [
        {
          "domain": "",
          "icon": "",
          "visitsShare": 0.23747686624030057,
          "isLocked": true,
          "isAvailable": true
        },
        {
          "domain": "",
          "icon": "",
          "visitsShare": 0.04233750061365961,
          "isLocked": true,
          "isAvailable": true
        },
        {
          "domain": "",
          "icon": "",
          "visitsShare": 0.03883400072797977,
          "isLocked": true,
          "isAvailable": true
        }
      ],
      "social_distribution": [
        {
          "name": "Reddit",
          "visitsShare": 0.3005705760443808,
          "icon": "https://site-images.similarcdn.com/image?url=reddit.com&t=2&s=1&h=66f2412047e0362ec60d5583d4b186511a8e859446bb112c60d22968facae906"
        },
        {
          "name": "Youtube",
          "visitsShare": 0.1996099164167749,
          "icon": "https://site-images.similarcdn.com/image?url=youtube.com&t=2&s=1&h=e117fb09ba0a34dee9830863bf927d29fc864e342583a36a667bf12346e88e20"
        },
        {
          "name": "Pinterest",
          "visitsShare": 0.12311561331673827,
          "icon": "https://site-images.similarcdn.com/image?url=pinterest.com&t=2&s=1&h=ec976160ca16242c6ab9ed7bc48e7b0f04c4100ceac5bcb6d3ea55450aa12210"
        }
      ],
      "competitors": [
        "simplilearn.com",
        "pennfoster.edu",
        "mygreatlearning.com"
      ],
      "snapshot_date": "2026-08-01T00:00:00+00:00",
      "platform": "similarweb"
    }
  ],
  "count": 1,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=similarweb
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
