Start a conversation

API records appearing outside of the end date

Overview

The article addresses the confusion users may experience when they retrieve API data that includes records beyond the specified end date. It explains that this discrepancy is due to PostBeyond storing all data in UTC time while also accommodating user-specific timezones, which requires time adjustments during data retrieval.

 

Information

Why do API records appear outside of the end date? This article explains why you might see records when pulling API data with a time greater than the End Value set.

For example, you may set the data to end on Feb 17 at 16:00 and notice that the report is including a share that was made on Feb 17 at 23:00.

End Time Value:

End Time Value

Record Returned:

Record Returned

 

Why does this happen?

PostBeyond stores all data in UTC time to avoid timezone-related issues.

While the data is stored in UTC time, PostBeyond also needs to support timezones reflective of user-specific data. To accommodate these two variables, PostBeyond makes adjustments.

For example, if a user in the API is making a request for analytics while in Toronto, Canada (EST), the time or input needs to be adjusted based on the difference between UTC and EST timezones (which is 5 hours). If PostBeyond doesn't adjust the time, the data would reflect results from a previous day.

 

Support Resources

Explore the following resources for assistance with PostBeyond platform features:

 

 

FAQ

Why do I see API records that are dated later than the end time I specified?

This occurs because PostBeyond stores data in UTC time and adjusts for user-specific timezones during data retrieval, which can result in records appearing outside of the specified end time.

How does PostBeyond handle timezone differences for API data requests?

PostBeyond adjusts the time based on the difference between UTC and the user's local timezone to ensure the data reflects the correct date and time for the user.

What should I do if I need assistance with PostBeyond's timezone adjustments for API data?

For assistance with PostBeyond platform features, including timezone adjustments, you can contact support at support@postbeyond.com.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments