fetch from the API and setup POST parameters