LinkedIn Ad Library API Program

LinkedIn’s Ad Library application programming interface (API) helps you perform custom searches on ad data stored in the platform and search for organic posts that creators have identified as containing brand partnerships.

Getting Started: Setting up and accessing the API

Getting Access

Ad Library API is a vetted product, and can be gained access by requesting the product from our developer portal.

Step 1: Create Developer Application

Any API request needs a developer account/application. Create a LinkedIn Page and then proceed to create a developer application in the Developer Portal.

Step 2: Request Access

Navigate to your application’s products tab and request access to the ‘LinkedIn Ad Library’ API product. You will be presented with an access form that needs to be filled to gain API access. You will also agree to our API terms of use and Additional Terms for the LinkedIn Research Tools Program.

Step 3: Authentication

Ad Library API calls require a 3-legged OAuth member token after the product provisioning. Via the product provisioning, the application gains access to the new LinkedIn Ad Library program APIs.

Note: You do not need to specify any new permission explicitly in the scope of your OAuth2 flow for authorization.

Once LinkedIn has provisioned your developer application with the Ad Library API product, to make a request, you may use your valid member access token. If there is no existing valid member access token, we recommend to create one using the bare minimum scope/permissions like ‘profile’ via access to Sign In with LinkedIn.

Refer: Authorization Code Flow (3-legged OAuth)

Step 4: Search for ads based on criteria

Use your existing 3-legged OAuth member token to invoke the Ad Library API to search for ads based on criteria like keyword, advertiser, targeted countries, date range or to invoke the Brand Partnerships API to search for organic posts that creators have identified as containing brand partnerships based on criteria like keyword, date range.

Frequently asked questions