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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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