Goal: use Python API to download as many headlines as possible related with a given query (e.g. Topic:BRXT NOT Topic:SPO AND Language:LEN), thus increasing the range of sources offered by eikon.get_news_headlines which is only limited to "News Wires" (reference). Ideally, I'd like to download all headlines across all sources for a given query. For example, the following headlines are related with the topic Brexit in June 2016 from the News Monitor in Eikon, including all sources:
Attempt: I've tried to use eikon.send_json_request as suggested here. However, I'm not sure where to find a list of available repository IDs as shown in the example. "GlobalPress" returns a "Backend error. 503 Service Unavailable" while "WebNews" or "NewsRoom" as suggested in the example returns a cryptic message with no headlines:
@federico.fontana we are tapping into the undocumented API space, and I am not sure what to recommend since this specific bit of functionality was never exposed by design. I will talk to the product manager about that and ask him to get in touch with you.
In the meantime, the response that you are showing seems to be coming from the news archive. When I request a recent date the response comes back in the expected format. That looks like base64 encoded string, you can decode it with:
import base64 base64.b64decode('your_text')
As for sources, 'NewsRoom' is Global Press, 'WebNews' for WebNews.