Add a check for the maximum value of the timestamp in the API to ensure it is a valid Unix timestamp.