# LeadRocks Scraper (`datascrapers/leadrocks-scraper`) Actor

Export filtered B2B leads from the LeadRocks dataset by category, state, job title, company, and industry. Free users get 5 sample records; paying users get full filtered results.

- **URL**: https://apify.com/datascrapers/leadrocks-scraper.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 dataset items

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

**LeadRocks Scraper** creates a structured dataset of professional leads collected from LeadRocks. Each dataset item can include the job title, company, company website, industry, and location. Query the source with search phrases, states, job titles, companies, or industries, control the result limit with maxItems, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.

[![LeadRocks Scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/leadrocks-scraper/leadrocks-scraper-value-demo.gif)](https://apify.com/datascrapers/leadrocks-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | LeadRocks |
| Record unit | One professional lead |
| Input methods | searchQueries, states, jobTitles, companies, industries |
| Main identifiers | linkedinUrl, url |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML |
| Update model | Fresh records per Actor run |
| Pricing | $3.00 per 1,000 leads |

### Coverage and available records

The Actor searches the categories and filters you pass. A stored California SEO search returned company, job title, and location. Company website and industry are included when the source sends them. teamSize is the figure on the row, including 0 when the source has no size.

The public example below keeps the company and role and leaves out the person's name. The saved dataset row still contains the name fields the source returned. maxItems defaults from the input schema. The Actor does not send messages or export a mailbox.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| category | string | yes | Search category. | SEO |
| jobTitle | string | yes | Role on the lead. | Seo Director |
| company | string | yes | Company name. | Indeed |
| companyWebsite | string | yes | Company site. | http://indeed.com |
| industry | string | yes | Industry labels. Empty when the source sends none. | |
| state | string | yes | State code. | CA |
| location | string | yes | Location text. | San Jose; Ca |
| teamSize | string | yes | Company size text from the source. | 0 |
| linkedinUrl | string | yes | Profile URL. Use this field to deduplicate when it is present. | |
| url | string | yes | Same profile URL when the source uses url. | |

### Example dataset record

```json
{
  "category": "SEO",
  "jobTitle": "Seo Director",
  "company": "Indeed",
  "companyWebsite": "http://indeed.com",
  "state": "CA",
  "location": "San Jose; Ca",
  "teamSize": "0"
}
```

This row is from a stored SEO search limited to California. The saved item also includes name fields. Those are omitted here.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQueries | array | no | empty | text | Search phrases. |
| states | array | no | empty | state codes | State filter. |
| jobTitles | array | no | empty | text | Role filter. |
| companies | array | no | empty | text | Company filter. |
| industries | array | no | empty | text | Industry filter. |
| categories | array | no | empty | text | Category filter. |
| maxItems | integer | no | schema default | positive integer | Lead cap. |
| proxyConfiguration | object | no | Apify proxy off | Apify proxy input | Optional proxy. |

Minimal request:

```json
{"searchQueries": ["seo"], "states": ["CA"], "maxItems": 5}
```

### Retrieve the data through the API

Start the Actor with JSON input, wait for the run, then read the default dataset.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/leadrocks-scraper").call(run_input={
    "searchQueries": ["seo"],
    "states": ["CA"],
    "maxItems": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("company"), item.get("jobTitle"))
```

### Data quality and record handling

Deduplicate on linkedinUrl when it is present, otherwise url. industry can be an empty string. teamSize is copied as sent, so 0 means the source did not provide a size. A later run can return the same company role with an updated location.

### Pricing and cost examples

Pay per event. dataset-item is $3.00 per 1,000 leads on Free, Bronze, Silver, and Gold. Platinum and Diamond use the same price. Apify platform usage is billed separately. Saving 1,000 leads costs $3.00 in event fees, plus platform usage.

### Limitations and responsible data use

The Actor reads the lead directory you query. It does not email or message anyone. Use the records in line with privacy rules that apply to professional contact data.

### Dataset questions

#### What is one record?

One lead, keyed by linkedinUrl or url.

#### Which field should I use to deduplicate?

linkedinUrl, then url.

#### Does every row include a company website?

No. companyWebsite is empty when the source does not send one.

### Related datasets from Data Scrapers

- [Clutch Scraper](https://apify.com/datascrapers/clutch-scraper)
- [Europages Scraper](https://apify.com/datascrapers/europages-scraper)
- [Trustpilot Scraper](https://apify.com/datascrapers/trustpilot-scraper)

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

## `categories` (type: `array`):

LeadRocks lead categories to export (e.g. SEO, Trucking, Travel Nurse). Select one or more. If empty, use searchQueries instead.

## `searchQueries` (type: `array`):

Free-text category search matched against category names (e.g. "seo", "trucking", "travel nurse", "staffing agency"). Use instead of (or together with) the categories list.

## `states` (type: `array`):

Optional US state filter (abbreviations). Only leads in these states are returned when set.

## `locations` (type: `array`):

Optional location substrings matched against the lead Location field (e.g. "Los Angeles", "Miami", "United Kingdom").

## `jobTitles` (type: `array`):

Optional job-title substrings (e.g. "Owner", "Founder", "CEO").

## `companies` (type: `array`):

Optional company-name substrings (e.g. "Acme", "Tipalti").

## `industries` (type: `array`):

Optional industry substrings matched against the Industry field (e.g. "Software", "Healthcare").

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

Maximum number of leads to return (0 = unlimited for paying users). Free Apify plans are capped at 5 records per run.

## Actor input object example

```json
{
  "categories": [
    "seo"
  ],
  "searchQueries": [
    "seo"
  ],
  "states": [],
  "locations": [],
  "jobTitles": [],
  "companies": [],
  "industries": [],
  "maxItems": 100
}
```

# Actor output Schema

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

Dataset containing filtered LeadRocks lead records

## `runStats` (type: `string`):

Aggregate statistics for this run including record count and free-tier status

# 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 = {
    "categories": [
        "seo"
    ],
    "searchQueries": [
        "seo"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/leadrocks-scraper").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 = {
    "categories": ["seo"],
    "searchQueries": ["seo"],
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/leadrocks-scraper").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 '{
  "categories": [
    "seo"
  ],
  "searchQueries": [
    "seo"
  ]
}' |
apify call datascrapers/leadrocks-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascrapers/leadrocks-scraper"
        }
    }
}
```

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/sE1DiDzhdaalukLm5/builds/6kL31cXAX9winIbNH/openapi.json
