Fixed API URL construction.