Can't fetch stories for some storyid via lseg.data.news.get_story() python module

Dear Team ,
Facing issue with pulling stories for some storyids via python but these are visible when I navigate from workspace UI. Please guide me with this issue. I am appending below some example storyids for which I don't get any news stories.

using following method to fetch:
story = ld.news.get_story(str(storyid))

@raksina.samasiri can you please guide.

urn:link:webnews:20250222:nNRAvi5s4x:0

urn:link:webnews:20250311:nNRAvoi76a:0

urn:link:webnews:20250429:nNRAw7xo6p:0

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @kiosk1.dsim.mum

    Thank you for reaching out to us.

    It is a web news. You can the news API in the content layer to get a news URL. For example:

    from lseg.data.content import news
    …
    response = news.story.Definition("urn:link:webnews:20250222:nNRAvi5s4x:0").get_data()
    response.data.raw['webURL']
    

    You can also refer to this example.