{"id":2822,"date":"2018-03-07T03:38:27","date_gmt":"2018-03-07T03:38:27","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=2822"},"modified":"2024-03-06T23:53:14","modified_gmt":"2024-03-06T23:53:14","slug":"howto-import-json-rest-api-power-bi","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/","title":{"rendered":"How to import REST API in Power BI (Load JSON \/ SOAP XML)"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-2900 size-thumbnail\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export-150x150.png\" alt=\"Introduction icon json to power bi\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>In this article, we will learn how to <strong>import REST API in Power BI<\/strong>.<\/p>\n<p>Power BI is a very popular Business Analytic tool used to get business information. It is very popular because it is easy to install, simple to learn and very intuitive. Also, REST API is very popular these days and we wanted to show you a way to integrate them in Power BI with the help of the <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/\">ZappySys ODBC PowerPack<\/a>. This software includes powerful drivers to <strong>query REST API<\/strong> URL, Local <strong>XML \/ JSON files<\/strong> and <strong>XML SOAP Web Service<\/strong> with simple SQL queries.<\/p>\n<p>The following video will show how to import REST API in Power BI (JSON or XML Data):<br \/>\n[youtube https:\/\/www.youtube.com\/watch?v=-3OPfhMY1aI&amp;w=720&amp;h=405]\n<h2 style=\"text-align: left;\">Requirements<\/h2>\n<ol>\n<li>First, you will need to have <a href=\"https:\/\/powerbi.microsoft.com\/en-us\/desktop\/\" target=\"_blank\" rel=\"noopener\">Power BI Desktop (FREE)<\/a> installed<\/li>\n<li>In the second place, you will need to have internet access<\/li>\n<li>On third place, our <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/\">ZappySys ODBC Power Pack<\/a><\/li>\n<\/ol>\n<h2>Step-by-Step: Import REST API into Power BI<\/h2>\n<p>We&#8217;ll walk through the steps to import a REST API into Power BI. The steps outlined below focus on working with JSON APIs, but the same principles can be applied when importing SOAP XML Web Services or local JSON\/XML files.<\/p>\n<p>For demonstration purposes, we will utilize a REST API to retrieve data in JSON format. The example URL we&#8217;ll use is:<\/p>\n<pre class=\"lang:default decode:true \">https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Customers?$format=json<\/pre>\n<p>This URL leverages OData and presents information in JSON format. Our objective is to use the ZappySys ODBC Power Pack to establish a connection to this URL and retrieve the information seamlessly into Power BI.<\/p>\n<h3>Create ODBC DSN &#8211; JSON Driver<\/h3>\n<div class=\"content_block\" id=\"custom_post_widget-3331\">Once <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys ODBC PowerPack<\/a> is installed our next step is to Create and configure ODBC DSN. For example purpose, we will use ZappySys JSON Driver but steps are identical for most of ZappySys ODBC Drivers (e.g. XML Driver or CSV Driver)\r\n<ol>\r\n \t<li>Search for \"odbc\" in your start menu and click on ODBC (64 bits).\r\n* If you cant find this then you can also go to <span class=\"lang:default highlight:0 decode:true crayon-inline\">Start Menu &gt; ZappySys &gt; ODBC PowerPack &gt; Click on ODBC Data Sources (64-Bit)<\/span>. If you don't see ODBC 64 bit then most likely you are running 32-bit OS (So just click first ODBC Data Source)\r\n<div class=\"wp-caption alignnone\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/odbc-data-source-64-bits.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/odbc-data-source-64-bits.png\" alt=\"Open ODBC Data Source\" width=\"340\" height=\"434\" \/><\/a>\r\n<p class=\"wp-caption-text\">Open ODBC Data Source<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Go to <strong>User DSN Tab<\/strong> and press <strong>Add<\/strong>. If your DSN needs to be accessed by all users or some service account (like SQL Task Scheduler) then click on <a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/odb-data-source-administrator-add.png\" target=\"_blank\" rel=\"noopener\">System Tab<\/a> rather than User Tab.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-new-data-source-odbc-administrator.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-new-data-source-odbc-administrator.png\" alt=\"Create new ODBC DSN (User DSN Tab)\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Create new ODBC DSN (User DSN Tab)<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Add the ZappySys JSON Driver. It is installed with the ZappySys ODBC PowerPack.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-zappysys-json-driver.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-zappysys-json-driver.png\" alt=\"Add ZappySys JSON \/ REST Driver Connection\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Add ZappySys JSON \/ REST Driver Connection<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Enter a name for the Data source and configure other necessary properties (e.g. URL \/ Credentials). You can configure properties in two different modes (<strong>Simple Mode (Default)<\/strong> or <strong>Advanced Mode<\/strong>). For Our JSON Driver Example enter URL and Set Data Format as <strong>OData<\/strong> (For Simple Mode Check Input \/ Output Format Tab, For Advanced Mode Check. HTTP Advanced Settings).\u00a0<strong> If your API is not OData compliant or you are not sure then keep it DEFAULT<\/strong>.\r\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Customers?$format=json<\/pre>\r\n&nbsp;\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/configure-odbc-dsn-rest-api-connection-simple-view.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/powerbi1.png\" alt=\"Configure API Connection - Simple Mode (User Interface Mode)\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Configure API Connection - Simple Mode (User Interface Mode)<\/p>\r\n\r\n<\/div>\r\n&nbsp;<\/li>\r\n \t<li>Here is the Advanced view with all properties in Grid mode.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/configure-odbc-dsn-rest-api-connection-advanced-view.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/powerbi2.png\" alt=\"Configure API Connection - Advanced Mode (Property Grid Mode)\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Configure API Connection - Advanced Mode (Property Grid Mode)<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Finally, you can go to preview tab. Click on the select table to generate your default SQL Query for API service and press <strong>Preview data<\/strong> to see the magic :).When you click Preview data it parses your SQL Query and sends HTTP Request to fetch Data from JSON service. Once the response is returned it parse nested JSON structure and turns into rows\/columns.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/zappysys-select-table-preview.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/powerbi4.png\" alt=\"Select Table for preview\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Select Table for preview<\/p>\r\n\r\n<\/div>\r\n&nbsp;<\/li>\r\n \t<li>\r\n<div style=\"display: block; margin-bottom: 1em;\">Once you select Table name from drop down, UI generates default query for you with all possible column names for selected table like below.<\/div>\r\n<div style=\"margin-bottom: 1em;\"><strong>Sample Query<\/strong><\/div>\r\n<pre class=\"lang:tsql decode:true\">select \r\n\t\"CustomerID\",\r\n\t\"CompanyName\",\r\n\t\"ContactName\",\r\n\t\"ContactTitle\",\r\n\t\"Address\",\r\n\t\"City\",\r\n\t\"Region\",\r\n\t\"PostalCode\",\r\n\t\"Country\",\r\n\t\"Phone\",\r\n\t\"Fax\"\r\n from [value]<\/pre>\r\n&nbsp;<\/li>\r\n \t<li>To review more examples, make sure to <strong>click on View Examples<\/strong> button to see many more ways to call API services and extract\/transform data\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/examples-call-rest-api-json-sql-server-zappysys-odbc-driver.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/powerbi3.png\" alt=\"ZappySys ODBC Driver Examples - Call JSON \/ REST API\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">ZappySys ODBC Driver Examples - Call JSON \/ REST API<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Now last thing you can try is use Query Builder. Query Builder is an easy way to Build Queries by Overriding certain setting defined on DSN. ZappySys API SQL Query language support WITH Clause which can override settings defined on DSN UI. Usually you can Define Connection related settings on DSN and override Dynamic Settings in your SQL Query so you dont have to create many DSN for each API URL.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/zappysys-api-sql-query-builder.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/powerbi5.png\" alt=\"Using API SQL Query Builder\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Using API SQL Query Builder<\/p>\r\n\r\n<\/div><\/li>\r\n<\/ol>\r\n<strong>Transfer DSN settings<\/strong>\r\n\r\nThere will be a time when you like to create similar ODBC DSN on a totally different machine. If you wish to copy settings of one DSN to different DSN then you can use Load Connection String Feature.\r\n\r\nFirst copy Connection string produced by UI settings on DSN configuration by clicking <strong>Copy Connection String Button<\/strong> (Found at the bottom of UI). Then you can go to new DSN and click Load connection string to new DSN by clicking <strong>Load Connection String Button<\/strong>.\r\n\r\n<strong>Understanding ODBC Connection String Format<\/strong>\r\n\r\nZappySys ODBC Drivers can be called in two different ways from your Application (e.g. <a href=\"https:\/\/zappysys.com\/blog\/calling-rest-api-in-c\/\" target=\"_blank\" rel=\"noopener\">C#<\/a>, <a href=\"https:\/\/zappysys.com\/blog\/set-rest-python-client\/\" target=\"_blank\" rel=\"noopener\">Python<\/a>, <a href=\"https:\/\/zappysys.com\/blog\/connect-java-to-rest-api-json-soap-xml\/\" target=\"_blank\" rel=\"noopener\">JAVA<\/a> )\r\n<ol>\r\n \t<li>Using <strong>Driver Name<\/strong> in the Connection String (You\u00a0can use Copy Connection String option)<\/li>\r\n \t<li>Using <strong>DSN Name<\/strong> in the Connection String<\/li>\r\n<\/ol>\r\n<strong>Using Driver Name in the Connection String<\/strong>\r\n\r\n<strong>Syntax:<\/strong>\r\n<pre class=\"lang:default highlight:0 decode:true\">DRIVER={DRIVER-NAME-GOES-HERE}[;Prop1=xxxxxx][;Prop2=xxxxxx] ....\u00a0[;PropN=xxxxxx]<\/pre>\r\n<strong>Examples:<\/strong>\r\n<pre class=\"lang:default highlight:0 decode:true\">DRIVER={ZappySys JSON Driver}\r\nDRIVER={ZappySys JSON Driver};DataPath='c:\\mydata.json'\r\nDRIVER={ZappySys XML Driver};DataPath='http:\/\/myserver\/api\/xml\/getOrders'\r\nDRIVER={ZappySys XML Driver};DataPath='c:\\mydata.xml'<\/pre>\r\n<strong>Using DSN Name in the Connection String<\/strong>\r\n\r\n<strong>Syntax:<\/strong>\r\n<pre class=\"lang:default highlight:0 decode:true\">DRIVER={DRIVER-NAME-GOES-HERE}[;Prop1=xxxxxx][;Prop2=xxxxxx] ....\u00a0[;PropN=xxxxxx]<\/pre>\r\n<strong>Examples:<\/strong>\r\n<pre class=\"lang:default highlight:0 decode:true\">DSN=MyJsonAPI_DSN\r\nDSN=MyJsonAPI_DSN;DataPath='http:\/\/myserver\/api\/json\/getOrders'<\/pre><\/div>\n<h3>Connect to REST API data source in Power BI (Connect JSON \/ XML data)<\/h3>\n<div class=\"content_block\" id=\"custom_post_widget-6247\">In the previous section, we configured and added the ZappySys drivers in the ODBC Driver Administrator with information to connect to REST API. We queried the REST API data in JSON \/ XML format. Now let's look at how to import REST API data in Power BI using from ODBC connection.\r\n<ol>\r\n \t<li>Open Power BI Desktop and select the <strong>Get data\u00a0<\/strong>option.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/Get-data-Power-bi-desktop.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/Get-data-Power-bi-desktop.png\" alt=\"Get data using power bi\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Get data using Power BI<\/p>\r\n\r\n<\/div><\/li>\r\n<\/ol>\r\n<ol>\r\n \t<li>Once Get data is clicked, Go to <strong>Other<\/strong> and select <strong>ODBC.<\/strong>\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-odbc-other-data-source.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/odbc-power-bi-import-rest-api-2-1.png\" alt=\"Import ODBC data source in power bi\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Import ODBC data source in Power BI<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>After that select ODBC DSN name from the DSN dropdown<\/li>\r\n \t<li>Now it's time to import data. Basically, there are two modes to import data. <strong>Table Mode<\/strong> and <strong>Query Mode<\/strong>. Query mode is the most common but we will show you both ways.<\/li>\r\n \t<li><strong>Import using Power BI Query Mode:\u00a0\u00a0<\/strong>Select your DSN and click Advanced Option to enter custom SQL Query to Import your REST API data. You can use ODBC DSN Data sources Preview tool to generate SQL Query. For example you can enter query like below. If you are not sure use Query builder (Found on Driver Preview Window)\r\n<pre class=\"lang:tsql decode:true\">SELECT * FROM $\r\nWITH(SRC='https:\/\/my-api-url')<\/pre>\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-from-rest-api-url-odbc-json-driver.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/odbc-power-bi-import-rest-api-1-1.png\" alt=\"Import JSON \/ REST API data in Power BI using SQL Query Mode\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Import JSON \/ REST API data in Power BI using SQL Query Mode<\/p>\r\n\r\n<\/div>\r\n&nbsp;<\/li>\r\n \t<li><strong>Import using Power BI Table Mode:\u00a0 <\/strong>If you don't specify SQL query under advanced options then you may get a chance to select Table name to import and Credentials. If Power BI asks for credentials then select <strong>Windows<\/strong> and connect.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/select-credentials-zappysys.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/odbc-power-bi-import-rest-api-3.png\" alt=\"Select credentials for ODBC Source\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Select credentials for ODBC Source<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Once you enter select table, you can choose Select data to import and click OK (Below screeenshot is for the Table mode import when no SQL specified. You can pick desired table to import)\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/Navigator-odbc-json-get-values.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/odbc-power-bi-import-rest-api-4.png\" alt=\"Select Table to import in Power BI\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Select Table to import in Power BI<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>You can also display data in map using Map visualization like below. Press the map and check Address this option will display the addresses in a map.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/maps-power-view.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/odbc-power-bi-import-rest-api-5.png\" alt=\"see address in power bi map\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">See Address data in power bi map<\/p>\r\n\r\n<\/div>\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/maps-address-power-bi.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/odbc-power-bi-import-rest-api-6.png\" alt=\"Map visualization in Power BI\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Map visualization in Power BI<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Now, let's display data in Table Format. Select in values more columns and select the data grid to visualize the data.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/visualization-power-bi-select-columns.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/odbc-power-bi-import-rest-api-7.png\" alt=\"Select columns in Power BI\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Select columns in Power BI<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Once data is displayed, Right click on the data and select <strong>Show Data<\/strong>.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-show-data.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/odbc-power-bi-import-rest-api-8.png\" alt=\"show data in power bi\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">Show data in Power BI<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>The data will be displayed\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-read-data.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/odbc-power-bi-import-rest-api-9.png\" alt=\"View Power BI Table data\" \/>\r\n<\/a>\r\n<p class=\"wp-caption-text\">read json information data<\/p>\r\n\r\n<\/div><\/li>\r\n<\/ol><\/div>\n<h3>Publish Power BI dashboard<\/h3>\n<ol>\n<li>In order to publish the report, press <strong>Publish<\/strong><\/li>\n<li>Press <strong>Save<\/strong>\n<div id=\"attachment_2839\" style=\"width: 467px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/save-power-bi-report.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2839\" class=\"size-full wp-image-2839\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/howto-import-json-rest-api-power-bi-1.png\" alt=\"Save changes in power bi\" width=\"457\" height=\"159\" \/><\/a><p id=\"caption-attachment-2839\" class=\"wp-caption-text\">Save changes in Power BI<span style=\"font-size: 16px;\">:<\/span><\/p><\/div>\n<p>&nbsp;<\/li>\n<li><span style=\"font-size: 16px;\">Select a workspace for the report<\/span>\n<div id=\"attachment_2838\" style=\"width: 604px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/publish-Power-bi-select-workplace.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2838\" class=\"size-full wp-image-2838\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/howto-import-json-rest-api-power-bi-2.png\" alt=\"choose power bi workplace\" width=\"594\" height=\"340\" \/><\/a><p id=\"caption-attachment-2838\" class=\"wp-caption-text\">Select Power BI workplace<span style=\"font-size: 16px;\">.<\/span><\/p><\/div><\/li>\n<li>And that is all. You have now your report ready.<\/li>\n<\/ol>\n<h2><\/h2>\n<h2>Import data using ODBC ConnectionString (DSN-less)<\/h2>\n<p>Let&#8217;s explore the process of importing data using the ODBC Driver without the need for configuring an ODBC DSN.<\/p>\n<p>When importing data, you have the option to either use an ODBC DSN or a Direct ConnectionString. This section will guide you through the steps of utilizing the ODBC ConnectionString.<\/p>\n<p>After opting for the ODBC option to retrieve data, you will encounter the &#8220;Select ODBC Data Source&#8221; screen. To proceed without a DSN, follow these steps:<\/p>\n<ol>\n<li>Change the DSN dropdown to &#8220;(none).&#8221;<\/li>\n<li>Enter the full ODBC ConnectionString, adhering to the syntax below. You can construct your own connection string using the ODBC Driver UI and utilize the &#8220;Copy ConnectionString&#8221; option.<br \/>\n<strong>Syntax:<\/strong>\u00a0 <span class=\"lang:default highlight:0 decode:true crayon-inline\">Driver={Your Driver Name}[;Property1=value][;Property2=value]&#8230;&#8230;<\/span><\/li>\n<li>Here is a screenshot with ConnectionString Setting\n<div id=\"attachment_9388\" style=\"width: 824px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-dsnless-import-odbc-connectionstring.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9388\" class=\"size-full wp-image-9388\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/howto-import-json-rest-api-power-bi-3-1.png\" alt=\"Import Data from ODBC Driver - DSN less mode (Use Connection String)\" width=\"814\" height=\"716\" \/><\/a><p id=\"caption-attachment-9388\" class=\"wp-caption-text\">Import Data from ODBC Driver &#8211; DSN less mode (Use Connection String)<\/p><\/div><\/li>\n<li>Click &#8220;Next&#8221; to select the authentication method. Choose &#8220;Windows&#8221; and input the password value if necessary. If your connection string already includes the Password attribute, there&#8217;s no need to worry.\n<div id=\"attachment_9389\" style=\"width: 718px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-odbc-connectionstring-enter-password.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9389\" class=\"size-full wp-image-9389\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/howto-import-json-rest-api-power-bi-4.png\" alt=\"Import Data from ODBC Driver - using Connection String - With Password Attribute\" width=\"708\" height=\"383\" \/><\/a><p id=\"caption-attachment-9389\" class=\"wp-caption-text\">Import Data from ODBC Driver &#8211; using Connection String &#8211; With Password Attribute<\/p><\/div><\/li>\n<\/ol>\n<h2>POST data to REST API URL<\/h2>\n<p>Up until now, we&#8217;ve explored the process of fetching data from URLs and importing it into Power BI. However, in certain scenarios, APIs may necessitate the use of the PUT or POST method. These methods involve submitting parameters in the body and receiving a response.<\/p>\n<p>For a more in-depth understanding of how to seamlessly POST data to a URL in Power BI, watch the informative video below.<\/p>\n<div class=\"lyte-wrapper fourthree\" style=\"width:480px;max-width:100%;margin:5px auto;\"><div class=\"lyMe\" id=\"WYL_K7qV_PJup1g\"><div id=\"lyte_K7qV_PJup1g\" data-src=\"https:\/\/zappysys.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2FK7qV_PJup1g%2Fhqdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\"><\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/K7qV_PJup1g\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FK7qV_PJup1g%2F0.jpg\" alt=\"\" width=\"480\" height=\"340\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:480px;margin:5px auto;\"><\/div><\/p>\n<h2>Calling XML SOAP Web Service in Power BI<\/h2>\n<p>So far, we have looked at examples to consume data using JSON driver. Now let&#8217;s look at an example, to call XML SOAP Web Service in Power BI.<\/p>\n<div class=\"content_block\" id=\"custom_post_widget-3870\">To call SOAP API you need to know Request XML Body Structure.\u00a0If you are not sure how to create SOAP Request body then no worries. <a href=\"https:\/\/zappysys.com\/blog\/calling-soap-web-service-in-ssis-xml-source\/\" target=\"_blank\" rel=\"noopener\">Check this article<\/a> to learn how to generate SOAP Request body using the Free tool <a href=\"https:\/\/www.soapui.org\/downloads\/latest-release.html\" target=\"_blank\" rel=\"noopener\">SoapUI<\/a>. Basically, you have to use SoapUI to generate Request XML and after that, you can replace parameters as needed in the generated body.\r\n<h3>What is SOAP Web Service?<\/h3>\r\nIf you are new to SOAP Web Service sometimes referred as XML Web Service then please read some concept\u00a0about\u00a0SOAP\u00a0Web service standard <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/ms996507.aspx?f=255&amp;MSPPError=-2147217396\" target=\"_blank\" rel=\"noopener\">from this link<\/a>\r\n\r\nThere are two important aspects in SOAP Web service.\r\n<ol>\r\n \t<li>Getting WSDL file or URL<\/li>\r\n \t<li>Knowing exact Web Service URL<\/li>\r\n<\/ol>\r\n<h3>What is WSDL<\/h3>\r\nIn very simple term WSDL (often pronounced as whiz-dull) is nothing but a document which describes Service metadata (e.g. Functions you can call, Request parameters, response structure etc). Some service simply give you WSDL as xml file you can download on local machine and then\u00a0analyze or sometimes you may get direct URL (e.g. http:\/\/api.mycompany.com\/hr-soap-service\/?wsdl )\r\n<h3>Example SQL Query for SOAP API call using ZappySys XML Driver<\/h3>\r\nHere is an example SQL query you can write to call SOAP API. If you not sure about many details then check next few sections on how to use XML Driver User Interface to build desired SQL query to POST data to XML SOAP Web Service without any coding.\r\n<pre class=\"lang:tsql decode:true\">SELECT * FROM $\r\nWITH(\r\n\t Src='http:\/\/www.holidaywebservice.com\/HolidayService_v2\/HolidayService2.asmx'\r\n\t,DataConnectionType='HTTP'\r\n\t,CredentialType='Basic' --OR SoapWss\r\n\t,SoapWssPasswordType='PasswordText'\r\n\t,UserName='myuser'\r\n\t,Password='pass$$w123'\r\n\t,Filter='$.soap:Envelope.soap:Body.GetHolidaysAvailableResponse.GetHolidaysAvailableResult.HolidayCode[*]'\r\n\t,ElementsToTreatAsArray='HolidayCode'\t\r\n\t,RequestMethod='POST'\t\r\n\t,Header='Content-Type: text\/xml;charset=UTF-8 || SOAPAction: \"http:\/\/www.holidaywebservice.com\/HolidayService_v2\/GetHolidaysAvailable\"'\r\n\t,RequestData='\r\n&lt;soapenv:Envelope xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\" xmlns:hol=\"http:\/\/www.holidaywebservice.com\/HolidayService_v2\/\"&gt;\r\n   &lt;soapenv:Header\/&gt;\r\n   &lt;soapenv:Body&gt;\r\n      &lt;hol:GetHolidaysAvailable&gt;\r\n         &lt;!--type: Country - enumeration: [Canada,GreatBritain,IrelandNorthern,IrelandRepublicOf,Scotland,UnitedStates]--&gt;\r\n         &lt;hol:countryCode&gt;UnitedStates&lt;\/hol:countryCode&gt;\r\n      &lt;\/hol:GetHolidaysAvailable&gt;\r\n   &lt;\/soapenv:Body&gt;\r\n&lt;\/soapenv:Envelope&gt;'\r\n)<\/pre>\r\nNow let's look at steps to create SQL query to call SOAP API. Later we will see how to generate code for your desired programming language (e.g. C# or SQL Server)\r\n<h3>Video Tutorial - Introduction to SOAP Web Service and SoapUI tool<\/h3>\r\nBefore we dive into details about calling SOAP API using ZappySys XML Driver, lets first understand what is SOAP API and how to create SOAP requests using SoapUI tool. You will learn more about this process in the\u00a0later section. The video contains some fragment about using SOAP API in SSIS but just ignore that part because we will be calling Soap API using ZappySys ODBC Driver rather than SSIS Components.\r\n\r\n&nbsp;\r\n\r\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/d_x5bgGjg0Y?rel=0&amp;showinfo=0\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe>\r\n<h3>Using SoapUI to test SOAP API call \/ Create Request Body XML<\/h3>\r\nAssuming you have downloaded and installed <a href=\"https:\/\/www.soapui.org\/downloads\/latest-release.html\" target=\"_blank\" rel=\"noopener\">SoapUI from here<\/a>, now we are ready to use WSDL for your SOAP Web Service Calls. If you do not have WSDL file or URL handy then contact your API provider (sometimes you just have to add <strong>?wsdl\u00a0<\/strong>at the end of your Service URL to get WSDL so try that. Example: http:\/\/mycompany\/myservice?wsdl ).\r\n\r\nIf you don't\u00a0know what is WSDL then in short, WSDL is <strong>Web service Description Language<\/strong> (i.e. XML file which describes your SOAP Service). WSDL helps to craft SOAP API request Body for ZappySys XML Driver. So Let's get started.\r\n<ol>\r\n \t<li>Open SoapUI and click SOAP button to create new SOAP Project<\/li>\r\n \t<li>Enter WSDL URL or File Path of WSDLFor example WSDL for our sample service can be accessed via this URL\r\n<pre class=\"lang:default highlight:0 decode:true\">http:\/\/www.dneonline.com\/calculator.asmx?wsdl<\/pre>\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-api-import-wsdl-new-soapui-project.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3871\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-14.png\" alt=\"Create new SOAP API Project in SoapUI tool for SOAP API Testing\" width=\"486\" height=\"349\" \/><\/a>\r\n<div style=\"margin-bottom: 1em;\">Create new SOAP API Project in SoapUI tool for SOAP API Testing<\/div><\/li>\r\n \t<li>Once WSDL is loaded you will see possible operations you can call for your SOAP Web Service.<\/li>\r\n \t<li>If your web service requires credentials then you have to configure it. There are two common credential types for public services (<strong>SOAP WSS<\/strong> or <strong>BASIC<\/strong> )\r\n<ol>\r\n \t<li>\r\n<div style=\"margin-bottom: 1em;\">To use <strong>SOAP WSS Credentials<\/strong> select request node and enter UserId, Password, and <strong>WSS-PasswordType<\/strong> (PasswordText or PasswordHash)<\/div>\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-api-pass-soap-wss-credentials-userid-password.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3872 alignnone\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-2.png\" alt=\"Configure SOAP WSS Credentials for SoapUI (SOAP API Testing Tool)\" width=\"294\" height=\"544\" \/><\/a>\r\n<div style=\"display: block;\">Configure SOAP WSS Credentials for SoapUI (SOAP API Testing Tool)<\/div><\/li>\r\n \t<li>To use <strong>BASIC Auth<\/strong> Credentials select request node and double-click it.\u00a0At the bottom click on Auth (Basic) and From Authorization dropdown click Add New and Select Basic.<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-api-pass-basic-authentication-userid-password.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3873\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-2.png\" alt=\"Configure Basic Authorization for SoapUI (SOAP API Testing Tool)\" width=\"616\" height=\"653\" \/><\/a>\r\n<div style=\"margin-bottom: 1em;\">Configure Basic Authorization for SoapUI (SOAP API Testing Tool)<\/div><\/li>\r\n<\/ol>\r\n<\/li>\r\n \t<li>Now you can test your request first Double-click on the request node to open request editor.<\/li>\r\n \t<li>Change necessary parameters, remove optional or unwanted parameters. If you want to regenerate request you can click on <strong>Recreate default request toolbar icon<\/strong>.\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/06\/create-soap-request-with-optional-parameters-soapui.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2812\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-4.png\" alt=\"Create SOAP Request XML (With Optional Parameters)\" width=\"807\" height=\"315\" \/><\/a>\r\n<div style=\"margin-bottom: 1em;\">Create SOAP Request XML (With Optional Parameters)<\/div><\/li>\r\n \t<li>Once your SOAP Request XML is ready, <strong>Click the Play button<\/strong> in the toolbar to execute SOAP API Request and Response will appear in Right side panel.\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/soapui-test-soap-api-request-response-edit-xml-body.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3874\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-5.png\" alt=\"Test SOAP API using SoapUI Tool (Change Default XML Body \/ Parameters, Execute and See Response)\" width=\"1216\" height=\"511\" \/><\/a>\r\nTest SOAP API using SoapUI Tool (Change Default XML Body \/ Parameters, Execute and See Response)<\/li>\r\n<\/ol>\r\n<h3>Create DSN using ZappySys XML Driver to call SOAP API<\/h3>\r\nOnce you have tested your SOAP API in SoapUI tool, we are ready to use ZappySys XML driver to call SOAP API in your preferred BI tool or Programming language.\r\n<ol>\r\n \t<li>First open <strong>ODBC Data Sources<\/strong> (search ODBC in your start menu\u00a0or go under ZappySys &gt; ODBC PowerPack &gt; <strong>ODBC 64 bit<\/strong>)<\/li>\r\n \t<li>Goto <strong>System DSN<\/strong> Tab (or User DSN which is not used by Service account)<\/li>\r\n \t<li>Click <strong>Add<\/strong> and Select ZappySys XML Driver\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/zappysys-odbc-xml-soap-api-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3875\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-6.png\" alt=\"ZappySys ODBC Driver for XML \/ SOAP API\" width=\"593\" height=\"459\" \/><\/a>\r\nZappySys ODBC Driver for XML \/ SOAP API<\/li>\r\n \t<li>Configure API URL, Request Method and Request Body as below\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-web-service-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3876\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-7.png\" alt=\"ZappySys XML Driver - Calling SOAP API - Configure URL, Method, Body\" width=\"916\" height=\"874\" \/><\/a>\r\nZappySys XML Driver - Calling SOAP API - Configure URL, Method, Body<\/li>\r\n \t<li><strong>(This step is Optional)<\/strong> If your SOAP API requires credentials then Select Connection Type to HTTP and configure as below.\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/soap-api-call-credential-basic-soap-wss-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3877\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-8.png\" alt=\"ZappySys XML Driver - Configure SOAP WSS Credentials or Basic Authorization (Userid, Password)\" width=\"564\" height=\"483\" \/><\/a>\r\n<div style=\"display: block;\">ZappySys XML Driver - Configure SOAP WSS Credentials or Basic Authorization (Userid, Password)<\/div><\/li>\r\n \t<li>Configure-Request Headers as below (You can get it from Request &gt; Raw tab from SoapUI after you test the request by clicking the Play button)\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/set-soap-api-request-headers-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3881\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-9.png\" alt=\"Configure SOAP API Request Headers - ZappySys XML Driver\" width=\"1009\" height=\"747\" \/><\/a>\r\nConfigure SOAP API Request Headers - ZappySys XML Driver<\/li>\r\n \t<li>Once credentials entered you can select Filter to extract data from the desired node. Make sure to select array node (see special icon) or select the node which contains all necessary columns if you don't have array node.\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/soap-api-query-select-filter-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3882\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-10.png\" alt=\"Select Filter - Extract data from nested XML \/ SOAP API Response (Denormalize Hierarchy)\" width=\"809\" height=\"594\" \/><\/a>\r\nSelect Filter - Extract data from nested XML \/ SOAP API Response (Denormalize Hierarchy)<\/li>\r\n \t<li>If prompted select yes to treat selected node as Array (This is helpful when you expect one or more record for selected node)\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/xml-api-array-handling-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3883\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-11.png\" alt=\"Treat selected node as XML Array Option for SOAP API Response XML\" width=\"655\" height=\"572\" \/><\/a>\r\nTreat selected node as XML Array Option for SOAP API Response XML<\/li>\r\n<\/ol>\r\n<h3>Preview SOAP API Response \/ Generate SQL Code for SOAP API Call<\/h3>\r\nOnce you configure settings for XML Driver now you can preview data or generate example code for desired language (e.g. C#, Python, Java, SQL Server).\r\n\r\nGo to Preview tab and you will see default query generated based on settings you entered in previous sections. Attributes listed in WITH clause are optional. If you omit attribute in WITH clause it will use it from Properties tab.\r\n<h3>Preview Data<\/h3>\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-web-service-zappysys-xml-api-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3884\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-12.png\" alt=\"Preview SOAP API Response in ZappySys XML Driver\" width=\"808\" height=\"780\" \/><\/a>\r\nPreview SOAP API Response in ZappySys XML Driver\r\n<h3>Generate Code Option<\/h3>\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/zappysys-driver-code-generator.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3885\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-13.png\" alt=\"Generate Example Code for ZappySys Driver\" width=\"572\" height=\"618\" \/><\/a>\r\n<div style=\"display: block;\">Generate Example Code for ZappySys Driver<\/div><\/div>\n<h2>SOAP \/ REST API pagination in Power BI<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-3892\"><div style=\"margin-bottom: 1em;\">Even we set up ODBC Data Source to get the data, it may not be enough. Usually, if you are getting a huge data set from API provider, it won't give it to you in one HTTP response. Instead, it gives back only a subset of data and provides a mechanism for data pagination. The good news is that\u00a0<em>ZappySys ODBC Driver<\/em> includes many options to cover virtually any pagination method.<\/div>\r\n<div><span style=\"font-size: 16px;\">Below you will find a few examples of API pagination. If you need something more sophisticated check the below link (the article was written for SSIS PowerPack but UI options and concepts apply to ODBC Driver too):<\/span><\/div>\r\n<div style=\"margin-bottom: 1em;\"><a href=\"https:\/\/zappysys.com\/blog\/ssis-rest-api-looping-until-no-more-pages-found\/\" target=\"_blank\" rel=\"noopener\">https:\/\/zappysys.com\/blog\/ssis-rest-api-looping-until-no-more-pages-found\/<\/a><\/div>\r\n<h3>Paginate by Response Attribute<\/h3>\r\nThis example shows how to paginate API calls where you need to paginate until the last page detected. In this example, next page is indicated by some attribute called nextlink (found in response). If this attribute is missing or null then it stops fetching the next page.\r\n<pre class=\"lang:tsql decode:true codeblock\">SELECT * FROM $\r\nWITH(\r\nSRC=@'https:\/\/zappysys.com\/downloads\/files\/test\/pagination_nextlink_inarray_1.json'\r\n,NextUrlAttributeOrExpr = '$.nextlink'  --keep reading until this attribute is missing. If attribute name contains dot then use brackets like this $.['my.attr.name']\r\n)<\/pre>\r\n<h3>Paginate by URL Parameter (Loop until certain StatusCode)<\/h3>\r\nThis example shows how to paginate API calls where you need to pass page number via URL. The driver keeps incrementing page number and calls next URL until the last page detected (401 error). There are few ways to indicate the last page (e.g. By status code, By row count, By response size). If you don't specify end detection then it will use the default (i.e. No records found).\r\n<pre class=\"lang:tsql decode:true codeblock\">SELECT * FROM $\r\nWITH (\r\nSRC=@'https:\/\/zappysys.com\/downloads\/files\/test\/page-xml.aspx?page=1&amp;mode=DetectBasedOnResponseStatusCode'\r\n,PagingMode='ByUrlParameter'\r\n,PagingByUrlAttributeName='page'\r\n,PagingByUrlEndStrategy='DetectBasedOnResponseStatusCode'\r\n,PagingByUrlCheckResponseStatusCode=401\r\n,IncrementBy=1\r\n)<\/pre>\r\n<h3>Paginate by URL Path (Loop until no record)<\/h3>\r\nThis example shows how to paginate API calls where you need to pass page number via URL Path. The driver keeps incrementing page number and calls next URL until the last page is detected. There are few ways to indicate the last page (e.g. By status code, By row count, By response size). If you don't specify end detection then it will use the default (i.e. No records found).\r\n<pre class=\"lang:tsql decode:true codeblock\">SELECT * FROM $\r\nWITH (\r\nSRC=@'https:\/\/zappysys.com\/downloads\/files\/test\/cust-&lt;%page%&gt;.xml'\r\n,PagingMode='ByUrlPath'\r\n,PagingByUrlAttributeName='&lt;%page%&gt;'\r\n,PagingByUrlEndStrategy='DetectBasedOnRecordCount'\r\n,IncrementBy=1\r\n)<\/pre>\r\n<h3>Paginate by Header Link (RFC 5988)<\/h3>\r\nAPI like GitHub \/ Wordpress use Next link in Headers (<a href=\"https:\/\/tools.ietf.org\/html\/rfc5988\" target=\"_blank\" rel=\"noopener\">RFC 5988<\/a>)\r\n<pre class=\"lang:default decode:true \">SELECT * FROM $\r\nLIMIT 25\r\nWITH(\r\n\t Src='https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/categories?per_page=10'\r\n\t,PagingMode='ByResponseHeaderRfc5988'\r\n\t,WaitTimeMs='200' --\/\/wait 200 ms after each request\r\n)<\/pre>\r\n&nbsp;<\/div>\n<h2>SOAP \/ REST API\u00a0Error Handling in Power BI<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-3894\">Sometimes errors occur... they just do and there is nothing you can do! Or can you? Actually, in ODBC PowerPack you can handle them in two ways.\r\n<h3>METHOD 1 - Using Error Handling Options<\/h3>\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3949\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-api-error-handling-1.png\" alt=\"\" width=\"668\" height=\"702\" \/>\r\n<h4>When to use?<\/h4>\r\nYou may want to use them when your source is a resource located\u00a0on\u00a0the Internet; e.g. a file on a website, a file on an FTP server or just a plain API HTTP response. By default, when a remote server returns an error, data retrieval is stopped, an error is raised and no data is given back to you. This might not be always desirable.\r\n<h4>Scenario 1<\/h4>\r\nImagine a scenario, that there is a\u00a0web server which\u00a0each day at 12 AM releases a new JSON file with\u00a0that day's date as filename, e.g. <span style=\"text-decoration: underline;\"><em>http:\/\/www.some-server.com\/data\/2018-06-20.json<\/em><\/span>. And, of course, you want to download it and use it daily in your Power BI report. But you have a problem: Power BI report data sources are\u00a0refreshed each\u00a0hour and you may get\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/HTTP_404\" target=\"_blank\" rel=\"noopener\">HTTP 404 status code<\/a>\u00a0(no file was found) when a\u00a0file is not released yet. Which consequentially means other data sources won't be updated as well and you will see old and cached data on the report. That's where\u00a0you could use\u00a0<strong><span class=\"lang:default highlight:0 decode:true crayon-inline\">Continue on any error<\/span><\/strong>\u00a0or <strong><span class=\"lang:default highlight:0 decode:true crayon-inline\">Continue when Url is invalid or missing (404 Errors)<\/span><\/strong>\u00a0to avoid an error being raised and let other data sources to be updated.\r\n<h4>Scenario 2<\/h4>\r\nAnother scenario is when you expect a web server to raise some kind of HTTP error when accessing a URL. You don't want ODBC Data Source to raise an error but instead, you want to get response data. That's where you can use\u00a0<strong><span class=\"lang:default highlight:0 decode:true crayon-inline\">Continue on any error<\/span><\/strong>\u00a0or alike together with\u00a0\u00a0<strong><span class=\"lang:default highlight:0 decode:true crayon-inline\">Get response data on error<\/span><\/strong>\u00a0to continue on an error and get the data:\r\n\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3961 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-get-response-data-on-error.png\" alt=\"\" width=\"547\" height=\"235\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-get-response-data-on-error.png 547w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-get-response-data-on-error-300x129.png 300w\" sizes=\"(max-width: 547px) 100vw, 547px\" \/>\r\n<h3>METHOD 2 - Using Connection [Retry Settings]<\/h3>\r\nAnother scenario you may run into is a buggy web server. You ask it to give you some file or data and it, like a snotty kid, just doesn't give it to you! You have to ask twice or thrice before it does its job. If that's the case, you have to retry HTTP requests using <em>Connection<\/em>:\r\n\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3963 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-api-error-handling-3.png\" alt=\"\" width=\"671\" height=\"572\" \/><\/div>\n<h2>Security \/ Connection Types (Options for HTTP, OAuth, SOAP) in Power BI<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-3896\"><div style=\"margin-bottom: 1em;\">If you need to authenticate or authorize your user to access a web resource, you will need to use one of\u00a0the <em>Connections:<\/em><\/div>\r\n<ul>\r\n \t<li>HTTP<\/li>\r\n \t<li>OAuth<\/li>\r\n<\/ul>\r\n<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4078 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-authentication-authorization-e1529337108252.png\" alt=\"ZappySys XML Driver - HTTP and OAuth Connection Types\" width=\"577\" height=\"302\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-authentication-authorization-e1529337108252.png 577w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-authentication-authorization-e1529337108252-300x157.png 300w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/>\r\n<h3>HTTP Connection<\/h3>\r\n<div style=\"margin-bottom: 1em;\">Use <em>HTTP Connection<\/em> for simple\u00a0Windows, Basic, NTLM or Kerberos authentication. Just fill in a username and a password and you are good to go!<\/div>\r\n<div style=\"margin-bottom: 1em;\">You can also use <em>HTTP Connection<\/em> for more sophisticated authentication like:<\/div>\r\n<ul>\r\n \t<li><strong>SOAP WSS<\/strong> (when accessing a SOAP WebService)<\/li>\r\n \t<li><strong>Static Token \/ API Key<\/strong> (when need to pass an API key in HTTP header)<\/li>\r\n \t<li><strong>Dynamic Token<\/strong> (same as Static Token method except that each time you need to log in\u00a0and retrieve a fresh API key)<\/li>\r\n \t<li><strong>JWT Token<\/strong> (As per RFC 7519)<\/li>\r\n<\/ul>\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4091 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-api-connection-type-1.png\" alt=\"\" width=\"622\" height=\"570\" \/>\r\n<h3>OAuth<\/h3>\r\nIf you are trying to access REST API resource, it is a huge chance, you will need to use <em>OAuth Connection<\/em>. <a href=\"https:\/\/zappysys.com\/blog\/rest-api-authentication-with-oauth-2-0-using-ssis\/\" target=\"_blank\" rel=\"noopener\">Read this article<\/a> to understand how OAuth authentication and authorization works and how to use it (article originally was written for <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">SSIS PowerPack<\/a>, but the concepts and UI stay the same):\u00a0<br\/>\r\n<a href=\"https:\/\/zappysys.com\/blog\/rest-api-authentication-with-oauth-2-0-using-ssis\/\" target=\"_blank\" rel=\"noopener\">https:\/\/zappysys.com\/blog\/rest-api-authentication-with-oauth-2-0-using-ssis\/<\/a>\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-api-connection-type-2.png\" width=\"721\" height=\"708\" \/><\/div>\n<div class=\"content_block\" id=\"custom_post_widget-3901\">There are few settings you can coder while calling Web API\r\n<h3><strong>API Limit \/ Throttling<\/strong><\/h3>\r\nWhile calling public API or other external web services one important aspect you have to check,\u00a0 how many requests are allowed by your API. Especially when you use API pagination options to pull many records you have to slow down based on API limits. For example, your API may allow you only 5 requests per second. Use Throttling Tab on Driver UI to set delay after each request.\r\n<h3><strong>2D Array Transformation<\/strong><\/h3>\r\nIf you are using JSON or XML API Driver then possible you may have to transform your data using 2D array transformation feature. <a href=\"https:\/\/zappysys.com\/blog\/parse-multi-dimensional-json-array-ssis\/\" target=\"_blank\" rel=\"noopener\">Check this link<\/a> for more information.\r\n\r\n&nbsp;<\/div>\n<h2>Import data into Power BI from SQL Query<\/h2>\n<p>If you prefer to import data from an SQL query instead of selecting a table name, you can leverage advanced options during the import steps. Here&#8217;s a step-by-step guide:<\/p>\n<ol>\n<li>After selecting the DSN, proceed to the import steps.<\/li>\n<li>Click on the &#8220;Advanced Options&#8221; to access the SQL Query editor.<\/li>\n<\/ol>\n<p>By utilizing these advanced options, you gain the flexibility to tailor your import process by specifying custom SQL queries to retrieve the exact data you need.<\/p>\n<div id=\"attachment_3120\" style=\"width: 395px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-rest-api-sql-query-odbc-data-source.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3120\" class=\"size-full wp-image-3120\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-rest-api-sql-query-odbc-data-source.png\" alt=\"Import data into Power BI using SQL Query (ODBC Data source)\" width=\"385\" height=\"316\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-rest-api-sql-query-odbc-data-source.png 385w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-rest-api-sql-query-odbc-data-source-300x246.png 300w\" sizes=\"(max-width: 385px) 100vw, 385px\" \/><\/a><p id=\"caption-attachment-3120\" class=\"wp-caption-text\">Import data into Power BI using SQL Query (ODBC Data source)<\/p><\/div>\n<h2>Edit Query \/ Using Parameters in Power BI (Dynamic Query)<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-3954\">In the real world, many values of your REST \/ SOAP API call may be coming from Parameters. If that's the case for you can try to edit script manually as below. In below example its calling SQL Query with POST method and passing some parameters. Notice below where paraAPIKey is Power BI Parameter (string type). You can use parameters anywhere in your script just like the\u00a0normal variable.\r\n<p \/>\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-odbc-sql-query-pass-parameters-dynamically.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3121 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-odbc-sql-query-pass-parameters-dynamically.png\" alt=\"Import REST API in Power BI - Using parameters in SQL Query (Edit code - Advanced Mode)\" width=\"629\" height=\"467\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-odbc-sql-query-pass-parameters-dynamically.png 629w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-import-odbc-sql-query-pass-parameters-dynamically-300x223.png 300w\" sizes=\"(max-width: 629px) 100vw, 629px\" \/><\/a>\r\n<p \/>\r\n&nbsp;\r\n<pre class=\"lang:default highlight:0 decode:true\">let\r\n    vKey=paraAPIKey,\r\n    Source = Odbc.Query(\r\n\"dsn=ZS - OData Customers\", \r\n\"SELECT * FROM $ WITH (SRC='http:\/\/httpbin.org\/post',\" \r\n&amp; \"METHOD='POST',\" \r\n&amp; \"HEADER='Content-Type:application\/json',\" \r\n&amp; \"BODY=@'{\"\"CallerId\"\":1111, \"\"ApiKey\"\":\"\"\" &amp; vKey &amp; \"\"\"}')\")\r\nin\r\n    Source<\/pre>\r\n&nbsp;\r\n<\/div>\n<h2>Edit Query Settings after Import<\/h2>\n<p>There will be a time you need to change initial Query after dataset import in Power BI. Not to worry, just follow these steps to edit your SQL.<\/p>\n<div id=\"attachment_3947\" style=\"width: 829px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/power-bi-edit-data-source-query-after-import.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3947\" class=\"size-full wp-image-3947\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/power-bi-edit-data-source-query-after-import.png\" alt=\"Edit Power BI Data Source SQL after SOAP Web Service Import\" width=\"819\" height=\"502\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/power-bi-edit-data-source-query-after-import.png 819w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/power-bi-edit-data-source-query-after-import-300x184.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/power-bi-edit-data-source-query-after-import-768x471.png 768w\" sizes=\"(max-width: 819px) 100vw, 819px\" \/><\/a><p id=\"caption-attachment-3947\" class=\"wp-caption-text\">Edit Power BI Data Source SQL after REST \/ SOAP Web Service Import<\/p><\/div>\n<div class=\"content_block\" id=\"custom_post_widget-7081\"><h2>Using DirectQuery Option rather than Import<\/h2>\r\nSo far we have seen how to Import REST API data into Power BI but what if you have too much data and you dont want to import but link it. Power BI Offers very useful feature for this scenario. Its\u00a0 called\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/desktop-use-directquery\" target=\"_blank\" rel=\"noopener\">DirectQuery<\/a>\u00a0Option.\u00a0In this section we will explore how to use DirectQuery along with ZappySys Drivers.\r\n\r\nOut of the box ZappySys Drivers wont work in ODBC Connection Mode so you have to use SQL Server Connection rather than ODBC if you wish to use Live data using DirectQuery option. See below step by step instructions to enable DirectQuery mode in Power BI for REST API data.\r\n\r\nBasically we will use <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/data-gateway\/\">ZappySys Data Gateway<\/a>\u00a0its part of ODBC PowerPack. We will then use Linked Server in SQL Server to Link API Service and then we will issue OPENROWSET queries from Power BI to SQL Server and it will then call REST API via ZappySys Data Gateway.\r\n<h3>Step-By-Step<\/h3>\r\n<ol>\r\n \t<li>First <a href=\"https:\/\/zappysys.com\/blog\/import-rest-api-json-sql-server\/\" target=\"_blank\" rel=\"noopener\">read this article carefully<\/a> how to query REST API in SQL Server.<\/li>\r\n \t<li>Once linked server is configured we are ready to issue API query in Power BI.<\/li>\r\n \t<li>Click <strong>Get Data<\/strong> in Power BI, select <strong>SQL Server Database<\/strong><\/li>\r\n \t<li>Enter your server name and any database name<\/li>\r\n \t<li>Select Mode as <strong>DirectQuery<\/strong><\/li>\r\n \t<li>Click on <strong>Advanced<\/strong>\u00a0and enter query like below (we are assuming you have created JSON Data Source in Data Gateway and defined linked server (Change name below).\r\n<pre>select * from OPENQUERY(YOUR_LINKED_SERVER_NAME,\r\n'SELECT * FROM value WITH( SRC=''https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Orders?$format=json''  )'\r\n)<\/pre>\r\n\r\n<div class=\"wp-caption alignnone\">\r\n <a   href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/power-bi-directquery-option-import-rest-api.png\">\r\n  <img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/power-bi-directquery-option-import-rest-api.png\"\r\n         alt=\"DirectQuery option for Power BI (Read REST API Data Example using SQL Server Linked Server and ZappySys Data Gateway)\" >\r\n <\/a> \r\n<p class=\"wp-caption-text\">DirectQuery option for Power BI (Read REST API Data Example using SQL Server Linked Server and ZappySys Data Gateway)<\/p>\r\n<\/div>\r\n\r\n<\/li>\r\n \t<li>Click OK and Load data ... That's it. Now your REST API data is linked rather than imported.<\/li>\r\n<\/ol><\/div>\n<h2>Performance Tips for REST API \/ XML SOAP Calls<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-4455\">While calling APIs you may face some performance issues. There are a few tips you can consider to speed up things.\r\n<h4><span style=\"font-size: 14pt;\"><strong>Use Server-side filtering if possible in URL or Body Parameters<\/strong><\/span><\/h4>\r\nMany API supports filtering your data by URL parameters or via Body. Whenever possible try to use such features.\u00a0 Here is an example of <a href=\"http:\/\/www.odata.org\/getting-started\/basic-tutorial\/\" target=\"_blank\" rel=\"noopener\">odata\u00a0API<\/a>, In the below query the first query is faster than the second query because\u00a0in the first query we filter at the\u00a0server.\r\n<pre class=\"lang:tsql decode:true\">SELECT * FROM value\r\nWITH(\r\n\t Src='https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Customers?$format=json&amp;$filter=Country eq ''USA'''\r\n\t,DataFormat='Odata'\r\n)\r\n\r\n-- Slow query - Client-side filtering\r\nSELECT * FROM value\r\nWHERE Country ='USA'\r\nWITH(\r\n\t Src='https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Customers?$format=json'\r\n\t,DataFormat='Odata'\r\n)<\/pre>\r\n<h4><span style=\"font-size: 14pt;\"><strong>Avoid Special features in SQL Query (e.g. WHERE, Group By, Order By)<\/strong><\/span><\/h4>\r\nZappySys API engine triggers client-side processing\u00a0if special features are used in Query. Following SQL Features will trigger Client-Side processing which is several times slower than server-side processing. So always try to use simple query (Select col1, col2 ....\u00a0from mytable\u00a0)\r\n<ul>\r\n \t<li>WHERE Clause<\/li>\r\n \t<li>GROUP BY Clause<\/li>\r\n \t<li>HAVING Clause<\/li>\r\n \t<li>ORDER BY<\/li>\r\n \t<li>FUNCTIONS (e.g. Math, String, DateTime, Regex... )<\/li>\r\n<\/ul>\r\nLIMIT clause does not trigger client-side processing.\r\n<h4><span style=\"font-size: 14pt;\"><strong>Consider using pre-generated Metadata \/ Cache File<\/strong><\/span><\/h4>\r\nUse META option in WITH Clause to use static metadata (Pre-Generated)There are two more options to speedup query processing time. Check <a href=\"https:\/\/zappysys.com\/blog\/caching-metadata-odbc-drivers-performance\/\" target=\"_blank\" rel=\"noopener\">this article<\/a> for details.\r\n<ol>\r\n \t<li>\r\n<pre class=\"lang:default decode:true\">select * from value WITH( meta='c:\\temp\\meta.txt' )\r\n--OR--\r\nselect * from value WITH( meta='my-meta-name' )\r\n--OR--\r\nselect * from value WITH( meta='[ {\"Name\": \"col1\",&amp;nbsp;\"Type\": \"String\", Length: 100},&amp;nbsp;{\"Name\": \"col2\",&amp;nbsp;\"Type\": \"Int32\"} ...... ]' )<\/pre>\r\n<\/li>\r\n \t<li>Enable Data Caching Options (Found on <strong>Property Grid<\/strong> &gt; <strong>Advanced<\/strong> Mode Only )<\/li>\r\n<\/ol>\r\n<h4><span style=\"font-size: 14pt;\"><strong>Consider using Metadata \/ Data Caching Option<\/strong><\/span><\/h4>\r\nZappySys API drivers support Caching Metadata and Data rows to speed up query processing. If your data doesn't change often then you can enable this option to speed up processing significantly.\r\n\r\nCheck <a href=\"https:\/\/zappysys.com\/blog\/caching-metadata-odbc-drivers-performance\/\" target=\"_blank\" rel=\"noopener\">this article<\/a> for details how to enable Data cache \/ metadata cache feature for datasource level or query level.\r\n\r\nTo define cache option at query level you can use like below.\r\n<pre class=\"\">SELECT * FROM $\r\nWITH \r\n(  SRC='https:\/\/myhost.com\/some-api'\r\n  ,CachingMode='All'  --cache metadata and data rows both\r\n  ,CacheStorage='File' --or Memory\r\n  ,CacheFileLocation='c:\\temp\\myquery.cache'\r\n  ,CacheEntryTtl=300 --cache for 300 seconds\r\n)\r\n<\/pre>\r\n&nbsp;\r\n\r\n&nbsp;\r\n<h4><strong><span style=\"font-size: 14pt;\">Use --FAST Option to enable Stream Mode<\/span><\/strong><\/h4>\r\nZappySys JSON \/ XML drivers support <strong>--FAST<\/strong> suffix for Filter. By using this suffix after Filter driver enables Stream Mode, <a href=\"https:\/\/zappysys.com\/blog\/caching-metadata-odbc-drivers-performance\/#Reading_Large_Files_Streaming_Mode_for_XML_JSON\" target=\"_blank\" rel=\"noopener\">Read this article<\/a> to understand how this works.\r\n<pre class=\"lang:default decode:true\">SELECT * FROM $ \r\nLIMIT 10 --\/\/add this just to test how fast you can get 10 rows\r\nWITH(\r\n  Filter='$.LargeArray[*]--FAST' --\/\/Adding --FAST option turn on STREAM mode (large files)\r\n ,SRC='https:\/\/zappysys.com\/downloads\/files\/test\/large_file_100k_largearray_prop.json.gz'\r\n --,SRC='c:\\data\\large_file.json.gz'\r\n ,IncludeParentColumns='False'  --\/\/This Must be OFF for STREAM mode (read very large files)\r\n ,FileCompressionType='GZip' --Zip or None (Zip format only available for Local files)\r\n)<\/pre>\r\n&nbsp;<\/div>\n<div class=\"content_block\" id=\"custom_post_widget-5891\"><h2>Working with Gateways in Power BI (Schedule Import)<\/h2>\r\nIf the data needs to be updated, it is necessary to create a gateway on-premises. In this new section, we will install a Power BI Gateway and in the next section schedule it to update the REST API information.\r\n<ol>\r\n \t<li>In the last section, we Published the report. Power BI may ask you to <strong>SIGN IN.<\/strong>\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/sign-in-power-bi.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2879\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/sign-in-power-bi.png\" alt=\"Sign in Power BI\" width=\"762\" height=\"361\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/sign-in-power-bi.png 762w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/sign-in-power-bi-300x142.png 300w\" sizes=\"(max-width: 762px) 100vw, 762px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Sign in in Power BI<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Select the Workspace and select Datasets\r\n<div class=\"wp-caption\">\r\n\r\n[caption id=\"attachment_10110\" align=\"alignnone\" width=\"702\"]<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/power-bi-my-workspace-dataset.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10110 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/power-bi-my-workspace-dataset.png\" alt=\"power-bi-my-workspace-dataset\" width=\"702\" height=\"372\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/power-bi-my-workspace-dataset.png 702w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/power-bi-my-workspace-dataset-300x159.png 300w\" sizes=\"(max-width: 702px) 100vw, 702px\" \/><\/a> Go to workspace and dataset[\/caption]\r\n<p class=\"wp-caption-text\">Go to workspace and dataset<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Right-click the report and select <strong>Settings<\/strong>.\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/report-power-bi-settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2877\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/report-power-bi-settings.png\" alt=\"Define settings for Power BI report\" width=\"535\" height=\"325\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/report-power-bi-settings.png 535w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/report-power-bi-settings-300x182.png 300w\" sizes=\"(max-width: 535px) 100vw, 535px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Specify settings for the report<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>The system will ask for a Gateway. Stay here.\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-power-bi-gateway.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2862\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-power-bi-gateway.png\" alt=\"add power bi gateway\" width=\"1068\" height=\"380\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-power-bi-gateway.png 1068w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-power-bi-gateway-300x107.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-power-bi-gateway-768x273.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/add-power-bi-gateway-1024x364.png 1024w\" sizes=\"(max-width: 1068px) 100vw, 1068px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Add Power BI Gateway<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Use the following link to install a Data Gateway:\r\n<pre class=\"lang:php highlight:0 decode:true\">https:\/\/docs.microsoft.com\/en-us\/power-bi\/service-gateway-onprem<\/pre>\r\n<\/li>\r\n \t<li>Run the installer and press <strong>Next<\/strong>\r\n<div class=\"wp-caption\">\r\n\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2888\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/on-premises-gateway-installer-PB.png\" alt=\"Initial gateway window for installation\" width=\"634\" height=\"504\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/on-premises-gateway-installer-PB.png 634w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/on-premises-gateway-installer-PB-300x238.png 300w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/>\r\n<p class=\"wp-caption-text\">Gateway installer<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Select the option On-premises data gateway (recommended). This option allows access to multiple users and can be used by more applications than Power BI.\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/choose-power-bi-on-premises-data-pb.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2889\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/choose-power-bi-on-premises-data-pb.png\" alt=\"Choose Power BI gateway\" width=\"631\" height=\"501\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/choose-power-bi-on-premises-data-pb.png 631w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/choose-power-bi-on-premises-data-pb-300x238.png 300w\" sizes=\"(max-width: 631px) 100vw, 631px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Choose Power BI option<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>The installer will show a warning message.\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-warning-PB-msg.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2891\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-warning-PB-msg.png\" alt=\"Warning message gateway installation\" width=\"628\" height=\"447\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-warning-PB-msg.png 628w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-warning-PB-msg-300x214.png 300w\" sizes=\"(max-width: 628px) 100vw, 628px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Warning message during installation<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Select the path to install and check the I accept the terms.\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-installation-accept.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2916\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-installation-accept.png\" alt=\"accept terms\" width=\"636\" height=\"441\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-installation-accept.png 636w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-installation-accept-300x208.png 300w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Accept terms<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Specify the email address to use the gateway.\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-installation-email-address.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2895\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-installation-email-address.png\" alt=\"Register email in gateway installation\" width=\"627\" height=\"578\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-installation-email-address.png 627w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-installation-email-address-300x277.png 300w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Register email address<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>After entering the email, write the gateway name and a recovery key. Make sure to confirm the recovery key.\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-name-recovery-key-confirm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2896\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-name-recovery-key-confirm.png\" alt=\"Specify name and recovery key\" width=\"629\" height=\"487\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-name-recovery-key-confirm.png 629w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-gateway-name-recovery-key-confirm-300x232.png 300w\" sizes=\"(max-width: 629px) 100vw, 629px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Enter recovery key<\/p>\r\n\r\n<\/div><\/li>\r\n<\/ol>\r\n&nbsp;<\/div>\n<div class=\"content_block\" id=\"custom_post_widget-5892\"><h2>Manage gateways and configure the schedule<\/h2>\r\nOnce that the gateway is installed we will configure it and add the connection strings.\r\n<ol>\r\n \t<li>The next step is to go to manage gateway\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-go-to-manage-gateway.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2912\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-go-to-manage-gateway.png\" alt=\"Power BI - Manage Gateway Setting\" width=\"1068\" height=\"380\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-go-to-manage-gateway.png 1068w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-go-to-manage-gateway-300x107.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-go-to-manage-gateway-768x273.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-go-to-manage-gateway-1024x364.png 1024w\" sizes=\"(max-width: 1068px) 100vw, 1068px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Power BI - Manage Gateway Setting<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>In order to get the connection string, we will need the connection string of the ZappySys JSON Driver. In the first section of this post, we explained how to configure it. Press<strong> Copy Connection String<\/strong>\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-data-source-copy-connection-string.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2866\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-data-source-copy-connection-string.png\" alt=\"ZappySys connection properties\" width=\"607\" height=\"599\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-data-source-copy-connection-string.png 607w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-data-source-copy-connection-string-300x296.png 300w\" sizes=\"(max-width: 607px) 100vw, 607px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Connection properties<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Once that the data is copied, add a New data Source. In <strong>Data Source Name<\/strong>, enter the Data Source Name of the ZappySys JSON driver in step 13 and in Data Source Type, select ODBC. In connection string copy and paste from the clipboard of the step 13 and press <strong>Add<\/strong>.\r\n<div class=\"wp-caption\">\r\n\r\n[caption id=\"attachment_10113\" align=\"alignnone\" width=\"720\"]<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/gateway-data-source-name-connection-string.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10113 size-large\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/gateway-data-source-name-connection-string-1024x536.png\" alt=\"gateway-data-source-name-connection-string\" width=\"720\" height=\"377\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/gateway-data-source-name-connection-string-1024x536.png 1024w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/gateway-data-source-name-connection-string-300x157.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/gateway-data-source-name-connection-string-768x402.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/gateway-data-source-name-connection-string.png 1043w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a> ZappySys connection properties in Power BI[\/caption]\r\n<p class=\"wp-caption-text\">ZappySys connection properties in Power BI<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Once added the gateway. You can see the schedule refresh to <strong>On\u00a0<\/strong>and Add another time to add the time where you want to refresh the data.\r\n<div class=\"wp-caption\">\r\n\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-schedule.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2875\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-schedule.png\" alt=\"Schedule gateway\" width=\"451\" height=\"401\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-schedule.png 451w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/power-bi-schedule-300x267.png 300w\" sizes=\"(max-width: 451px) 100vw, 451px\" \/><\/a>\r\n<p class=\"wp-caption-text\">Schedule gateway<\/p>\r\n\r\n<\/div><\/li>\r\n<\/ol>\r\n&nbsp;<\/div>\n<h2>Conclusion<\/h2>\n<p>In this article, we guide you through the process of configuring the ZappySys Power Pack, focusing on the ZappySys driver for JSON. This driver is instrumental in extracting data from REST APIs or JSON files. Follow these steps to seamlessly add the extracted data to Power BI and generate insightful reports.<\/p>\n<p>Additionally, we&#8217;ll walk you through the configuration of the Power BI gateway, ensuring that the data is refreshed on a specified schedule for up-to-date and accurate reporting. To try this configuration yourself, <a href=\"\/\/zappysys.com\/products\/odbc-powerpack\/download\/\">download ODBC PowerPack<\/a>\u00a0and embark on a journey of efficient data extraction and reporting.<\/p>\n<h2>References<\/h2>\n<ul>\n<li><a href=\"https:\/\/powerbi.microsoft.com\/en-us\/\">What is Power BI?<\/a><\/li>\n<li><a href=\"https:\/\/powerbi.microsoft.com\/en-us\/gateway\/\">Keep your dashboards and reports up-to-date with your on-premises data sources<\/a><\/li>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=PL7wffKeOrc\">Power BI &#8211; Read REST API \/ JSON File \/ XML File \/ SOAP (Pagination, OAuth, OData)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this article, we will learn how to import REST API in Power BI. Power BI is a very popular Business Analytic tool used to get business information. It is very popular because it is easy to install, simple to learn and very intuitive. Also, REST API is very popular these days and we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2900,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[277,276,335,225],"tags":[282,22,273,6,279,298,3,67,7],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>How to import REST API in Power BI (Load JSON \/ SOAP XML) | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Learn how to import REST API in Power BI (JSON \/ XML data format). Configure ODBC Driver to read from API, Publish and Schedule Power BI Reports\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"How to import REST API in Power BI (Load JSON \/ SOAP XML) | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Learn how to import REST API in Power BI (JSON \/ XML data format). Configure ODBC Driver to read from API, Publish and Schedule Power BI Reports\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/ZappySys\/\" \/>\r\n<meta property=\"article:published_time\" content=\"2018-03-07T03:38:27+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2024-03-06T23:53:14+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"349\" \/>\r\n\t<meta property=\"og:image:height\" content=\"343\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/zappysys\/\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/\",\"url\":\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/\",\"name\":\"How to import REST API in Power BI (Load JSON \/ SOAP XML) | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export.png\",\"datePublished\":\"2018-03-07T03:38:27+00:00\",\"dateModified\":\"2024-03-06T23:53:14+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\"},\"description\":\"Learn how to import REST API in Power BI (JSON \/ XML data format). Configure ODBC Driver to read from API, Publish and Schedule Power BI Reports\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export.png\",\"width\":349,\"height\":343,\"caption\":\"Introduction icon json to power bi\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to import REST API in Power BI (Load JSON \/ SOAP XML)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\",\"name\":\"ZappySys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"caption\":\"ZappySys\"},\"sameAs\":[\"http:\/\/www.zappysys.com\/\",\"https:\/\/www.facebook.com\/ZappySys\/\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/\"],\"url\":\"https:\/\/zappysys.com\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to import REST API in Power BI (Load JSON \/ SOAP XML) | ZappySys Blog","description":"Learn how to import REST API in Power BI (JSON \/ XML data format). Configure ODBC Driver to read from API, Publish and Schedule Power BI Reports","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/","og_locale":"en_US","og_type":"article","og_title":"How to import REST API in Power BI (Load JSON \/ SOAP XML) | ZappySys Blog","og_description":"Learn how to import REST API in Power BI (JSON \/ XML data format). Configure ODBC Driver to read from API, Publish and Schedule Power BI Reports","og_url":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/","og_site_name":"ZappySys Blog","article_author":"https:\/\/www.facebook.com\/ZappySys\/","article_published_time":"2018-03-07T03:38:27+00:00","article_modified_time":"2024-03-06T23:53:14+00:00","og_image":[{"width":349,"height":343,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export.png","type":"image\/png"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/zappysys\/","twitter_misc":{"Written by":"ZappySys","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/","url":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/","name":"How to import REST API in Power BI (Load JSON \/ SOAP XML) | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export.png","datePublished":"2018-03-07T03:38:27+00:00","dateModified":"2024-03-06T23:53:14+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82"},"description":"Learn how to import REST API in Power BI (JSON \/ XML data format). Configure ODBC Driver to read from API, Publish and Schedule Power BI Reports","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/03\/json-to-power-biimport-export.png","width":349,"height":343,"caption":"Introduction icon json to power bi"},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/howto-import-json-rest-api-power-bi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to import REST API in Power BI (Load JSON \/ SOAP XML)"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82","name":"ZappySys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","caption":"ZappySys"},"sameAs":["http:\/\/www.zappysys.com\/","https:\/\/www.facebook.com\/ZappySys\/","https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/"],"url":"https:\/\/zappysys.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/2822"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=2822"}],"version-history":[{"count":67,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/2822\/revisions"}],"predecessor-version":[{"id":10959,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/2822\/revisions\/10959"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/2900"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=2822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=2822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=2822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}