To set up your organization’s bulk metrics export to retrieve only the previous day’s data, use the yesterday parameter.
Using the base URL for your organization’s bulk metrics, add the yesterday parameter after the apps parameter and set it equal to 1.
The URL below represents the parameters in the format that would provide for a reoccuring routine you could program on your server and run daily to capture the prior day’s use data. Since no specific data columns are queried, all data columns are retrieved.
URL format:
Example URL:
When the yesterday parameter is used, it automatically sets the query end_time parameter to the last occurence of 12:00 AM UTC and sets the query start_time parameter to exactly 24 hours earlier. You cannot set the start_time and end_time parameters individually when the yesterday parameter is used.