Yes. Most Query API endpoints let you set the date range with from_date and to_date (inclusive). Use these on the endpoint that matches your chart type:
- Segmentation: GET /segmentation, /segmentation/average, /segmentation/sum, /segmentation/numeric all accept from_date and to_date. [Segmentation]
- Event Breakdown: GET /events and /events/properties accept from_date and to_date. [Event Breakdown]
- Funnels: GET /funnels requires from_date and to_date; you can also control bucket size with interval or unit. [Funnels]
- Insights (saved reports): GET /insights returns the saved report; date range comes from the report settings rather than from_date/to_date params. [Insights]
If youβre exporting raw events (not charts), the Raw Event Export API also uses from_date and to_date. [Export API; Export methods]