I tried to use Mixpanel API to retrieve records for today. I was set To_Date = "2025-11-13" but it not worked. But it worked when i did the same yesterday evening with To_Date = "2025-11-12" Is it related to timezone? what i need to define to retrieve today's data?
Hi Eran Y., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đ
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
Yes, this is likely related to timezone settings. Let me explain how Mixpanel handles timezones for data exports.
Timezone Behavior in Export API
According to the Raw Event Export API documentation, the from_date and to_date parameters are interpreted differently based on when your project was created: - For projects created after 1 January 2023: The from_date and to_date params are interpreted using UTC timezone
- For projects created before 1 January 2023: The from_date and to_date params are interpreted using your current project timezone
Why Today's Data Might Not Be Available
When you query for "today's" data, you need to consider: 1. Data Processing Time: According to the Data Pipelines FAQ, daily pipelines are targeted to run 30 minutes past the day to be exported (e.g., 00:30 AM) in the project's timezone. This means there's a delay in data availability.2. Timezone Offset: If your project uses UTC for the Export API, but you're in a different timezone, "today" in your local time might still be "yesterday" in UTC, or vice versa.
How to Retrieve Today's Data
To successfully retrieve today's data: 1. Check your project creation date to understand which timezone interpretation applies to your Export API calls 2. Use UTC dates if your project was created after January 1, 2023 3. Account for the data processing delay - data for a given day may not be fully available until the next day 4. Consider using a date range that extends slightly into the future or wait until the next day to query the previous day's complete dataAs noted in the Export Methods documentation, the exported payloads contain timestamps as they are stored in your project, which depends on your project's creation date and timezone settings.
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.
