Forum Discussion
Anonymous
6 years agoNot applicable
Cursor Paginated data from Web API
Hi, I am calling a web api to grab some data which is paginated and I am struggling with how to get the next page of data as it is cursor based. When I call the api in PowerQuery (I'm connect...
ImkeF
6 years agoCommunity Champion
Hi Anonymous ,
so you have to navigate to the link table first.
Please try this:
let
myList = List.Generate( ()=>
[Result = Query4("https://api.brighttalk.com/v1/channel/10737/webcasts"), Counter = 0],
each [Counter] < 5,
each [Result = Query4(Table.LastN([Result]{[Name = "link"]}, 1)[#"Attribute:href"]), Counter = [Counter]+1],
each [Result])
in
myList
Anonymous
6 years agoNot applicable
Hi ImkeF ,
I've tried the code you suggested and although it's thrown an error I think we're making progress!
The first row returns data as expected but the subsequent rows show this error: