Connect Microsoft Clarity to Python
Bring your Microsoft Clarity data into Python with Windsor.ai, so your scripts read live session and engagement data.
Pick the Microsoft Clarity fields you need, and Windsor.ai keeps them flowing without a CSV export in between.
Forget CSVs. Stop copy/paste. Connect in minutes. No code required.
Get your Microsoft Clarity data into Python
Microsoft Clarity is connected once in Windsor.ai, and these are the use cases the fields support:
Find frustrating pages
Rage Click Sessions With Metric Percentage and Dead Click Sessions With Metric Percentage per URL show where visitors click on things that do not respond.
Compare devices
Average Scroll Depth, Active Time and Total Session Count per Device show how mobile and desktop visitors use the site.
Catch script errors
Script Error Sessions Count and Error Click Sessions Count per URL and Browser show where errors reach visitors.
Using Windsor.ai to connect data from Microsoft Clarity to Python
Windsor.ai moves your Microsoft Clarity fields into Python on a connection you set up once, so the scripts stay on live records rather than a CSV someone exported last week.
Pick the fields you need and Windsor.ai handles the rest.
How to connect Microsoft Clarity to Python with Windsor.ai
Explore a step-by-step guide to integrate your Microsoft Clarity data into Python with the Windsor.ai connector.
Connect a data source
In your Windsor.ai dashboard, connect Microsoft Clarity: enter your Microsoft Clarity Data Export API key. Select the account(s) you want to pull data from and click Next.
Set Python as a data destination
Scroll down and choose Python from the data destination list. Copy the API Key URL provided in the instructions below.
Integrate the API Key URL into your Python code to stream data
Use Python’s requests or a similar library to retrieve data from Windsor.ai by making an API call with your obtained API Key URL.
FAQs
What Microsoft Clarity data can I load into Python?
Windsor.ai gives access to 70 Microsoft Clarity fields. These are the groups; the Microsoft Clarity field reference lists all of them:
- Traffic: Total Session Count, Total Bot Session Count, Distinct User Count, Pages Per Session Percentage.
- Engagement: Active Time, Total Time, Average Scroll Depth.
- Frustration signals: Rage Click Sessions Count, Rage Click Sessions With Metric Percentage, Dead Click Sessions Count, Dead Click Sessions With Metric Percentage, Quickback Click Sessions Count, Excessive Scroll Sessions Count.
- Errors: Error Click Sessions Count, Error Click Sessions With Metric Percentage, Script Error Sessions Count, Script Error Sessions With Metric Percentage.
- Breakdowns: URL, Page Title, Referrer URL, Channel, Source, Medium, Campaign, Device, Browser, Operating System, Country.
- Date and account: Date, Clarity Number Of Days, Clarity Metric Type, Account Name.
How does Windsor.ai load Microsoft Clarity data into Python?
Windsor.ai gives you an API URL for your selected Microsoft Clarity fields. Call it from Python with requests or a similar library and load the response into pandas or your own code.
Can I keep more than 3 days of Microsoft Clarity data?
Yes, by collecting it over time. Clarity’s API only returns the last 1 to 3 days, so a destination task that saves the data every day can build the history in a sheet or a warehouse. The guide How to keep more than 3 days of Microsoft Clarity data has the steps.
Can I combine Microsoft Clarity data with other sources in my scripts?
Yes. Windsor.ai supports 350+ data sources, so Microsoft Clarity data can sit next to other connected sources in the same scripts. For example, put Clarity Total Session Count and Rage Click Sessions Count by Channel next to GA4 Sessions and Engagement rate by Session default channel group for the same days.
Do I need to code to connect Microsoft Clarity to Python?
No. You connect Microsoft Clarity in the Windsor.ai dashboard, pick the fields you want, and Windsor.ai handles the transfer.
How much does it cost to integrate Microsoft Clarity with Python using Windsor.ai?
The free forever plan covers 1 data source, so connecting Microsoft Clarity on its own costs nothing and needs no credit card. Combining Microsoft Clarity with other sources needs a paid plan: $19/month for 3 sources or $99/month for 7. See the pricing page.
Do you have helpful links to get started with Microsoft Clarity and Python?
Yes. These are the resources to start with for the Microsoft Clarity to Python integration:
Tired of manual Microsoft Clarity data exports? Try Windsor.ai today to work on live data

