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
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛