I am trying to download company research documents via API. For a given document ID, I am trying to use the "https://api.refinitiv.com/data/hvmi/v1/documents/download" endpoint to download the file.
Here is my python script:
import refinitiv.data as rd rd.open_session() url='https://api.refinitiv.com/data/hvmi/v1/documents/download/{documentId}' docid=105077955 request_definition = rd.delivery.endpoint_request.Definition(url=url ,method=rd.delivery.endpoint_request.RequestMethod.GET ,path_parameters = {"documentId": docid}) response = request_definition.get_data()
Running this, I get a 500 error:
Response(is_success=False, raw=<Response [500 Internal Server Error]>, errors=[Error(code=500, message='')]...
Even when I use the API Playground, I get a "Failed to fetch" error:
Any ideas?