cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DMiradakis
Advocate II
Advocate II

Power BI REST API Pagination

Hey Power BI Community,

 

I've got a small question I need clarified. The official Power BI REST API documentation does not mention anywhere on how to handle pagination from requests to the Power BI REST API.

 

For example, if I'm querying a list of all of the workspaces in my Power BI tenant, and there are 100+ of them, the documentation does not mention how to handle pagination anywhere.

 

Am I correct in assuming that, given my example, all 100+ workspaces would be returned in my API request? In other words, pagination does not exist in the Power BI REST API?

 

Any clarification would be greatly appreciated.

 

Thank you!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

This documentation 

Groups - Get Groups - REST API (Power BI Power BI REST APIs) | Microsoft Docs

explicitly mentions pagination. $skip = offset, $top =limit

GET https://api.powerbi.com/v1.0/myorg/groups?$filter={$filter}&$top={$top}&$skip={$skip}

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

This documentation 

Groups - Get Groups - REST API (Power BI Power BI REST APIs) | Microsoft Docs

explicitly mentions pagination. $skip = offset, $top =limit

GET https://api.powerbi.com/v1.0/myorg/groups?$filter={$filter}&$top={$top}&$skip={$skip}

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.