Forum Discussion

newbie74's avatar
newbie74
Frequent Visitor
4 years ago
Solved

Unable connect Shopify to Power BI

Dear community,

 

i don't manage to connect Power BI to my Shopify site data.

In shopify, i have created a private app that generated an API key, A password and a URL containing both (note that this address is following this format of secure url "https://{apikey}:{password}@{hostname}/admin/api/2021-10/orders.json" therefore not sure if it would lead to all tables/data i have selected during the setup of the Shopify private app)

In Power BI, i do GET DATA / WEB / Basic Url and i paste the URL.

Power bi shows the Access Web Content window but tells me "we could not authenticate with the credentials provided..."  in anonymous mode.

in the basic mode, i tried entering my shopify admin credentials, it doesn't work either.

 

Anybody with some help would be highly appreciated.

 

Many thanks in advance

 

  • I have found the answer and thought i would share the exact steps.

    The Shopify API is a REST API.

     

    To get data within power BI, here are the steps in Power BI:

    1) Get DATA

    2) select WEB

    3) Enter the URL (as basic) from the private app in shopify ("https://{apikey}:{password}@{hostname}/admin/api/2021-10/orders.json")

    4) Select BASIC authentification

    5) Username is the API Key

    6) Password is the API Password

     

    And that's it, you will then get access to the data in JSON format, convert it to table, expand the records and clean the table.

     

    Many thanks

11 Replies

  • newbie74's avatar
    newbie74
    Frequent Visitor

    I have found the answer and thought i would share the exact steps.

    The Shopify API is a REST API.

     

    To get data within power BI, here are the steps in Power BI:

    1) Get DATA

    2) select WEB

    3) Enter the URL (as basic) from the private app in shopify ("https://{apikey}:{password}@{hostname}/admin/api/2021-10/orders.json")

    4) Select BASIC authentification

    5) Username is the API Key

    6) Password is the API Password

     

    And that's it, you will then get access to the data in JSON format, convert it to table, expand the records and clean the table.

     

    Many thanks

    • aslam07's avatar
      aslam07
      New Member

      Hi There,

       

      Could you please help me to create the Private API?

    • ReportRanger's avatar
      ReportRanger
      Icon for Helper III rankHelper III

      Hi newbie74 were you able to find a solution? As a workaround, maybe you can try to test your connection with a 3rd party connector. 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:

       

       

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

       

       

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

       

       

      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.

       

    • Asad-tech05's avatar
      Asad-tech05
      New Member

      Hi everyone,
      I want to connect shopify with power bi but i can't find any option. i know there're some apps but i want to it manually.
      Thanks

  • Shopify is now trying to retire the Rest API in favour of the GraphQL API. I have found that coding a GraphQL API integration in M really hard. I eventually switched to this out-of-the-box solution instead - https://vidi-corp.com/shopify-power-bi-connector/

     

    It comes with a free Power BI dashboard which I found super useful

  • Anonymous's avatar
    Anonymous
    Not applicable

    I can recommend a third-party tool to connect Shopify and Power Bi — Skyvia. This no-coding solution provides integration through a database or cloud data warehouse with automatic schema creation. Then you can connect Power BI to this database or data warehouse easily.