Can I slect data range for insight report through Query api for the chart we want to export
Hi Ali A., 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, you can select the date range for an Insights report when exporting data through the Query API. However, the date range is determined by how the report was saved in the Mixpanel UI, not by passing date parameters directly to the API. When you use the Query API's /insights endpoint, you provide the bookmark_id of the saved Insights report, and the API returns data for the date range configured in that report at the time it was saved. There are no from_date or to_date parameters available for the /insights endpoint in the Query API; the date range is part of the saved report configuration Query API - Insights.If you need to change the date range, you must update the report in the Mixpanel UI and then use the Query API to export the updated data.
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.
