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 key1
Step 1
Sign in to your Similarweb account at https://www.similarweb.com
2
Step 2
Open the API account dashboard at https://account.similarweb.com
3
Step 3
Locate your API key under the API management section
4
Step 4
Paste the API key below
Required Credentials
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
string
required
Website domain to analyze (e.g., “example.com” without www or protocol)
string
2-letter ISO country code (e.g., “us”, “gb”, “de”) or “world” for worldwide data (Default:
world)string
Data granularity: daily, weekly, or monthly (Default:
monthly)string
Start date in YYYY-MM format (e.g., “2024-01”)
string
End date in YYYY-MM format (e.g., “2024-12”)
boolean
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
string
required
Website domain to analyze (e.g., “example.com” without www or protocol)
string
2-letter ISO country code (e.g., “us”, “gb”, “de”) or “world” for worldwide data (Default:
world)string
Data granularity: daily, weekly, or monthly (Default:
monthly)string
Start date in YYYY-MM format (e.g., “2024-01”)
string
End date in YYYY-MM format (e.g., “2024-12”)
boolean
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
string
required
Website domain to analyze (e.g., “example.com” without www or protocol)
string
2-letter ISO country code (e.g., “us”, “gb”, “de”) or “world” for worldwide data (Default:
world)string
Data granularity: daily, weekly, or monthly (Default:
monthly)string
Start date in YYYY-MM format (e.g., “2024-01”)
string
End date in YYYY-MM format (e.g., “2024-12”)
boolean
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
string
required
Website domain to analyze (e.g., “example.com” without www or protocol)
string
2-letter ISO country code (e.g., “us”, “gb”, “de”) or “world” for worldwide data (Default:
world)string
Data granularity: daily, weekly, or monthly (Default:
monthly)string
Start date in YYYY-MM format (e.g., “2024-01”)
string
End date in YYYY-MM format (e.g., “2024-12”)
boolean
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.