Similarweb

Use Similarweb to retrieve website traffic estimates, visit duration, bounce rate, pages per visit, country breakdowns, rankings, and traffic sources. Compare sites or report changes across the selected periods.

These are provider estimates rather than your site's measured analytics. Use the selected operation's geographic, time-period, and granularity fields to keep comparisons consistent.

Use the block

Retrieve website analytics including traffic estimates, engagement metrics, rankings, and traffic sources using the Similarweb API.

Actions

SimilarWeb Website Overview

Get website traffic, rankings, engagement, and traffic sources.

Inputs and outputs

Input

ParameterTypeRequiredDescription
apiKeystringYesSimilarWeb API key
domainstringYesWebsite domain to analyze (e.g., "example.com" without www or protocol)

Output

ParameterTypeDescription
siteNamestringWebsite name
descriptionstringWebsite description
globalRanknumberGlobal traffic rank
countryRanknumberCountry traffic rank
categoryRanknumberCategory traffic rank
categorystringWebsite category
monthlyVisitsnumberEstimated monthly visits
engagementVisitDurationnumberAverage visit duration in seconds
engagementPagesPerVisitnumberAverage pages per visit
engagementBounceRatenumberBounce rate (0-1)
topCountriesarrayTop countries by traffic share
↳ countrystringCountry code
↳ sharenumberTraffic share (0-1)
trafficSourcesjsonTraffic source breakdown
↳ directnumberDirect traffic share
↳ referralsnumberReferral traffic share
↳ searchnumberSearch traffic share
↳ socialnumberSocial traffic share
↳ mailnumberEmail traffic share
↳ paidReferralsnumberPaid referral traffic share

SimilarWeb Traffic Visits

Get total website visits over time (desktop and mobile combined)

Input

ParameterTypeRequiredDescription
apiKeystringYesSimilarWeb API key
domainstringYesWebsite domain to analyze (e.g., "example.com" without www or protocol)
countrystringYes2-letter ISO country code (e.g., "us", "gb", "de") or "world" for worldwide data
granularitystringYesData granularity: daily, weekly, or monthly
startDatestringNoStart date in YYYY-MM format (e.g., "2024-01")
endDatestringNoEnd date in YYYY-MM format (e.g., "2024-12")
mainDomainOnlybooleanNoExclude subdomains from results

Output

ParameterTypeDescription
domainstringAnalyzed domain
countrystringCountry filter applied
granularitystringData granularity
lastUpdatedstringData last updated timestamp
visitsarrayVisit data over time
↳ datestringDate (YYYY-MM-DD)
↳ visitsnumberNumber of visits

SimilarWeb Bounce Rate

Get website bounce rate over time (desktop and mobile combined)

Input

ParameterTypeRequiredDescription
apiKeystringYesSimilarWeb API key
domainstringYesWebsite domain to analyze (e.g., "example.com" without www or protocol)
countrystringYes2-letter ISO country code (e.g., "us", "gb", "de") or "world" for worldwide data
granularitystringYesData granularity: daily, weekly, or monthly
startDatestringNoStart date in YYYY-MM format (e.g., "2024-01")
endDatestringNoEnd date in YYYY-MM format (e.g., "2024-12")
mainDomainOnlybooleanNoExclude subdomains from results

Output

ParameterTypeDescription
domainstringAnalyzed domain
countrystringCountry filter applied
granularitystringData granularity
lastUpdatedstringData last updated timestamp
bounceRatearrayBounce rate data over time
↳ datestringDate (YYYY-MM-DD)
↳ bounceRatenumberBounce rate (0-1)

SimilarWeb Pages Per Visit

Get average pages per visit over time (desktop and mobile combined)

Input

ParameterTypeRequiredDescription
apiKeystringYesSimilarWeb API key
domainstringYesWebsite domain to analyze (e.g., "example.com" without www or protocol)
countrystringYes2-letter ISO country code (e.g., "us", "gb", "de") or "world" for worldwide data
granularitystringYesData granularity: daily, weekly, or monthly
startDatestringNoStart date in YYYY-MM format (e.g., "2024-01")
endDatestringNoEnd date in YYYY-MM format (e.g., "2024-12")
mainDomainOnlybooleanNoExclude subdomains from results

Output

ParameterTypeDescription
domainstringAnalyzed domain
countrystringCountry filter applied
granularitystringData granularity
lastUpdatedstringData last updated timestamp
pagesPerVisitarrayPages per visit data over time
↳ datestringDate (YYYY-MM-DD)
↳ pagesPerVisitnumberAverage pages per visit

SimilarWeb Visit Duration

Get average desktop visit duration over time (in seconds)

Input

ParameterTypeRequiredDescription
apiKeystringYesSimilarWeb API key
domainstringYesWebsite domain to analyze (e.g., "example.com" without www or protocol)
countrystringYes2-letter ISO country code (e.g., "us", "gb", "de") or "world" for worldwide data
granularitystringYesData granularity: daily, weekly, or monthly
startDatestringNoStart date in YYYY-MM format (e.g., "2024-01")
endDatestringNoEnd date in YYYY-MM format (e.g., "2024-12")
mainDomainOnlybooleanNoExclude subdomains from results

Output

ParameterTypeDescription
domainstringAnalyzed domain
countrystringCountry filter applied
granularitystringData granularity
lastUpdatedstringData last updated timestamp
averageVisitDurationarrayDesktop visit duration data over time
↳ datestringDate (YYYY-MM-DD)
↳ durationSecondsnumberAverage visit duration in seconds

SimilarWeb Page Views

Get total page views over time (desktop and mobile combined)

Input

ParameterTypeRequiredDescription
apiKeystringYesSimilarWeb API key
domainstringYesWebsite domain to analyze (e.g., "example.com" without www or protocol)
countrystringYes2-letter ISO country code (e.g., "us", "gb", "de") or "world" for worldwide data
granularitystringYesData granularity: daily, weekly, or monthly
startDatestringNoStart date in YYYY-MM format (e.g., "2024-01")
endDatestringNoEnd date in YYYY-MM format (e.g., "2024-12")
mainDomainOnlybooleanNoExclude subdomains from results

Output

ParameterTypeDescription
domainstringAnalyzed domain
countrystringCountry filter applied
granularitystringData granularity
lastUpdatedstringData last updated timestamp
pageViewsarrayPage view data over time
↳ datestringDate (YYYY-MM-DD)
↳ pageViewsnumberTotal page views