kapa.ai How do I export 'Session Start' event. I want to download it in csv format with it's properties as well. How can I do so?
You can export the 'Session Start' event from Mixpanel in CSV format through two main methods:
Method 1: Using the UI (for smaller volumes)
You can export Session Start events as a CSV directly from the Events table in the Mixpanel interface: 1. Navigate to the Events tab in Mixpanel 2. Search for or filter to show only "Session Start" events 3. Click the "Export" button in the top right corner 4. Select CSV as the export formatBy default, only the columns visible in the UI will be exported. To include specific session properties: 1. Click "Edit Columns" to modify which properties are shown in the Events table 2. Select "All event properties" if you want to include all propertiesRemember that this method only exports events that are visible in the table at the time, so you may need to scroll down and click "Load More" to make more events visible before exporting.Export Methods
Method 2: Using the Raw Event Export API (for larger volumes)
For a more comprehensive export of Session Start events with all their properties, you can use the Raw Event Export API: LBKScurl --request GET \ --url '[https://data.mixpanel.com/api/2.0/export?from_date=YYYY-MM-DD&to_date=YYYY-MM-DD&event=["Session](https://data.mixpanel.com/api/2.0/export?from_date=YYYY-MM-DD&to_date=YYYY-MM-DD&event=[%22Session) Start"]' \ --header 'accept: text/plain' \ --header 'authorization: Basic YOUR_TOKEN'LBKS
Replace the date parameters with your desired date range and add your authentication token.The API will return data in JSONL format, which you would need to convert to CSV. Session Start events will include the standard session properties:
- Session Duration (Seconds)
- Session Event Count
- Session Start Event Name
- Session End Event NamePlus any associated properties that are configured in your project.Raw Event Export API
Sessions DocumentationNote that the API has rate limits: 60 queries per hour, 3 queries per second, and a maximum of 100 concurrent queries.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
The issue is that for this event, I'm getting 'No results found' in Events tab. Mixpanel automatically generates the 'Session Start' event as a virtual event to mark the beginning of a user session.