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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Brite
Helper I
Helper I

Power Query Pagination - Stripe REST API

Hello, my goal is to get all data from the dataset that is being called from Stripe. I am currently only getting 100 (maximum number of datasets pulled from Stripe). Stripe rest API URL parameter uses starting_after=[id number]. Is there a power query loop or return code that can replace the [id number] in the API URL parameter for every 100th id? My goal is to get all data from the dataset.   

 

Note: Stripe uses bearer token

 

This is what I have at the moment:

Brite_0-1632269766124.png

This is the table that id is located in:

Brite_1-1632269877949.png

 

base URL: https://api.stripe.com/v1/charges?limit=100&starting_after=ch_1234567910

 

Tried this pagination power query code from GitHub but did not work.

https://gist.github.com/MarkTiedemann/f667c75cc3d054b9b2bce25ea08bc631

 

Any help is very appreciated :)!

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Please see this video for how to do this.

Power BI - Tales From The Front - REST APIs - YouTube

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

1 REPLY 1
mahoneypat
Microsoft Employee
Microsoft Employee

Please see this video for how to do this.

Power BI - Tales From The Front - REST APIs - YouTube

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors