Overview
Add Similarweb to any ModuleX agent or workflow. Website traffic and analytics data: traffic estimates, engagement metrics, rankings, and traffic-source breakdowns from the Similarweb Web Traffic API (api.similarweb.com).
Categories: Analytics & Data · Marketing · Seo · Auth: API Key · Actions: 5
Authentication
API Key Authentication
Authenticate using your Similarweb API keyStep 1
Sign in to your Similarweb account at https://www.similarweb.com
Step 2
Open the API account dashboard at https://account.similarweb.com
Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| Similarweb API Key | Your Similarweb Web Traffic API key | Yes | - |
Available Actions
website_overview — Get comprehensive website analytics including traffic, rankings, engagement, and traffic sources
website_overview — Get comprehensive website analytics including traffic, rankings, engagement, and traffic sources
traffic_visits — Get total website visits over time (desktop and mobile combined)
traffic_visits — Get total website visits over time (desktop and mobile combined)
Parameters
Website domain to analyze (e.g., “example.com” without www or protocol)
2-letter ISO country code (e.g., “us”, “gb”, “de”) or “world” for worldwide data (Default:
world)Data granularity: daily, weekly, or monthly (Default:
monthly)Start date in YYYY-MM format (e.g., “2024-01”)
End date in YYYY-MM format (e.g., “2024-12”)
Exclude subdomains from results
Response
bounce_rate — Get website bounce rate over time (desktop and mobile combined)
bounce_rate — Get website bounce rate over time (desktop and mobile combined)
Parameters
Website domain to analyze (e.g., “example.com” without www or protocol)
2-letter ISO country code (e.g., “us”, “gb”, “de”) or “world” for worldwide data (Default:
world)Data granularity: daily, weekly, or monthly (Default:
monthly)Start date in YYYY-MM format (e.g., “2024-01”)
End date in YYYY-MM format (e.g., “2024-12”)
Exclude subdomains from results
Response
pages_per_visit — Get average pages per visit over time (desktop and mobile combined)
pages_per_visit — Get average pages per visit over time (desktop and mobile combined)
Parameters
Website domain to analyze (e.g., “example.com” without www or protocol)
2-letter ISO country code (e.g., “us”, “gb”, “de”) or “world” for worldwide data (Default:
world)Data granularity: daily, weekly, or monthly (Default:
monthly)Start date in YYYY-MM format (e.g., “2024-01”)
End date in YYYY-MM format (e.g., “2024-12”)
Exclude subdomains from results
Response
visit_duration — Get average desktop visit duration over time (in seconds)
visit_duration — Get average desktop visit duration over time (in seconds)
Parameters
Website domain to analyze (e.g., “example.com” without www or protocol)
2-letter ISO country code (e.g., “us”, “gb”, “de”) or “world” for worldwide data (Default:
world)Data granularity: daily, weekly, or monthly (Default:
monthly)Start date in YYYY-MM format (e.g., “2024-01”)
End date in YYYY-MM format (e.g., “2024-12”)
Exclude subdomains from results
Response
Limits & Quotas
- Rate limits and historical data depth (typically up to 37 months) are determined by your Similarweb subscription tier.
- Time-series responses are scoped by
countryandgranularity; query a single country orworldper call. - Error model: non-2xx responses and timeouts are caught and
returned as
success=False+errorrather than raising. Plan for retries on the agent side based on the error string.