update api call for new url structure