Performance Concern When Fetching News Stories

I am currently using the Refinitiv Data Platform (RDP) to fetch news data by executing Python code.
I’m trying to retrieve individual stories using their story IDs, with the sample code below:
def fetch_single_story(story_id, access_token):
story_url = f"https://api.refinitiv.com/data/news/v1/stories/{story_id}"
headers = {
'Accept': 'application/json',
'Authorization': f'Bearer {access_token}'
}
response = requests.get(story_url, headers=headers)
if response.status_code != 200:
log(f"⚠️ Failed to fetch story {story_id}: {response.status_code}")
return None
However, this approach is quite slow since each execution fetches only one story at a time.
I’m considering using parallel processing to fetch multiple stories simultaneously. In that case, I’d like to know:
Is there any request rate limit per second for the
/stories/{story_id}
endpoint?
I couldn’t find a clear description of this in the News Service User Guide, so I would appreciate any clarification. Many thanks!
Best Answer
-
It should be a ticket and the case must be escalated to the product support team.
0
Answers
-
Thank you for reaching out to us.
If the documentation does not specify any limitations, please reach out to the product support team directly for confirmation.
0 -
Hi, thank you for your reply.
Do you know the email address for the RDP support team?
Or should I raise a help ticket from my account?
0 -
Thanks, let me try to raise a help ticket
0 -
Hello.
Lseg helpdesk answered me that user rate limit for the /stories/{storyId} endpoint is 20 requests per second (rps)
I tested the attached sample code , which requests stories one by one using their story IDs, while respecting the limit of 20 requests per second by adding a 1-second delay between batches.
I ran it in a Snowflake notebook, which provides a Python environment, still I encounter an HTTP 429 error.
As far as I understand, this approach aligns with the technical requirements of the endpoint.
I would appreciate any advice on the limitations involved.
0 -
Hello @souyaku1121
I am noticed that your attachment contains the app-key information. Please be informed that the app-key is also a secret credential that should not be shared on the public forum.
I have removed it from your code file.
1 -
Hello @souyaku1121
I have tested your code on my local environment (removed Snowflake code). I can replicate the issue with the batch_size 10, 12, 15, and 20.
Some news story request got "[14:25:03] ⚠️ Failed to fetch story <story ID>: 429" error message.
I strongly suggest you contact the RDP News team to verify the issue on server side. The server side should have a number of incoming request from your end to confirm where it was exceed.
2 -
Hello, thank you very much for checking this issue.
I’m reaching out to the RDP team to ask them for further investigation
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 704 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 2.9K Elektron
- 1.5K EMA
- 257 ETA
- 566 WebSocket API
- 40 FX Venues
- 16 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 283 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 24 RDMS
- 2.1K Refinitiv Data Platform
- 839 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
- 122 Open DACS
- 1.1K RFA
- 107 UPA
- 195 TREP Infrastructure
- 232 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 101 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛