how to access the API