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

# Similarweb

> Similarweb traffic data via Apify.

Similarweb traffic data via Apify. Pull website visits, global and country rank, and engagement metrics for one or more domains. Runs asynchronously: start a run, poll it, then fetch the rows from the Apify dataset endpoint by run id.

1 endpoint available through Lava's AI Gateway. See the [Similarweb API docs](https://docs.apify.com/api/v2) for full documentation.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Endpoints

### Start a Similarweb traffic scrape (async). Pass `websites` (array of bare domains or URLs). One result per website. Returns a run object; the gateway polls it and bills the real run cost. Fetch rows from GET /v2/actor-runs/\{runId}/dataset/items.

**POST** `https://api.apify.com/v2/acts/tri_angle~fast-similarweb-scraper/runs` — \$0.03 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.apify.com/v2/acts/tri_angle~fast-similarweb-scraper/runs', { body: {"websites":["apple.com","https://stripe.com"]} });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.apify.com%2Fv2%2Facts%2Ftri_angle~fast-similarweb-scraper%2Fruns" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"websites":["apple.com","https://stripe.com"]}'
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
