Eikon API Python, why I'm limited to 10 headline news in one request?

When I'm sending a request to extract headlines on Eikon API, I'm limited to 10 lines per request?? Before August, I have no such issue... Thanks for your help.
Best Answer
-
10 is the default requested headline number.
You can modify it with the parameter count :
get_news_headlines(query='Topic:TOPALL and Language:LEN', count=20)
0
Answers
-
Many thanks for your answer Pierre. It works! But do you know if I have to always put that limit "count". My resquest is on a specific RIC or basket of RIC on a range of time so I don't know the length of my final dataframe. Of course I can enter the parameter "count" equal to 1 000 or higher for example. But it's not the best way of coding....
0 -
You're limited to a maximum of 100 news headlines (any request for more than 100 headlines will fail in error).
If you set date_from and date_to to retrieve a limited range of news (less than 100) with count=100, your result will contain all available items.
In following example, the result contains 3 headlines despite the count limit set to 100:
>>> ek.get_news_headlines(query='RENA.PA', date_from='2017-09-16', date_to='2017-09-18', count=100)
versionCreated \
2017-09-17 20:43:24 2017-09-17 20:43:24.000
2017-09-16 06:32:26 2017-09-16 06:32:26.000
2017-09-16 06:06:43 2017-09-16 06:06:47.004
text \
2017-09-17 20:43:24 Motor racing-Aston Martin wants to be more inv...
2017-09-16 06:32:26 DJ Car Chief Bets Big on Growth -- WSJ<7201.T>...
2017-09-16 06:06:43 McLaren finally cut ties with Honda<7267.T><RE...
storyId sourceCode
2017-09-17 20:43:24 urn:newsml:reuters.com:20170917:nL4N1LY0D1:2 NS:RTRS
2017-09-16 06:32:26 urn:newsml:reuters.com:20170916:nDJUP00035:1 NS:DJN
2017-09-16 06:06:43 urn:newsml:reuters.com:20170916:nNRA4hpjek:1 NS:TELGPH
>>>0 -
@pierre.faurel if my headlines request has more than 100 results, is there a way to access all of them?
0 -
Only by splitting the request into multiple requests and narrowing the time range of each request to ensure there's less than 100 headlines returned for each time window.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 687 Datastream
- 1.4K DSS
- 621 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 254 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 669 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛