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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

The following Python API call is only returning 10 news stories which i see is the default amount rather than all of those available since the date_from of 1st Sep. get_news_headlines(query='Partial AND (BUYS OR SELLS)', date_from='2021-09-01T00:00:00')

The following Python API call is only returning 10 news stories which i see is the default amount rather than all of those available since the date_from of 1st Sep.


get_news_headlines(query='Partial AND (BUYS OR SELLS)', date_from='2021-09-01T00:00:00')

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

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

Upvotes
Accepted
38.1k 69 35 53

@emmanuel.hernandez

It returns 10 headlines by default You can use the count parameters to specify the maximum number of headlines retrieved.

    count: int, optional
        Max number of headlines retrieved.
    
        Value Range: [1-100].
    
        Default: 10

The code looks like this:

headlines = ek.get_news_headlines(query='Partial AND (BUYS OR SELLS)', date_from='2021-09-01T00:00:00',count=100)
headlines
icon clock
10 |1500

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

Upvotes
11.5k 16 7 10

Hello @emmanuel.hernandez

Additionally, you can find more parameters detail from the Eikon Data APIs for Python - Reference Guide document.

icon clock
10 |1500

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

Click below to post an Idea Post Idea