You are trying to access the data via APIs and we are getting below error message:
Error Response: [LGN0004]You are not allowed to access OData APIs using Basic Auth or OAuth on a non-API server. To do this, you need to switch to the corresponding API server. For a list of available servers, visit https://help.sap.com/viewer/d599f15995d348a1b45ba5603e2aba9b/latest/en-US/03e1fc3791684367a6a76a614a2916de.html
SAP SuccessFactors HCM suite - Odata API
The URL that you using is wrong.
Change the API URL, according KBA 2215682
LGN0004; You are not allowed to access OData APIs; API server , KBA , LOD-SF-INT , Integrations , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT-API , API & Adhoc API Framework , Problem