Rewrote the API wrapper with specific functions for each type of url that can be used.