Where is `getApiUrl`defined ?