Connecting Klipfolio to LinkedIn Pages

If you want to create custom Klips (in Klipfolio Klips) or custom metrics (in Klipfolio PowerMetrics), then you’re in the right place.

If you want to use pre-built Klips (in Klipfolio Klips) or instant metrics (in Klipfolio PowerMetrics), check out these articles instead: Pre-built Klips and the Klip Gallery or Instant metrics.

 

Visualize, discover, and act on your data with Klips, metrics, and dashboards.

Ready to get the most from your LinkedIn Pages professional networking data? Get started by setting up a connection between Klipfolio and your LinkedIn Pages data and adding some data sources.

When you're finished adding LinkedIn Pages data sources, you'll use them to power your custom Klips and custom metrics.

This article includes:

Connecting to your LinkedIn Pages data

Here are a couple things to note about connecting Klipfolio to your LinkedIn Pages data:

Your data is safe with us. The first time you connect your LinkedIn Pages data to Klipfolio, you'll be prompted to sign in to LinkedIn and give permission to allow Klipfolio to securely access data within your LinkedIn account. We are serious about protecting your data privacy.

Managing your connections. By default, your connection name looks like this: yourname@LinkedIn <date and time created>. You can modify the default connection name when you create a new connection or from the Connected Accounts page, accessed from the left navigation sidebar by clicking your Account Name > Account (or Settings) > Connected Accounts. You can use and reuse the same account connection every time you connect to LinkedIn Pages. If you have trouble accessing an existing connection, your OAuth token may have expired. If that happens to you, check out these troubleshooting tips.

How do I find my LinkedIn Company ID?

Sometimes you need to enter specific information for your service to return the right data. If you choose to create a custom LinkedIn Pages data source, you will need to enter your LinkedIn Company ID into a specific spot in the query.

To find your LinkedIn company ID:

  1. Open LinkedIn in a new browser tab.
  2. Search for your company page in LinkedIn.
  3. In your search results, select your company page.
  4. Look at the URL at the top of your company page.
  5. Copy and save the number immediately following 'www.linkedin.com/company/' but before the question mark.

Adding a LinkedIn Pages pre-built data source

Our pre-built data sources focus on the most sought-after LinkedIn Pages data. Either use them as complete solutions or as starting points for custom building.

To add a LinkedIn Pages pre-built data source:

  1. Click the + beside Data Sources in the left navigation sidebar.

If you don’t see the option above, go to the bottom of the left navigation sidebar and click your Account Name > Data Sources > Create a New Data Source.

  1. On the Where is your data? page, select LinkedIn Pages.
  2. Select a pre-built data source from the left section of the Choose a pre-built or custom connection page.
  3. If this is your first time connecting to LinkedIn Pages:
    • Click Connect an account. Enter your LinkedIn Pages login credentials and click Next. If prompted, click Allow Access to enable Klipfolio to securely access your LinkedIn Pages data. Click Continue.
  4. If you have connected with LinkedIn Pages before:
    • Select an existing connection (token) from the drop-down list and click Continue.
  5. On the Configure your data source page, select your LinkedIn Company Page from the drop-down list.
  6. Click Get data or, if you want to modify the pre-built data request, click Switch to Custom settings.
    Note: If you switch back to the Basic settings page after making changes in the Custom settings page, your changes will not be saved.
  7. Ensure this is the data you’re looking for and, optionally, select the checkbox to Model your data. Note that metrics require modelled data sources. If you're going to use this data source to build custom metrics, we recommend modelling your data now. Learn more about modelling your data source. Note: LinkedIn returns JSON formatted data. Learn how to model JSON data.
  8. Click Continue.
  9. Name, choose refresh settings, and, optionally, share your data source.
  10. Click Save.

If you clicked Switch to Custom settings:

  1. On the Configure your data source page, modify the Query URL to get the data you want. You can use the existing information in the Query URL text box as a base. It was auto-filled based on the pre-built data source you selected on the Choose a pre-built or custom connection page.
  2. Click Get data.
  3. Ensure this is the data you’re looking for and, optionally, select the checkbox to Model your data. Note that metrics require modelled data sources. If you're going to use this data source to build custom metrics, we recommend modelling your data now. Learn more about modelling your data source. Note: LinkedIn returns JSON formatted data. Learn how to model JSON data.
  4. Click Continue.
  5. Name, choose refresh settings, and, optionally, share your data source.
  6. Click Save.

The data source is added to your account and is ready to use for custom Klips and custom metrics. You can see all your data sources in your Data Source Library, accessed by clicking Data Sources in the left navigation sidebar.

Adding a LinkedIn Pages custom data source

Need a unique set of data? When our pre-built data sources don't include exactly what you're looking for, create your own custom data source. You can either use a pre-built data source query as a base or write your own queries from scratch.

To add a LinkedIn Pages custom data source:

  1. Click the + beside Data Sources in the left navigation sidebar.

If you don’t see the option above, go to the bottom of the left navigation sidebar and click your Account Name > Data Sources > Create a New Data Source.

  1. On the Where is your data? page, select LinkedIn Pages.
  2. On the Choose a pre-built or custom connection page, click Create a custom LinkedIn Pages data source.
  3. If this is your first time connecting to LinkedIn Pages:
    • Click Connect an account. Enter your LinkedIn Pages login credentials and click Next. If prompted, click Allow Access to enable Klipfolio to securely access your LinkedIn Pages data. Click Continue.
  4. If you have connected with LinkedIn Pages before:
    • Select an existing connection (token) from the drop-down list and click Continue.
  5. On the Configure your data source page, adjust the Query URL information to replace any generic placeholder query information with your own. For example, replace companyID with your own companyID.
  6. Edit the Query URL to return the data you need. Refer to the LinkedIn API documentation for details.
  7. Click Get data.
  8. Ensure this is the data you’re looking for and, optionally, select the checkbox to Model your data. Note that metrics require modelled data sources. If you're going to use this data source to build custom metrics, we recommend modelling your data now. Learn more about modelling your data source. Note: LinkedIn returns JSON formatted data. Learn how to model JSON data.
  9. Click Continue.
  10. Name, choose refresh settings, and, optionally, share your data source.
  11. Click Save.

The data source is added to your account and is ready to use for custom Klips and custom metrics. You can see all your data sources in your Data Source Library, accessed by clicking Data Sources in the left navigation sidebar.

Custom building: About APIs and queries

Want to learn more about custom building? This section is for you. Klipfolio connects to hundreds of services in the cloud that have a REST API. If you take the time to learn your service’s API to create queries for the data you want, your possibilities are endless. Here’s a quick overview video on APIs and Klipfolio:

Klipfolio API's 101

If you need help using APIs, ask a data analyst or developer.

Refer to the LinkedIn API documentation to discover more data requests.

See the reference table below for API related information and sample queries.

API Documentation

Profile API

Core Concepts - LinkedIn API

Authentication Method OAuth Authentication
Response Format JSON
Sample Queries

Returns company statistics:

https://api.linkedin.com/v2/organizationPageStatistics?q=organization&organization=urn:li:organization:<companyID>

For follower stats over the past 30 days:

https://api.linkedin.com/v2/organizationalEntityFollowerStatistics?q=organizationalEntity&organizationalEntity=urn:li:organization:<companyID>&timeIntervals.timeGranularityType=DAY&timeIntervals.timeRange.start={date.add(-30).format('epochTime')}000

Next steps

Great! You've connected to your LinkedIn Pages data and created one (or more) data sources. Now you're ready to use those data sources in custom Klips or custom metrics.

Want to learn more?

Check out these related articles:

Have more questions? Submit a request