Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
13 2 1 2

How to get the true parameters in EIKON DATA API (get_news_headlines)

I want to use EIKON DATA API(get_news_headlines) for get the cocoa news, but i can't find the right parameters which i should use.The example your web page given me can't help me fix this problem.

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

You can use topic code COC to get headlines about Cocoa. The query is:

headlines = ek.get_news_headlines("COC", count=100)
headlines

If you need headlines in English, you can add "LEN" query.

headlines = ek.get_news_headlines("COC AND LEN", count=100)
headlines

I suggest using the News Monitor application in Eikon to create a headlines query to be used with the get_news_headlines method.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.