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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Issue with power BI API call to extract workspaces - https://api.powerbi.com/v1.0/myorg/admin/groups

Hi, 

 

I'm working on a tool which extracts metadata of power BI workspaces using APIs. For that, I'm using this particular API - https://api.powerbi.com/v1.0/myorg/admin/groups .

 

We have a huge amount of workspaces to extract (around 250000+) so we are doing it in batches of 5000 and calling the API. Since the API seems to have a rate limit, when the limit is reached , it returns a "Retry-After" response header which has the time to wait before we can make the next call. So we are sleeping the process for that much amount of time so that we can make a successful API call again. But the next time we hit the API again, we are still triggering the rate limit again even after waiting for the specified amount of time and this time the response doesn't seem to contain any "Retry-After" response header and this is causing issues and seems to be inconsistent. Can you please let us know in what circumstances do we not get this particular header? 

 

Can we consistently rely on the "Retry-After" response header or is there a better to way to handle this? Please let us know if this is a bug.

 

Thanks.

Status: Needs Info

Hi @KKSKR 

I don't have that much data to restore your scenario. Can you provide a screenshot of the page where you get the API?

 

Best Regards,
Community Support Team _ Ailsa Tao

Comments
v-yetao1-msft
Community Support
Status changed to: Needs Info

Hi @KKSKR 

I don't have that much data to restore your scenario. Can you provide a screenshot of the page where you get the API?

 

Best Regards,
Community Support Team _ Ailsa Tao