> ## Documentation Index
> Fetch the complete documentation index at: https://exa.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Similarweb

> Get website traffic estimates, global rankings, and competitor discovery.

[Similarweb](https://www.similarweb.com) is a leading source of digital market
intelligence. It models the traffic and engagement of millions of websites and
apps, covering estimated visits, traffic sources, audience demographics, and the
competitive set around any domain.

Attach `similarweb` to an [Exa Agent](/docs/agent/quickstart) run through
[Exa Connect](/docs/agent/connect/overview), and the agent queries
Similarweb alongside Exa web search.

## Use it for

* Benchmarking a company's web traffic and engagement against its peers.
* Mapping a domain's competitors and audience-overlapping sites.
* Sizing markets and screening companies by digital footprint.
* Enriching company and category research with real behavioral data.

## Provider ID

Use this value in `dataSources`:

```text theme={null}
similarweb
```

## Example

Find 10 fast-growing B2B SaaS companies and their estimated web traffic.

<CodeGroup>
  ```python Python theme={null}
  from exa_py import Exa

  exa = Exa()
  run = exa.agent.runs.create(
      query="Find 10 fast-growing B2B SaaS companies and their estimated web traffic.",
      data_sources=[{"provider": "similarweb"}],
      output_schema={
          "type": "object",
          "required": ["companies"],
          "properties": {
              "companies": {
                  "type": "array",
                  "maxItems": 10,
                  "items": {
                      "type": "object",
                      "required": ["name", "domain", "monthlyVisits"],
                      "properties": {
                          "name": {"type": "string"},
                          "domain": {"type": "string"},
                          "monthlyVisits": {"type": "number", "description": "from Similarweb"},
                      },
                  },
              }
          },
      },
  )
  run = exa.agent.runs.poll_until_finished(run.id)
  ```

  ```javascript JavaScript theme={null}
  import Exa from "exa-js";

  const exa = new Exa();
  const run = await exa.agent.runs.create({
    query: "Find 10 fast-growing B2B SaaS companies and their estimated web traffic.",
    dataSources: [{ provider: "similarweb" }],
    outputSchema: {
      type: "object",
      required: ["companies"],
      properties: {
        companies: {
          type: "array",
          maxItems: 10,
          items: {
            type: "object",
            required: ["name", "domain", "monthlyVisits"],
            properties: {
              name: { type: "string" },
              domain: { type: "string" },
              monthlyVisits: { type: "number", description: "from Similarweb" },
            },
          },
        },
      },
    },
  });
  ```

  ```bash cURL theme={null}
  curl -s -X POST "https://api.exa.ai/agent/runs" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $EXA_API_KEY" \
    -d '{
      "query": "Find 10 fast-growing B2B SaaS companies and their estimated web traffic.",
      "dataSources": [{ "provider": "similarweb" }],
      "outputSchema": {
        "type": "object",
        "required": ["companies"],
        "properties": {
          "companies": {
            "type": "array",
            "maxItems": 10,
            "items": {
              "type": "object",
              "required": ["name", "domain", "monthlyVisits"],
              "properties": {
                "name": { "type": "string" },
                "domain": { "type": "string" },
                "monthlyVisits": { "type": "number", "description": "from Similarweb" }
              }
            }
          }
        }
      }
    }'
  ```
</CodeGroup>

## Pairs well with

* [Fiber.ai](/docs/agent/connect/fiber): turn discovered competitors into enriched company records.
* [Affiliate.com](/docs/agent/connect/affiliatecom): gauge a merchant's reach before recommending products from it.

## Next steps

<Columns cols={2}>
  <Card title="Attach it to a run" icon="rocket" href="/docs/agent/connect/overview" cta="Open quickstart" arrow="true">
    The Exa Connect quickstart covers `dataSources`, pricing, and the full partner catalog.
  </Card>

  <Card title="Combine providers" icon="blend" href="/docs/agent/connect/combining-providers" cta="Read guide" arrow="true">
    Attach up to five partners to one run and shape the query so each one fires.
  </Card>

  <Card title="Learn Exa Agent" icon="book-open" href="/docs/agent/quickstart" cta="Open guide" arrow="true">
    Create runs, stream progress, design output schemas, and control effort and cost.
  </Card>

  <Card title="Get an API key" icon="key" href="https://dashboard.exa.ai/api-keys" cta="Create a key" arrow="true">
    Create a key in the dashboard and run this page's example as-is. New accounts start with free credits.
  </Card>
</Columns>
