How to Import LinkedIn data in Power BI

Introduction

In this article, we will learn how to import LinkedIn data in Power BI. For that, we will create a successful OAuth Connection then request for reading LinkedIn Profile data and loading into 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 wanted to show you a way to integrate them in Power BI with the help of the ZappySys ODBC PowerPack. This software includes powerful drivers to query REST API URL, Local XML / JSON files and XML SOAP Web Service with simple SQL queries.

In nutshell, this post will focus on how to call LinkedIn API using Zappysys ODBC PowerPack. So let’s get started

Prerequisite

  1. First, you will need to have our ZappySys ODBC Power Pack
  2. In the second place, you will need to have internet access
  3. On third place, Power BI Desktop (FREE) installed

Getting Started

In order to start, we will show several examples. ZappySys ODBC PowerPack includes the ZappySys JSON Driver that will help you to call LinkedIn API, retrieve basic profile data from LinkedIn and load profile data in Power BI. To learn more about LinkedIn API check this help file.

Call LinkedIn API using ZappySys JSON Driver

To access LinkedIn data using REST API call you need to create a LinkedIn app. See this article, it has mentioned the steps for How to register an App in LinkedIn. once you registered OAuth app in the LinkedIn website we can move to ODBC DataSources(DSN) Part.

  1. Double-click on the ODBC Data Sources App.
    Open ODBC Data Sources from Startup menu

    Open ODBC Data Sources from Startup menu

  2. Click on Add button in User DSN Tab and then select JSON Driver from the driver list and click on Finish button to Create a new JSON Driver.
    ODBC User DSN Tab: Add new Driver Screen

    ODBC User DSN Tab: Add new Driver Screen

  3. Enter API URL in Properties Tab. Here is the sample Example:
    Select a type of Connection from the Connection drop-down. here for this call, we have to select OAuth Connection.
    ZappySys ODBC JSON Driver: Configurations settings for LinkedIn API

    ZappySys ODBC JSON Driver: Configurations settings for LinkedIn API

  4. Configure new OAuth Connection for LinkedIn as below.
    Basically, you need to enter 3 pieces on the General tab (i.e. ClientId, ClientSecret, Scopes) and one more info on the Advanced tab (i.e. callback URL ). If you are not sure what is Scope then check this LinkedIn API documentation. For each API page, you will see which permission needed. Just include the desired scope on ZappySys OAuth Connection (see below).
    OAuth Connection Manager: Configure the settings for LinkedIn

    OAuth Connection Manager: Configure the settings for LinkedIn

    also, Enter your Callback URL in Advanced Tab.

    OAuth Connection Manager: Configurations settings for LinkedIn in Advanced Tab

    OAuth Connection Manager: Configurations settings for LinkedIn in Advanced Tab

  5. After successfully establishing the Connection with LinkedIn, you can Click on Test Connection button.
    ODBC JSON Driver: Test Connection for LinkedIn API Request

    ODBC JSON Driver: Test Connection for LinkedIn API Request

  6. now, let’s go to Preview tab and click on the Preview data
    ODBC JSON Driver: Preview Screen of LinkedIn API Request

    ODBC JSON Driver: Preview Screen of LinkedIn API Request

  7. And that’s it, Now we will move forward to the next Phase i.e To Load data in Power BI

Load data into Power BI

In the preview section, we configured and added the ZappySys drivers in the ODBC Driver Administrator with information to connect to LinkedIn REST API. We queried the REST API data in JSON format. Now we will open Power BI and import the information from ODBC.

  1. Open Power BI Desktop and select the option Get data
    Power BI : Click on Get Data for Loading from ODBC DSN

    Power BI: Click on Get Data for Loading from ODBC DSN

  2. Get Data will allow adding the ZappySys ODBC driver. Go to Other and select ODBC.
    Select ODBC from Get Data Popup in Power BI

    Select ODBC from Get Data Popup in Power BI

  3. Select ODBC DSN name from the DSN dropdown, and click on OK button for Import data
    Get data from ODBC Driver

    Get data from ODBC Driver

  4. Select data to import and click OK (Below screenshot is for the Table mode import when no SQL specified. You can pick the desired table to import)
    see the Preview of Linked In data

    see the Preview of Linked In data

  5. See the Imported data in table visualization mode. you can select any visualizations as per your need.
    Power BI Imported LinkedIn data in Table Visualization

    Power BI Imported LinkedIn data in Table Visualization

  6. That’s All 🙂 you have successfully imported the LinkedIn data in Power BI dashboard.

Conclusion

In this blog, we have learned how to retrieve the basic profile data from LinkedIn using ODBC JSON Driver and then Load those data in Power BI with ODBC DSN in a very simple way. You can achieve many more functionalities with the use of ODBC PowerPack. Check our blogs/articles on How to import REST API in Power BI (Load JSON / SOAP XML) to find out what these ODBC Drivers are capable of more.

How to import REST API in Power BI (Load JSON / SOAP XML)

References

Finally, you can use the following links for more information about the use of LinkedIn API with our ODBC PowerPack:

Posted in JSON File / REST API Driver, ODBC PowerPack, Reporting - Microsoft Power BI and tagged , , , , .