# SimilarWeb Competitors API (similarweb.competitors)

- Canonical page: [https://everyinfra.com/en/similarweb-api/competitors](https://everyinfra.com/en/similarweb-api/competitors?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "similarweb", "action": "competitors", "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=competitors

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Specifies the target domain to analyze (such as example.com) rather than a general search keyword query. Depending on the action selected, this parameter retrieves traffic overviews for search, lists similar sites for competitors, or extracts domain visitor profiles for audience. Returned metrics are third-party estimations and do not reflect internal GA4 analytics measurements. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| name | Name of the object itself, for account, product and business capabilities. |
| relation | How the site relates to the queried site (competitor, similar or related). |
| category | Category name in the platform's own taxonomy, not normalized across platforms. |
| category_rank | Traffic rank within its category. |
| global_rank | Global traffic rank; a smaller number ranks higher. |
| country_rank | Traffic rank in its country. |
| affinity | Audience interest affinity: what other kinds of sites visitors are inferred to visit. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| source_domain | The queried site's domain; this row is one of its competitors. |

## 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": "competitors",
  "params": {
    "keyword": "facebook.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": "competitors",
        "params": {
            "keyword": "facebook.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; the list keeps the first 2 of 12. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "similarweb",
  "action": "competitors",
  "results": [
    {
      "id": "instagram.com",
      "url": "https://instagram.com",
      "name": "instagram.com",
      "relation": "similarity",
      "category": "computers_electronics_and_technology/social_networks_and_online_communities",
      "category_rank": 2,
      "affinity": 1,
      "platform": "similarweb",
      "source_domain": "facebook.com"
    },
    {
      "id": "reddit.com",
      "url": "https://reddit.com",
      "name": "reddit.com",
      "relation": "similarity",
      "category": "computers_electronics_and_technology/social_networks_and_online_communities",
      "category_rank": 5,
      "affinity": 0.8947368421052632,
      "platform": "similarweb",
      "source_domain": "facebook.com"
    }
  ],
  "count": 12,
  "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
