preparing the api to get content