Using the API to render data