Linkedin Company Ads avatar
Linkedin Company Ads

3 days trial then $20.00/month - No credit card required now

View all Actors
Linkedin Company Ads

Linkedin Company Ads

saswave/linkedin-company-ads

3 days trial then $20.00/month - No credit card required now

The linkedin company ads scraper will help you extract all metadata about every ads a company is running on linkedin For each ads, you have access to the number of likes, comments, shares and more Check our documentation. Enjoy ! and we take any feedback

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "cookies": [
11        {
12            "domain": ".linkedin.com",
13            "expirationDate": 1716940616.08443,
14            "hostOnly": false,
15            "httpOnly": false,
16            "name": "test",
17            "path": "/",
18            "sameSite": "no_restriction",
19            "secure": true,
20            "session": false,
21            "storeId": "0",
22            "value": "fake",
23            "id": 1
24        }
25    ],
26    "companies": [
27        "https://www.linkedin.com/company/financial-times/",
28        "https://www.linkedin.com/company/bloomberg-news/"
29    ],
30    "ad_limit": 15,
31    "ad_description": "yes"
32};
33
34(async () => {
35    // Run the Actor and wait for it to finish
36    const run = await client.actor("saswave/linkedin-company-ads").call(input);
37
38    // Fetch and print Actor results from the run's dataset (if any)
39    console.log('Results from dataset');
40    const { items } = await client.dataset(run.defaultDatasetId).listItems();
41    items.forEach((item) => {
42        console.dir(item);
43    });
44})();
Developer
Community logoMaintained by Community
Actor metrics
  • 1 monthly users
  • 100.0% runs succeeded
  • 0.0 days response time
  • Modified 24 days ago

You might also like these Actors