# LinkedIn Activity Scraper | Likes and Posts (`oday/mawsool-linkedin-profile-activity`) Actor

LinkedIn activity scraper. Paste profile URLs and get recent likes, comments, and post links so outreach can mention what that person actually engaged with. You supply the URL. From $1 per 1,000 profiles.

- **URL**: https://apify.com/oday/mawsool-linkedin-profile-activity.md
- **Developed by:** [Mawsool Intertaional FZCO](https://apify.com/oday) (community)
- **Categories:** Lead generation, Social media
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 1,000 profile activities

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## LinkedIn Activity Scraper | Likes and Posts

**Get the recent activity on a LinkedIn profile: what the person liked or commented on, with the post title and link. $1 per 1,000 profiles.**

### If you need a different Mawsool Actor

| If this is what you need | Open |
| --- | --- |
| You have an email and want the LinkedIn profile. | [Reverse Email Lookup](https://apify.com/oday/mawsool-email-linkedin-lookup) |
| You have a name and company and want the profile URL. | [LinkedIn Profile Finder](https://apify.com/oday/mawsool-linkedin-profile-finder) |
| You have a profile URL and want the personal email. | [LinkedIn Email Finder](https://apify.com/oday/mawsool-linkedin-personal-email-finder) |
| You only need the current employer, before paying for a full profile. | [Current Company Checker](https://apify.com/oday/mawsool-linkedin-company-checker) |
| You want an alert when the employer or headline changes. | [Job Change Tracker](https://apify.com/oday/mawsool-linkedin-job-change-watch) |
| You have a profile URL and want the full profile. | [LinkedIn Profile Scraper](https://apify.com/oday/mawsool-linkedin-profile-details) |
| You have a large file of profile URLs. | [Mass Profile Scraper](https://apify.com/oday/mawsool-mass-linkedin-profile-scraper) |
| You want the current employer's website from a profile URL. | [Profile to Company Website](https://apify.com/oday/mawsool-linkedin-profile-to-company-website) |
| You want the job history only. | [Work Experience](https://apify.com/oday/mawsool-linkedin-profile-experience) |
| You want schools and degrees only. | [Education](https://apify.com/oday/mawsool-linkedin-profile-education) |
| You want a yes or no for one certificate. | [Certification Checker](https://apify.com/oday/mawsool-linkedin-certification-checker) |
| You want certificates, patents, courses, and publications. | [Certifications and Patents](https://apify.com/oday/mawsool-linkedin-profile-credentials) |
| You have a company URL and want the full company record. | [Company Details](https://apify.com/oday/mawsool-linkedin-company-details) |
| You have a large file of company URLs. | [Mass Company Scraper](https://apify.com/oday/mawsool-mass-linkedin-company-scraper) |
| You want the website, industry, and employee range. | [Firmographics and Website](https://apify.com/oday/mawsool-linkedin-company-firmographics) |
| You want office addresses. | [Company Locations](https://apify.com/oday/mawsool-linkedin-company-locations) |
| You want lookalike companies. | [Similar Companies](https://apify.com/oday/mawsool-linkedin-similar-companies) |
| You want the recent posts on a company page. | [Company Posts](https://apify.com/oday/mawsool-linkedin-company-posts) |
| You want only new posts on the next scheduled run. | [Company Post Monitor](https://apify.com/oday/mawsool-linkedin-company-post-watch) |

The same list is on [Mawsool's Apify profile](https://apify.com/oday). A visitor who starts on one Actor can open the rest from that page.

Use the title as the first line of an outreach email. One profile is one charge. [Profile Details](https://apify.com/oday/mawsool-linkedin-profile-details) is $1.80 per 1,000 and returns the whole profile, including this activity.

Activity is whatever the profile page is showing. A profile with no activity returns one row with `activityCount` 0.

### Who is this for?

Outbound teams and Clay workflows that need a personalization line and do not need the full profile.

### What does a row look like?

```json
{
  "inputUrl": "https://www.linkedin.com/in/example",
  "fullName": "Example Person",
  "headline": "Director of Sales",
  "activityCount": 1,
  "interaction": "Liked by",
  "title": "Post title",
  "link": "https://www.linkedin.com/feed/update/example",
  "success": true
}
```

### FAQ

#### Do 18 activity rows cost 18 credits?

No. The profile URL is one charge.

#### Does every profile have activity?

No. Some profiles return `activityCount` 0. That row is still a successful check.

### Related Actors

[Profile Details](https://apify.com/oday/mawsool-linkedin-profile-details) for the full profile. [Work Experience](https://apify.com/oday/mawsool-linkedin-profile-experience), Education, and Certifications for the other profile slices.

# Actor input Schema

## `urls` (type: `array`):

Add linkedin.com/in/... URLs.

## `urlsCsv` (type: `string`):

A url column. One URL per row is also accepted.

## `fileUrl` (type: `string`):

CSV with a url or linkedinUrl column.

## `maxUrls` (type: `integer`):

Cost-control cap. Maximum 50,000. A list over 200 continues if the run stops.

## `concurrency` (type: `integer`):

How many URLs to look up at the same time.

## `resumeId` (type: `string`):

Reuse this ID to skip URLs that already succeeded.

## `freshStart` (type: `boolean`):

Turn this on to ignore saved progress and look up the whole list again.

## Actor input object example

```json
{
  "urls": [
    "https://www.linkedin.com/in/osama-abdelhadi/"
  ],
  "urlsCsv": "url\nhttps://www.linkedin.com/in/osama-abdelhadi/",
  "maxUrls": 100,
  "concurrency": 10,
  "freshStart": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `flatView` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.linkedin.com/in/osama-abdelhadi/"
    ],
    "urlsCsv": `url
https://www.linkedin.com/in/osama-abdelhadi/`
};

// Run the Actor and wait for it to finish
const run = await client.actor("oday/mawsool-linkedin-profile-activity").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": ["https://www.linkedin.com/in/osama-abdelhadi/"],
    "urlsCsv": """url
https://www.linkedin.com/in/osama-abdelhadi/""",
}

# Run the Actor and wait for it to finish
run = client.actor("oday/mawsool-linkedin-profile-activity").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.linkedin.com/in/osama-abdelhadi/"
  ],
  "urlsCsv": "url\\nhttps://www.linkedin.com/in/osama-abdelhadi/"
}' |
apify call oday/mawsool-linkedin-profile-activity --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,oday/mawsool-linkedin-profile-activity"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/XFaOelkgYhDWJxclR/builds/t1qa1Hla8kjaglGVv/openapi.json
