Fixing getApiProperties so it runs on node