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
xxyb720
Frequent Visitor

How to create a query that paginates for Shopify API?

I am able to get data from Shopify API using basic authentication. Link: https://shopname.myshopify.com/admin/api/2019-10/products.json

 

However, it doesn't return all the data. After some research I understand that I need to make a paginated request and iterate through the pages. Shopify documentation: https://help.shopify.com/en/api/guides/paginated-rest-results

 

I tried some codes (mostly using list.generated) I found in this community but none of them work for me. Then I found a post (https://community.powerbi.com/t5/Power-Query/API-calls-with-Pagination/td-p/323080) saying it doesn't seem to be currently possible for Power Query to look at the HTTP "Link" response header. If that's the case, did anyone have a custom data connector for shopify? Or any code that helps to make paginated queries. Thanks in advance!

4 REPLIES 4
ReportMaster
Post Patron
Post Patron

Hi @xxyb720 were you able to find a solution? As a workaround, maybe you can try to test your connection with a 3rd party connector, which pulls data from the Shopify API. I've tried windsor.ai, supemetrics and funnel.io. I stayed with windsor because it is much cheaper so just to let you know other options. In case you wonder, to make the connection first search for the Shopify connector in the data sources list:

 

SHOPIFY-1.jpg

 

After that, you need to follow instructions and install the windsor.ai app from the Shopify App Store:

 

SHOPIFY-1.5.png

 

then on preview and destination page you will see a preview of your Shopify fields

 

SHOPIFY-2.jpg

 

There just select the fields you need. Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url.

 

SELECT_DESTINATION_NEW.png

EugeneLebedev
Helper IV
Helper IV

Shopify API is too difficult to create a custom Power BI connector in my opinion. I would recommend instead to extract data into an Azure SQL Server database. This way you work around most of the Shopify API limitations. Here is a ready-made solution for that which includes the product table that you were referring to: https://vidi-corp.com/shopify-power-bi-connector/

ltopchyi
Helper III
Helper III

Hi @xxyb720 

You can take a look a this custom connector for Shopify & Power BI - https://apps.shopify.com/power-bi-connector-1 

Liuba

v-juanli-msft
Community Support
Community Support

Hi @xxyb720 

You can use the code below to get data from Shopify to Power BI.

http://shopify.topowerbi.com/ 

GET /admin/orders/#[id]/transactions.json.

 

Please refer to the following thread which connecting to Shopify with Power BI Desktop successfully.

https://community.powerbi.com/t5/Power-Query/API-web-link-to-shopify-only-50-rows-returned-in-query-...

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.