Get timestamp via endpoint.