LinkedIn uses a RESTful API for its developer platform.
LinkedIn uses a RESTful API.
LinkedIn provides a RESTful API for developers to integrate LinkedIn functionality into their applications.
Yes, the official LinkedIn API does have webhooks. Here are the key points about LinkedIn's webhook functionality:
LinkedIn offers webhooks for real-time HTTP notifications for subscribed events. However, this functionality is only available for applications with an approved use case for webhooks.
While not exhaustive, some example event types include:
ORGANIZATION_SOCIAL_ACTION_NOTIFICATIONS: Related to social actions on an organization's page.
Lead Syncing: For Lead Syncing use cases, webhook subscriptions must be created via the Lead Notification Subscriptions API.
Approval Required: Webhooks are only enabled for applications with an approved use case.
Webhook Registration: Notifications are only sent to registered and validated webhooks. You can register your webhook in the "Webhooks" tab of your application in the developer portal.
Validation Process: LinkedIn validates the ownership of a webhook URL before it can be registered. This involves a challenge-response mechanism using HMACSHA256 hashing.
Re-validation: Webhook endpoints are periodically re-validated every 2 hours. If re-validation fails 3 times in a row, the endpoint will be blocked.
Notification Deduplication: Your webhook must be able to deduplicate notifications using the Notification ID included in the payload.
Use lambda/serverless functions on a cloud provider for testing webhook processing.
Implement proper security measures, including verifying the integrity of push events using the X-LI-Signature header.
Respond with a 2xx HTTP status code to indicate successful delivery of notifications.
Be prepared to handle and deduplicate occasional multiple deliveries of the same notification.
For partners provisioning applications on behalf of customers, use the DeveloperWebhooks API to manage and revalidate blocked webhooks.
In summary, while LinkedIn does offer webhook functionality, it's important to note that it's not universally available and requires approval. The specific event types you can subscribe to may depend on your use case and application approval.
Based on the search results provided, here are the key points about LinkedIn API rate limits:
LinkedIn implements rate limits on API requests to prevent abuse and ensure service stability. The rate limits specify the maximum number of API calls that can be made in a 24-hour period, resetting at midnight UTC each day.
LinkedIn applies three types of rate limits:
While standard rate limits are not publicly published, here are some key points:
For APIs with overlapping usage, such as UGC Post and Social Actions, there are additive throttle limits. The formulas to calculate these limits are based on the maximum requests per four hours, multiplied by factors related to organizations, groups, and average entity usage.
For compliance partners, LinkedIn recommends spacing out archiving API requests evenly throughout each hour. The Compliance Events API should be queried once per hour per member, with estimated QPS (Queries Per Second) and request intervals provided based on the number of unique members.
It's important to note that these limits may change over time, and developers should always refer to the most up-to-date documentation and their specific application settings in the LinkedIn Developer Portal for the most accurate information.
Based on the search results provided, here is the most up-to-date information about the LinkedIn API versioning:
The most recent version of the LinkedIn API uses a versioning system introduced in June 2022. LinkedIn now supports API versioning for all LinkedIn Marketing APIs, with new versions released monthly.
Key points to consider:
The current versioning format uses a YYYYMM structure (e.g., 202304 for April 2023).
Each API version is supported for a full year with its own set of documentation covering all Marketing APIs.
To call a specific API version, include the request header with key "LinkedIn-Version" and set the value to the desired version (e.g., "LinkedIn-Version: 202304").
LinkedIn expects every versioned API call to specify a version; they will not default to the latest version.
The unversioned, legacy APIs using the base path https://api.linkedin.com/v2/ were available until June 30, 2023, when they were sunset.
Code example for making a versioned API call:
curl -X POST 'https://api.linkedin.com/rest/adCampaigns' \ -H 'Authorization: Bearer {INSERT_TOKEN}' \ -H 'Content-Type: application/json' \ -H 'Linkedin-Version: 202304' \ --data '{ "account": "urn:li:sponsoredAccount:123212321", "audienceExpansionEnabled": false, ... }'
Best practices:
Regularly check the Recent Changes page to stay up to date on the latest releases.
Plan to update your integrations at least once per year to ensure compatibility with the latest supported version.
Use the comprehensive documentation provided for each version, which includes changelogs indicating updates from previous versions.
Be aware that individual API resources may evolve at different times, and each will have its own migration guide for major updates.
Consider migrating to the new Content and Community Management APIs to avoid disruptions, as older versions are being sunset.
In summary, the most recent version of the LinkedIn API follows a monthly versioning system, with the latest version corresponding to the current month and year in the format YYYYMM. To use the most recent version, you should include the appropriate "LinkedIn-Version" header in your API requests.
Create a LinkedIn Developer Account:
Create an Application:
Get API Key and Secret Key:
Review Application Authorization:
Apply for API Access:
Here is a list of data models you can interact with using the LinkedIn API, along with what is possible for each:
It's important to note that access to many of these data models and capabilities requires proper API permissions and often commercial agreements with LinkedIn for business use cases. The exact data available may also vary based on user privacy settings and LinkedIn's policies.