Whenever I want to search a company news under /data/news/beta1/headlines, I need a news code for that company. For example, for Microsoft, the code is MSFT.O. Is there a way that I can get all the codes for all companies so that I can use it for searching headlines?
You don't need a news code when you want to retrieve headlines. For example:
will retrieve all headlines. The query expression is optional.
If you want to query for specific companies, you include that as a simple text expression:
/data/news/beta1/headlines?query=Microsoft OR Apple OR Google
If you are specifically looking for RICs for a list of companies, then you can use the RIC search tool within the Developer portal: