Can I pull the stories from News Alerts in Codebook?

Hi, this question is regarding the Codebook (Python 3 console). Using the news.get_story function, is there a way to pull specific headlines from my News Alerts, without the need for manually inputting the topics, sources, and filters into the parameters of said code?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @radocbe

    Thank you for reaching out to us.

    Typically, to get news stories, you need to know story IDs and you can get story IDs by from headlines.

    You can specfiy a query to get specific headlines. Otherwise, you will get all headlines. This is how the news API works.

    Another method to retrieve news is alerts API. For more information, please refer to this Message services delivery mechanism in RDP article.