Update API URL and add proxy support