Hi @jyothirmaie.mukthapuram ,
You can use the following query to request news via Eikon Data API:
ek.get_news_headlines(query = 'AAPL.O', count=10)
Please note, you would first need to get the index constituents and then use RICs for those in your query as described in this post. Please let me know if you need the code of getting constituents using Eikon.
Best regards,
Haykaz