Logo

What are you looking for?

How do I set a date and time range for the bulk metrics export?

Metrics

How do I set a date and time range for the bulk metrics export?

Use the "yesterday" parameter or the "start_time" and "end_time" parameters to set time and date ranges for your bulk metrics export.

Last updated on 28 Oct, 2025

There are three parameters for setting date ranges in the bulk metrics export. 

  • start_time    sets the start time for the query in ISO8601 format (UTC)

  • end_time     sets the end time for the query in ISO8601 format (UTC)

  • yesterday    retrieves only the previous day's data

The format for the start_time and end_time parameters, based on RFC3339, is as follows:
       YYYY-MM-DDTHH:MM:SS.FFFZ

A start_time parameter is required for the bulk metrics query to run. If no end_time parameter is specified, the query will return all data logged up to the time the query was run.

The yesterday parameter is a convenience parameter for setting the bulk metrics query to retrieve only the previous day’s data. It automatically sets the end_time parameter to the last occurence of 12:00 AM UTC, and sets the start_time parameter to exactly 24 hours earlier.

Example URLs:

Image

Sample Data:

The first row of data returned is a header label, followed by data records.

Image
Did you find this article helpful?
Previous

How do I set the bulk metrics to retrieve all the historical data for my organization?

Next