How can we print out NEWS Headlines in Workspace?
Seeking assistance/guidance regarding the client's query about obtaining data from the NEWS app using API.
Client is trying to retrieve the top 20 news headlines from google. Below are his steps:
- open the session on line 9
- On line 11 client call the api to retrieve the 20 news articles applying to google.
- Line 13 - 24 is code client defined to print the headlines or show the error received.
- Finally close the session.
Attaching screenshot of client's sample.
The terminal shows the following output:
ScopeError: Error code -1 | Insufficient scope for key=/data/news/v1/headlines, method=GET.
Required scopes: {'trapi.data.news.read'}
Available scopes: {'trapi.auth.cloud-credentials', 'trapi.user-framework.application-metadata.raplib', 'trapi.searchcore.metadata.read', 'trapi.search.metadata.read', 'trapi.streaming.synthetic.read', 'trapi.data.historical-pricing.events.read', 'trapi.data.get.data.read', 'trapi.search.lookup.read', 'trapi.user-framework.mobile.crud', 'trapi.data.quantitative-analytics.read', 'trapi.data.average-volume-analytics.ava_read', 'trapi.alerts.history.crud', 'trapi.user-framework.recently-used.crud', 'trapi.synthetic.crud', 'trapi.platform.iam.guiss', 'trapi.data.benchmark.bmk_read', 'trapi.streaming.prcperf.read', 'trapi.search.explore.read', 'trapi.search.read', 'trapi.data.historical-pricing.summaries.read', 'trapi.sdbold', 'trapi.searchcore.lookup.read', 'trapi.streaming.pricing.read', 'trapi.graphql.subscriber.access', 'trapi.searchcore.read', 'trapi.alerts.publication.crud', 'trapi.alerts.preferences.crud', 'trapi.frtb.sentimarization', 'trapi.alerts.subscription.crud', 'trapi.platform.iam.acl_service', 'trapi.user-framework.workspace.crud'}
Missing scopes: {'trapi.data.news.read'}
Client's goal is to retrieve the news headlines and tweets from:
Alphabet, Amazon, Apple, Berkshire Hathaway, Broadcom, Eli Lilly, Meta, Microsoft, Nvidia, and Tesla
Any assistance regarding this is appreciated.
Best Answer
-
Hello @jeffearvin.mallari01
The error messages "ScopeError: Error code -1 | Insufficient scope for key=/data/news/v1/headlines, method=GET. Required scopes: {'trapi.data.news.read'}" and "Missing scopes: {'trapi.data.news.read'}" indicates that the client account does not have permission to request News data from the RDP News service.
I strongly suggest you contact the client's LSEG representative to verify the client's account permission set (especially the News service).
I hope this information helps.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛