Using Python API, I use the code below but this will give results where the RIC is either mentioned in the headline or mentioned in the article. I only need the results that will show the RIC on the headlines.
import numpy as np
import eikon as ek
import datetime as dt
query = [Instrument,'and',language,'and,documentType']
start_dt = dt.datetime(2021, 1, 1)
end_dt = dt.datetime(2021, 6, 30)
headlines = ek.get_news_headlines(query, raw_output = False, date_from=start_dt, date_to=end_dt, count = 100)