Can not use environmental API

KENJP
KENJP Newcomer

I'm using a Delayed RIC license.

My sales reps suggested that I ask about this problem here.

I cannot use the API Playground. The error message says, "You are not permissioned to execute this method."


https://api.refinitiv.com/data/environmental-social-governance/v2/universe

And also I can not use vis pthon.

ricList="/MSFT.O"
esgScoreFullEndpoint="https://api.refinitiv.com/data/environmental-social-governance/v2/views/scores-full?universe="
resp=get(url=esgScoreFullEndpoint+ricList,headers={"Authorization": "Bearer " + accessToken})
 
if resp.status_code!=200:
    print("Status Code:",resp.status_code," Text:",dumps(loads(resp.text),indent=4))
    exit()
 
esg_object=loads(resp.text)

Status Code: 403  Text: {    "error": {        "id": "4a52d6a8-dedf-4ca0-a6ba-d6bb58ec7c59",        "code": "insufficient_scope",        "message": "access denied. Scopes required to access the resource: [trapi.data.esg.views-scores-full.read]. Missing scopes: [trapi.data.esg.views-scores-full.read]",        "status": "Forbidden"    }}

Best Answer

  • Gurpreet
    Gurpreet admin
    edited March 5 Answer ✓

    Hello @KENJP

    I am sorry to hear this, but your sales rep should be aware that this is an account entitlement issue.

    The error message:

    "access denied. Scopes required to access the resource: [trapi.data.esg.views-scores-full.read]. 
    

    means that you don't have access to ESG data. Your LSEG sales/account team should be able to help you gain access to this.

    PS: Delayed RICs are not applicable to fundamental data like Corex, ESG etc. Please use MSFT.O, once you have the signed up for the ESG product.