# Jobs Scraper 🔥 (`webscrap18/job-scraper`) Actor

A comprehensive job 💼 scraping actor for Apify that collects job listings from multiple platforms including LinkedIn, Glassdoor, Google Jobs, Bayt, and Naukri.

- **URL**: https://apify.com/webscrap18/job-scraper.md
- **Developed by:** [WebScrap](https://apify.com/webscrap18) (community)
- **Categories:** Lead generation, Automation, Jobs
- **Features:** Limited permissions
- **Stats:** 183 total users, 6 monthly users, 100.0% runs succeeded, 7 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Job Scraper

A comprehensive job scraping actor for Apify that collects job listings from multiple platforms including LinkedIn, Glassdoor, Google Jobs, Bayt, and Naukri.

### Description

This Apify actor allows you to search and collect job listings from multiple job sites in a single run. It provides detailed job information with intelligent data processing, making it ideal for job market research, recruitment efforts, and career exploration.

The actor implements robust error handling and retry mechanisms to ensure reliable results even when dealing with anti-scraping measures. Data is automatically processed, enriched, and categorized to provide actionable insights into the job market.

### Features

- Scrape job listings from multiple platforms in one run
- Customize search parameters (location, job type, remote, etc.)
- Retrieve detailed job information including salary data when available
- Convert salaries to annual format for easier comparison
- Proxy support for avoiding rate limits
- Resilient scraping with automatic retries
- Site-by-site approach to ensure some results even if one site fails
- Detailed error reporting and suggestions
- Automatic job categorization and data enrichment
- Clean data output by removing null/empty fields
- Job statistics and summary included in results

### Input Parameters

| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| `site_names` | Array | List of job sites to scrape from (supports "linkedin", "glassdoor", "google", "bayt", "naukri") | `["linkedin", "glassdoor", "google"]` |
| `search_term` | String | Job search keywords (e.g., "software engineer", "data scientist") | Required |
| `location` | String | Job location (e.g., "San Francisco, CA", "New York, NY") | Required |
| `results_wanted` | Integer | Number of job listings to retrieve per site | `20` |
| `hours_old` | Integer | Only show jobs posted within this many hours | `72` |
| `country` | String | Country for Glassdoor searches (e.g., "USA", "UK", "Canada") | `"USA"` |
| `distance` | Integer | Maximum distance from the location in miles | `50` |
| `job_type` | String | Type of job to search for ("fulltime", "parttime", "internship", "contract") | `null` |
| `is_remote` | Boolean | Only show remote jobs | `false` |
| `offset` | Integer | Number of results to skip (useful for pagination) | `0` |
| `proxies` | Array | List of proxies to use for scraping (format: "user:pass@host:port" or "host:port") | `[]` |

### Output

The actor outputs a dataset of job listings with the following information:

- Job title
- Company name
- Location (city, state, country)
- Remote status
- Job type (full-time, part-time, etc.)
- Salary information (when available)
- Job URL
- Job description
- Date posted
- Job category (automatically derived from title)
- Date scraped
- Search query used
- And more depending on the job board

#### Output Format Example

```json
{
  "jobs": [
    {
      "company": "Cartesia",
      "company_url": "https://www.linkedin.com/company/cartesia-ai",
      "title": "Software Engineer, India",
      "date_posted": "2025-07-27",
      "job_url": "https://www.linkedin.com/jobs/view/4227402416",
      "skills": ["Python", "React", "AWS", "Docker", "PostgreSQL"],
      "job_type": "Full-time",
      "experience_range": "2-4 years",
      "location": "Bengaluru, Karnataka, India",
      "id": "li-4227402416",
      "site": "linkedin",
      "interval": "yearly",
      "min_amount": 1200000,
      "max_amount": 1800000,
      "currency": "INR",
      "is_remote": false,
      "job_level": "Mid-level",
      "job_function": "Engineering",
      "company_industry": "Artificial Intelligence",
      "company_rating": 4.4,
      "work_from_home_type": "Hybrid",
      "category": "Software Engineering"
  }

  ],
}
```

### Advanced Features

#### Data Enrichment

The actor provides additional data enrichment:

- Automatic job categorization based on title keywords
- Derivation of job type from title if not explicitly provided
- Detection of remote jobs based on title and description
- Default values for missing fields

#### Clean Output

The `clean_output` parameter allows you to control how the data is returned:

#### Site-by-Site Scraping

The actor scrapes each site individually, which means:

- If one site fails, the others will still be scraped
- More detailed error reporting for each site
- Random delays between sites to avoid detection

#### Retry Mechanism

The actor includes an automatic retry system:

- Configurable number of retries per site
- Increasing delays between retries
- Proxy rotation between retries (if multiple proxies provided)

#### Error Handling

Improved error handling with:

- Detailed error messages for each site
- Specific suggestions for different error types
- Comprehensive logging for troubleshooting

### Usage Tips

1. **Handling Site Blocking**
   - Many job sites implement anti-scraping measures
   - Using proxies is highly recommended to avoid IP blocking
   - Spread requests over time by reducing the number of sites you scrape at once

2. **Google Jobs Scraping**
   - For Google Jobs, the search query format is important
   - The actor will automatically generate a Google-specific search term if not provided

3. **Improving Results**
   - Use specific search terms and locations for better results
   - Setting `linkedin_fetch_description` to `true` provides more detailed job descriptions but is slower
   - For Glassdoor, setting the correct `country` parameter is important

### Example Usage

```json
{
  "easy_apply": false,
  "enforce_annual_salary": true,
  "is_remote": true,
  "location": "India",
  "results_wanted": 50,
  "search_term": "software engineer",
  "site_names": [
    "linkedin",
    "glassdoor",
    "google",
    "bayt",
    "naukri"
  ],
  "hours_old": 72,
  "country": "USA",
  "distance": 50,
  "description_format": "markdown",
  "offset": 0
}
```

### Troubleshooting

If you encounter a 429 error (rate limiting) or 403 error (forbidden), try:

1. Using proxies
2. Reducing the number of `results_wanted`
3. Waiting some time between runs
4. Targeting fewer job sites at once
5. Increasing the `max_retries` value

### Limitations

- LinkedIn has limitations on which parameters can be used together
- Google Jobs requires a specific search term format
- Rate limiting may occur when scraping a large number of jobs without proxies
- Some job sites may block scraping attempts even with proxies
- Search results may vary compared to manual searches due to personalization

# Actor input Schema

## `site_names` (type: `array`):

List of job sites to scrape from.

## `search_term` (type: `string`):

Job search keywords (e.g., 'software engineer', 'data scientist')

## `location` (type: `string`):

Job location (e.g., 'San Francisco, CA', 'New York, NY')

## `country` (type: `string`):

Country for Indeed and Glassdoor searches (e.g., 'USA', 'UK', 'Canada').

## `results_wanted` (type: `integer`):

Number of job listings to retrieve per site.

## `hours_old` (type: `integer`):

Only show jobs posted within this many hours.

## `distance` (type: `integer`):

Maximum distance from the location in miles.

## `job_type` (type: `string`):

Type of job to search for.

## `is_remote` (type: `boolean`):

Only show remote jobs.

## `offset` (type: `integer`):

Number of results to skip (useful for pagination).

## `proxies` (type: `array`):

List of proxies to use for scraping (format: 'user:pass@host:port' or 'host:port').

## Actor input object example

```json
{
  "site_names": [
    "linkedin",
    "glassdoor",
    "google",
    "bayt",
    "naukri"
  ],
  "search_term": "software engineer",
  "location": "San Francisco, CA",
  "country": "USA",
  "results_wanted": 20,
  "hours_old": 72,
  "distance": 50,
  "is_remote": false,
  "offset": 0
}
```

# 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 = {
    "site_names": [
        "linkedin",
        "glassdoor",
        "google",
        "bayt",
        "naukri"
    ],
    "search_term": "software engineer",
    "location": "San Francisco, CA"
};

// Run the Actor and wait for it to finish
const run = await client.actor("webscrap18/job-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 = {
    "site_names": [
        "linkedin",
        "glassdoor",
        "google",
        "bayt",
        "naukri",
    ],
    "search_term": "software engineer",
    "location": "San Francisco, CA",
}

# Run the Actor and wait for it to finish
run = client.actor("webscrap18/job-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 '{
  "site_names": [
    "linkedin",
    "glassdoor",
    "google",
    "bayt",
    "naukri"
  ],
  "search_term": "software engineer",
  "location": "San Francisco, CA"
}' |
apify call webscrap18/job-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,webscrap18/job-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/bIEFXabEyolFVphcz/builds/ahk6SqtmGQV4rFkaN/openapi.json
