change the names of _period to _date in the documentation
check that response is not empty