Pass values to api_render
Refactor all using api_render method