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.
Find more posts tagged with
- 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
- EMA Java API MRN Tutorial
- Introduction to Machine Readable News (MRN) with Enterprise Message API (EMA)
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:
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;
- 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
- EMA Java API MRN Tutorial
- Introduction to Machine Readable News (MRN) with Enterprise Message API (EMA)
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:
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;
Hello @Julian.Bai
Thank you for reaching out to us. Firstly, please let me clarify the RDP APIs questions as follow:
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.
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.