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
1 0 0 1

Could you please tell me the details of each JSON format specific parameter (the following parameters) when we get the data in JSON format using ek.get_news_headlines ()?

  • displayDirection
  • documentType
  • firstCreated
  • isAlert
  • language
  • reportCode
  • sourceName
eikoneikon-data-apirefinitiv-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.

@xiaoxi.zhang.bc

Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

@xiaoxi.zhang.bc

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
39.4k 77 11 27

@xiaoxi.zhang.bc

The options to set raw_output=True parameter in Eikon Data APIs methods is provided for debugging and troubleshooting purposes. JSON schema in the results is subject to change, and you shouldn't rely on it in your applications.

Nevertheless, to answer your questions, these parameters provide some metadata to describe the news headline and/or news story associated with the headline. Specifically

displayDirection specifies whether the text is displayed left-to-right (as in European languages) or right-to-left (as in Arabic for example).

documentType describes the type of document behind the headline, e.g. 'Story' refers to a news story published as an HTML document, 'FileUrl' when the document behind the headline is for example a pdf doc, as would be the case with some press releases and other publications, and so on.

firstCreated provides the timestamp when the headline was first published. Originally published news story may be followed by numerous updates, as the story develops and unfolds. firstCreated provides the timestamp of the original publication.

isAlert. When there are market moving events, reporters rush to inform the market and may publish a headline without a story to save the time it takes to type and edit the story text. Such headlines are referred to as news alerts. In Eikon News Monitor app such headlines are displayed in red. The story follows after the news alert and is published as a regular news headline with the same headline text as in the alert headline. isAlert is the flag that tells whether the headline is a news alert.

language. This is self explanatory. The language parameter specifies the language, in which the headline is written.

reportCode. Some news headlines are grouped into so-called reports, and can be retrieved using the report code. E.g. news search expression ".N" provides reports on the US stock market. If the news headline belongs to any reports, the report codes the headline belongs to will be listed in reportCode parameter.

sourceName provides the name of the news agency, wire service or another source that produced the news headline.

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.