python sample code for rdp api fetching news analytics

Hi team, where can i find sample python code to fetch news analytics from RDP using rdp api? I'm also confused about the python library since we have refinitiv.dataplatform, refinitiv.data and refinitiv.data-platform, which is the correct one for rdp api? And do we have detailed tutorial regarding the fileds for all commands? Thank you.
Best Answer
-
Hello @Julian.Bai
There is the /data/news/v1/analyze endpoint in the RDP APIs. Is it what the client wants?
You can find more detail on the RDP API Playground (/data/news/v1/analyze operation) reference and the RDP APIs News User Guide pages.
The recommend ease-of-use API for RDP is the Refinitiv Data Library for Python. There is no news analyze interface, but the client can use the Endpoint interface examples as a reference.
The client can find more detail about the RD Library for Python on the following resources:
- Quickstart: https://developers.refinitiv.com/en/api-catalog/refinitiv-data-platform/refinitiv-data-library-for-python/quick-start
- Document: https://developers.refinitiv.com/en/api-catalog/refinitiv-data-platform/refinitiv-data-library-for-python/documentation
- Examples and Tutorials: https://github.com/Refinitiv-API-Samples/Example.DataLibrary.Python
Note: Please note that if the client needs "MRN News Analytics", the MRN (Machine Readable News) is available on Refinitiv Real-Time only. The recommended one is the EMA Java API;
- EMA Java API MRN Tutorial
- Introduction to Machine Readable News (MRN) with Enterprise Message API (EMA)
0
Answers
-
Hello @Julian.Bai
Thank you for reaching out to us. Firstly, please let me clarify the RDP APIs questions as follow:
- The Refinitiv Data Platform APIs (RDP APIs) are the core web-based APIs that provide Refinitiv content via the Request-Response (RESTful web service), Alert, Bulk, and Streaming delivery methods
- The Refinitiv Data Libraries (RD Library)are ease-of-use libraries that simplified RDP APIs via high-level API interfaces. It is the strategic library and is available for Python (Production ready), TypeScript (beta phase), and .Net (beta phase)languages
- The refinitiv.data-platform library is the non-strategic RDP ease-of-use library. It has been replaced by RD Library above
The recommended APIs are the core RDP APIs or RD Library based on your preference whether you need a manual HTTP operation/management or the ease-of-use API.
About the MRN News Analytics, I cannot find the related News Analytics endpoints on the https://apidocs.refinitiv.com/Apps/ApiDocs (RDP APIs document) page.
There is the Exploring News Metadata - with Refinitiv Data Platform and Python article about getting RDP News's metadata, I am not sure it is the thing you want.
The News Analytics is available on the Refinitiv Real-Time platform. There is the Refinitiv Real-Time WebSocket API Python example/article on How to get MRN News Analytics Data via WebSocket API page.
I hope this information helps.
0 -
Hi Wasin, thanks for the info. My client is just single user so which one is more easier and requires less dev work? Thank you.
0 -
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
- 689 Datastream
- 1.4K DSS
- 627 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 24 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 708 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 96 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛