I'm using the lseg-data Python library to fetch news data with get_headlines(). However, I get the f

Answers

  • QUESTION:

    I'm using the lseg-data Python library to fetch news data with get_headlines(). However, I get the following error: ScopeError: Insufficient scope for key=/data/news/v1/headlines, method=GET What steps do I need to take in order to fetch news successfully?

     

    The code I’m running is exactly the same as the example in GitHub: EX-1.01.05-News.ipynb.

     

    since I’ve been following the LSEG tutorial on GitHub today. It might be related, but I’d like to focus on resolving the news issue first.

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Siddhanth.V

    Thank you for reaching out to us.

    The "Missing scopes" indicates the user doesn't have permission to access the /data/news/v1/headlines endpoint used by the get_headlines() method.

    image.png

    Please contact the client's LSEG account team or sales team to verify the client's permission.