Access denied, what I am doing wrong?

Hi,
I am trying to access the data my company bought through the python API. I have created a config file (according to the github instructions) where I include the machine ID, password and the app key.
I do the following:
import refinitiv.data as rd
from refinitiv.data.content import esg
import os
os.environ["RD_LIB_CONFIG_PATH"] = ".. \refinitiv-data.config.json"
rd.open_session('platform.rdp')
response = esg.universe.Definition().get_data()
response.data.df
It works to start the session so something seem to be working.
But the line "response = esg.universe.Definition().get_data()" gives me an error:
RDError: Error code 403 | access denied. Scopes required to access the resource: [trapi.data.esg.universe.read]. Missing scopes: [trapi.data.esg.universe.read]
Which sounds like I don't have access to this data. Am I trying to access the wrong stuff? Or what I am doing wrong?
This is the product my company bought according to the invoice:
I am stumbling in the dark a bit here, I hope someone can send me in the right direction.
Thank you
Best Answer
-
Please speak to your Refinitiv Account team/representative.
The above error indicates that your credential (machine ID) is not licensed for trapi.data.esg.universe.read. Either your credential was not configured correctly by the account team or the required licence is not included in the products you purchased.
Whilst the moderators on this forum can help with API how to / programming type questions - we do not have access to your credentials/licence information.
0
Answers
-
@jens.wilhelmssonHi
I should point out that your code looks fine - I tried it out here with my credentials and I was able to get data back.
0 -
Just to eliminate a few possibilities, can you confirm if you are using a Machine ID + password in your config.json file i.e. something like
"rdp": {
"app-key": "01232d13bf27478987d1c75f2c5fd8fc4690abcd",
"username": "GE-A-0123456778-3-1234",
"password": "thisisaveryveryveryverylongpasswordX$"and NOT your email-based username?
Also, can you connect to the API Playground https://apidocs.refinitiv.com/Apps/ApiDocs using your email username and access the /data/environmental-social-governance/v2/universe endpoint?
When you click send on the API Playground do you get back a list of instruments?
0 -
Hi @umer.nalla
Thanks for your quick response. I emailed my account representative.
I also tried what you suggested here and it indeed seems like its an access issue. Here is my result:
0 -
Thanks for confirming.
When you discuss with your account rep, please mention the API Playground result too.
0 -
Hi @umer.nalla
Thank you, I will!
0 -
I am not sure this will help (I am not a Licensing person) - but it may be worth pointing out to your Account Rep that I am able to access the above data and I have the PRO ESG GLOBAL SCORES WM R-R API licence applied to my MachineID.
Could be a complete red-herring - but just in case it helps...
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛