Dela via


Getting Started with Analytics Services

This tutorial shows you how to obtain permission to call Analytics Services APIs, request for access tokens, and make authenticated requests.

Analytics Services APIs exist on the LinkedIn Developer Platform. You can read more about the Developer Platform in the Authorization Code Flow (3-legged OAuth) documentation.

Obtain Permission

All Analytics API calls are made on behalf of an authenticated user. You will need to use an access token to make an authenticated call on behalf of that user. Your developer application must have been granted permission to use the r_sales_nav_analytics scope, and you must request this scope in your OAuth2 authorization request.

If you are a Sales Navigator Application Platform Partner, reach out to your point of contact at LinkedIn to request this permission be added to your application. Prospective partners can apply to join the SNAP program on the application page.

Make Authenticated Requests

Once your app has been granted the r_sales_nav_analytics permission, you are ready to perform OAuth2 request to obtain an access token with r_sales_nav_analytics permission and make authenticated requests to the Analytics APIs.

In all HTTP requests to Analytics APIs, you must include the below headers:

Header Value
Authorization Bearer <access_token>
X-Restli-Protocol-Version 2.0.0

Export Analytics Data

Please refer to the Exporting User Activity tutorial to learn about how to use Analytics API to export user activity in Sales Navigator.