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
HassanMoosa
Helper I
Helper I

How to load complete data set from pagination API Call

Hello I am trying to load my dataset from api.  Records are saved in pagination formate.  Data is loaded successfully but I am unable to work with all record set (700 rows, from 7 pages) its just loading records from 1 page and 100 rows.  How can I get 100% records. Following is my query:

 

= Json.Document(Web.Contents("https://xyz.com?total_pages", [Headers=[#"key"="token=xyz", Xemail="xyz@gmail.com", #"Content-Type"="application/Json"]]))

 

steps performed.PNG

Thanks,

Hassan

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi Hassan,

 

Have a look at this thread I answered a while back to see if it can help you:

https://community.powerbi.com/t5/Power-Query/How-to-deal-with-paginated-API/m-p/3222229 

 

The key is to find the total amount of records available in your endpoint, create a column separated into page size values up to the total number of records, then run the API query against each page row.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

1 REPLY 1
BA_Pete
Super User
Super User

Hi Hassan,

 

Have a look at this thread I answered a while back to see if it can help you:

https://community.powerbi.com/t5/Power-Query/How-to-deal-with-paginated-API/m-p/3222229 

 

The key is to find the total amount of records available in your endpoint, create a column separated into page size values up to the total number of records, then run the API query against each page row.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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.