Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Chrissa
Frequent Visitor

Extract data from a URL with pagination, when the cursor is randomized

Hi, 

 

I am trying to extract information from export links, where the data is paginated and the cursors are a random combination of numbers, letters and signs. 

 

I find a lot of solutions for extracting data when the cursor is numerical and logically numbered (for example IMDB-examples where you enter pagination=1, 51, 101 and so on). Does anyone know how to work around this when there is no logic in the cursor-values?

 

The data I'm trying to extract is built up like this: https://www.########.net/Flex/1145365367436.json?t=AKHJBKHJKjhvykjbøpKKIUG-uujhvyiyu-jyyUYVUY&pagina....

When retrieving the data from the first page in pagination, the cursor value for the next page is in the meta. To extract the next page in pagination the URL logic is like this https://www.########.net/Flex/1145365367436.json?t=AKHJBKHJKjhvykjbøpKKIUG-uujhvyiyu-jyyUYVUY&pagina...

and so on.

 

Very grateful for any help!

1 REPLY 1
lbendlin
Super User
Super User

Use List.Generate or List.Accumulate. Or use a recursive function that exits when there's no more "next page" link.

It is very hard/close to impossible to help without access to the API (which you understandably shouldn't grant us).

 

This link shows a boilerplate implementation. Handling paging for Power Query connectors - Power Query | Microsoft Learn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors