# LinkedIn Products & Services Directory Scraper (`xyrelith-data/linkedin-products-services-directory`) Actor

Scrape LinkedIn's public Services marketplace and Products catalog. Get service providers by category and US city, or products by category, search and URL, with ratings, reviews, vendors, target roles, customers and related products. No login needed.

- **URL**: https://apify.com/xyrelith-data/linkedin-products-services-directory.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Lead generation, Automation, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Products & Services Directory Scraper

Scrape **LinkedIn's public Services marketplace and Products catalog** as one structured directory. Pull service providers by category and US city, or software products by category, keyword search and product URL, with ratings, reviews, vendor details, target roles, featured customers, similar products and vendor portfolios. Guest pages only — no login, cookies or API key.

### What this actor does

- **Two directories, one actor:** `services` returns independent service providers; `products` returns catalog software products.
- **Full category discovery:** walks LinkedIn's live service taxonomy (16 groups, 200+ services) and product taxonomy (44 groups, 300+ categories), or accepts exact slugs, display names and URLs.
- **Location-aware services:** nationwide category pages plus LinkedIn's US city index (e.g. `us/newark-nj`) for city-level provider lists and counts.
- **Deep product intelligence:** intended roles, website, media titles, featured customers with industry and follower counts, similar products, other products from the same vendor, and the category's "Used by" job-title breakdown.
- **Beyond the top 10:** optional related-product crawling follows similar-product and vendor-portfolio links, while category and keyword modes cover the rest of the public catalog.
- **Clean output:** empty fields are omitted at every depth — no `null`, `N/A` or blank placeholders.

### Output per service provider (mode = `services`)

- `providerName` — provider's display name
- `providerSlug`, `profileUrl` — LinkedIn profile slug and canonical profile URL
- `profileCountry` — two-letter country from the profile URL, when present
- `services[]` — services the provider lists on the card
- `location` — displayed location
- `rating`, `reviewCount` — average rating and number of reviews, when shown
- `topReview` — latest visible review with `author`, `date` and `text`
- `providerSummary` — provider-written summary, when shown
- `serviceCategorySlug`, `serviceCategoryName`, `serviceGroup` — category and its browse group
- `citySlug`, `cityPageUrl` — city page context when a city was requested
- `resultCount` — providers LinkedIn reports for this page
- `categoryTotalProviders` — providers LinkedIn reports for the whole category
- `rank` — position on the page
- `sourceUrl`, `recordType: "linkedinServiceProvider"`, `scrapedAt`

### Output per product (mode = `products`)

- `productName`, `productSlug`, `productUrl`
- `category`, `categoryUrl`, `categoryGroup`
- `vendorName`, `vendorUrl`
- `description` — about text from the product page
- `logoUrl` — permanent public copy in the run's key-value store, with `logoUrlOriginal` for the source URL
- `intendedFor[]` — roles the product says it is intended for
- `websiteUrl` — public "Learn more" destination
- `mediaTitles[]` — titles of the product's public media items
- `featuredCustomers[]` — customer `name`, `companyUrl`, `industry` and `followerCount`
- `similarProducts[]`, `vendorProducts[]` — `name`, `productUrl` and category
- `usedByRoles[]` — job titles and counts from the category's "Used by" filter
- `categoryTotalProducts` — products LinkedIn reports for the category
- `sourceType`, `sourceValue` — how the product was found (`category`, `search`, `home`, `url`, `related`)
- `discoveredFrom`, `relatedDepth` — parent product and hop depth when related crawling found it
- `sourceUrl`, `recordType: "linkedinProduct"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `services` | `services` or `products` |
| `serviceCategories` | array | `[]` | Slugs, names or URLs; empty walks the full browse taxonomy |
| `serviceCities` | array | `[]` | US city pages such as `us/newark-nj`; empty uses the nationwide category page |
| `serviceKeyword` | string | – | Keep providers whose name, services, summary or location contains this text |
| `minRating` | number | – | Drop rated providers below this rating (0–5) |
| `hasReviewsOnly` | boolean | `false` | Keep only providers with at least one displayed review |
| `productCategories` | array | `[]` | Slugs, names or URLs such as `recruiting-software` |
| `productSearchQueries` | array | `[]` | Keywords for the public product search |
| `productUrls` | array | `[]` | Product URLs or slugs |
| `includeAllProductCategories` | boolean | `false` | With no product target, walk every category instead of the home page |
| `includeProductDetails` | boolean | `true` | Fetch detail pages for roles, website, media, customers and related products |
| `includeCategoryInsights` | boolean | `true` | Attach category totals and "Used by" counts to each product |
| `includeRelatedProducts` | boolean | `false` | Follow similar and vendor products beyond the top 10 |
| `relatedDepth` | string | `1` | `1` or `2` hops for related crawling |
| `productVendorFilter` | string | – | Keep products whose vendor name contains this text |
| `maxItems` | integer | `50` | Hard cap on records in the run (1–1000) |
| `rehostImages` | boolean | `true` | Copy expiring product logos into the run's public key-value store |
| `proxyConfiguration` | object | – | Optional proxy override; the actor works without a proxy |

### Example: providers in a service category

```json
{
  "mode": "services",
  "serviceCategories": ["accountants", "graphic-designers"],
  "maxItems": 100
}
```

### Example: accountants in a US city

```json
{
  "mode": "services",
  "serviceCategories": ["accountants"],
  "serviceCities": ["us/newark-nj", "us/new-york-ny"],
  "minRating": 4.5,
  "maxItems": 50
}
```

### Example: products in a category

```json
{
  "mode": "products",
  "productCategories": ["customer-relationship-management-software"],
  "includeProductDetails": true,
  "includeCategoryInsights": true,
  "maxItems": 20
}
```

### Example: keyword search with the related-product graph

```json
{
  "mode": "products",
  "productSearchQueries": ["payroll", "analytics"],
  "includeRelatedProducts": true,
  "relatedDepth": "2",
  "maxItems": 100
}
```

### Use cases

- **Freelance and agency sourcing** — build provider shortlists by service category and US city.
- **Marketplace research** — compare provider density, ratings and review volume across categories and cities.
- **Software category mapping** — export every public product in a category with vendors, target roles and related tools.
- **Competitive intelligence** — collect similar products, vendor portfolios and featured-customer proof.
- **CRM enrichment** — add LinkedIn product, vendor and category context to account records.
- **B2B content and SEO research** — track which job titles LinkedIn associates with each product category.

### FAQ

#### Is any login or cookie required?

No. The actor reads LinkedIn's public guest pages. No account, cookie, API key or proxy setup is needed.

#### Why do some service categories return fewer than 10 providers?

LinkedIn curates a top-provider shortlist per category and city and only fills pages where enough qualifying activity exists. The run status message reports how many categories had no guest cards.

#### Why are product pages sometimes slower?

LinkedIn protects product pages more aggressively than service pages on some networks. The actor chooses a working connection automatically, so the same run keeps working without user configuration.

#### Can I get more than 10 products from one category page?

LinkedIn's guest category and search pages show a top-10 list and ignore page/offset parameters. Use `includeRelatedProducts` to follow similar and vendor products, add search queries, or crawl multiple categories with `includeAllProductCategories`.

#### Are product ratings and reviews available?

No. LinkedIn does not show ratings, review counts or user counts on guest product pages. Service providers do show ratings, review counts and a top review, and those fields are included when present.

#### Why is a product's logo URL different from the one on LinkedIn?

LinkedIn's image URLs are signed and expire. With `rehostImages` enabled, the actor stores a public copy in the run's key-value store and keeps the original in `logoUrlOriginal`.

#### Why are some fields missing on some records?

Product pages are not uniform: intended roles, media, featured customers and vendor portfolios appear only when LinkedIn publishes them for that product. Empty values are omitted instead of being replaced with placeholders.

#### Does the actor cover countries other than the US for service cities?

LinkedIn's guest city index currently exposes US city pages only. Category and provider data are worldwide; non-US city paths do not resolve without a login.

#### Is this affiliated with LinkedIn?

No. This is an independent third-party tool that reads publicly visible pages.

# Actor input Schema

## `mode` (type: `string`):

Which LinkedIn public directory to scrape.

## `serviceCategories` (type: `array`):

Service categories as slugs, display names or URLs, e.g. `accountants`, `Graphic Design`, or `https://www.linkedin.com/services/graphic-designers`. Leave empty to walk the full browse taxonomy.

## `serviceCities` (type: `array`):

Optional city pages per category, e.g. `us/newark-nj`, `newark-nj`, or a full `/services/accountants/us/newark-nj` URL. LinkedIn's guest city index currently lists US cities only. Leave empty for the nationwide category page.

## `serviceKeyword` (type: `string`):

Keep only providers whose name, services, summary or location contains this text (case-insensitive).

## `minRating` (type: `number`):

Drop rated providers below this average rating (0-5). Providers with no displayed rating are kept.

## `hasReviewsOnly` (type: `boolean`):

Keep only providers with at least one displayed review.

## `productCategories` (type: `array`):

Product categories as slugs, display names or URLs, e.g. `customer-relationship-management-software` or `Recruiting Software`. Each category page shows LinkedIn's top 10 guests products.

## `productSearchQueries` (type: `array`):

Keywords for LinkedIn's public product search, e.g. `crm`, `payroll`, `analytics`.

## `productUrls` (type: `array`):

Direct product pages, e.g. `https://www.linkedin.com/products/salesforce-sales-cloud/` or `salesforce-sales-cloud`.

## `includeAllProductCategories` (type: `boolean`):

When no product target is supplied, walk every category in the public browse index instead of the products home page.

## `includeProductDetails` (type: `boolean`):

Enrich each product with its public detail page: intended roles, website, media titles, featured customers, similar products and the vendor portfolio.

## `includeCategoryInsights` (type: `boolean`):

Attach the category's total product count and its 'Used by' job-title counts to each product.

## `includeRelatedProducts` (type: `boolean`):

Follow similar-product and vendor-portfolio links to reach products beyond a category's top 10 guest cards.

## `relatedDepth` (type: `string`):

How many hops to follow when related-product crawling is enabled (mode=products).

## `productVendorFilter` (type: `string`):

Keep only products whose vendor name contains this text (case-insensitive).

## `maxItems` (type: `integer`):

Hard cap on records returned in this run.

## `rehostImages` (type: `boolean`):

Copy LinkedIn's expiring CDN product logos into this run's key-value store and return permanent public URLs. The original URL is kept in `logoUrlOriginal`.

## `proxyConfiguration` (type: `object`):

Optional proxy override. The actor works without a proxy.

## Actor input object example

```json
{
  "mode": "services",
  "serviceCategories": [
    "accountants"
  ],
  "serviceCities": [],
  "serviceKeyword": "",
  "hasReviewsOnly": false,
  "productCategories": [],
  "productSearchQueries": [],
  "productUrls": [],
  "includeAllProductCategories": false,
  "includeProductDetails": false,
  "includeCategoryInsights": false,
  "includeRelatedProducts": false,
  "relatedDepth": "1",
  "productVendorFilter": "",
  "maxItems": 1,
  "rehostImages": false
}
```

# Actor output Schema

## `providers` (type: `string`):

Dataset of service-provider records from LinkedIn's public Services marketplace.

## `products` (type: `string`):

Dataset of product records from LinkedIn's public Products catalog.

# 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 = {
    "mode": "services",
    "serviceCategories": [
        "accountants"
    ],
    "serviceCities": [],
    "hasReviewsOnly": false,
    "includeAllProductCategories": false,
    "includeProductDetails": false,
    "includeCategoryInsights": false,
    "includeRelatedProducts": false,
    "relatedDepth": "1",
    "maxItems": 1,
    "rehostImages": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/linkedin-products-services-directory").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 = {
    "mode": "services",
    "serviceCategories": ["accountants"],
    "serviceCities": [],
    "hasReviewsOnly": False,
    "includeAllProductCategories": False,
    "includeProductDetails": False,
    "includeCategoryInsights": False,
    "includeRelatedProducts": False,
    "relatedDepth": "1",
    "maxItems": 1,
    "rehostImages": False,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/linkedin-products-services-directory").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 '{
  "mode": "services",
  "serviceCategories": [
    "accountants"
  ],
  "serviceCities": [],
  "hasReviewsOnly": false,
  "includeAllProductCategories": false,
  "includeProductDetails": false,
  "includeCategoryInsights": false,
  "includeRelatedProducts": false,
  "relatedDepth": "1",
  "maxItems": 1,
  "rehostImages": false
}' |
apify call xyrelith-data/linkedin-products-services-directory --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/linkedin-products-services-directory"
        }
    }
}
```

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/mTmZQJ0GUBKse5bGA/builds/yCK5BVaWxcnNu5Tm7/openapi.json
