# Indeed Jobs Scraper (`lisbuenas/indeed-jobs-scraper`) Actor

Scrape job listings from Indeed with full details. Resilient multi-selector architecture. Supports keyword, location, job type and date filters.

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

## Pricing

from $2.50 / 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

## Indeed Jobs Scraper

Scrape job listings from [Indeed](https://www.indeed.com) with full details: title, company, location, salary, job type, posting date, full description, apply link and company rating. Each job becomes one item in the Apify dataset.

### Features

- **Search filters**: keywords, location, country site, posted within N days, job type and remote-only.
- **Full descriptions**: the scraper opens every job page instead of keeping only the short snippet from the search results.
- **Resilient multi-selector architecture**: every field is extracted with layered strategies, so a single markup change on Indeed doesn't break the scraper (see below).
- **Graceful degradation**: if a job page can't be loaded, the job is still saved with the search card data, flagged with `#warning`.
- **Polite crawling**: random 1–2 s delay before every request, low concurrency, session rotation and anti-bot detection with automatic retries.
- **Handles "no results"** searches without failing the run.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` | string | **required** | Job title, skills or company |
| `location` | string | empty | City, state, ZIP or "remote" |
| `country` | string | `us` | Indeed site: `us` = www.indeed.com, `uk` = uk.indeed.com, `ca`, `br`, `de`, ... |
| `maxResults` | integer | `50` | Maximum number of jobs to save |
| `daysPosted` | integer | none | Posted within N days. Indeed supports 1, 3, 7 or 14; other values round up. |
| `jobType` | enum | none | `fulltime`, `parttime`, `contract` or `internship` |
| `remoteOnly` | boolean | `false` | Only remote jobs |
| `maxConcurrency` | integer | `2` | Parallel pages |
| `proxyConfiguration` | object | `{ "useApifyProxy": true }` | Apify Proxy settings. Residential proxies are recommended. |

Example:

```json
{
  "keywords": "data engineer",
  "location": "Austin, TX",
  "country": "us",
  "maxResults": 100,
  "daysPosted": 7,
  "jobType": "fulltime",
  "remoteOnly": false,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

The search URL is built as `https://www.indeed.com/jobs?q={keywords}&l={location}&fromage={daysPosted}&jt={jobType}`, plus `sc=0kf:attr(DSQF7);` for remote-only and `start` for pagination.

### Output

```json
{
  "jobId": "a1b2c3d4e5f6a7b8",
  "title": "Senior Data Engineer",
  "company": "Example Corp",
  "companyRating": 4.1,
  "companyReviewCount": 523,
  "location": "Austin, TX",
  "isRemote": false,
  "salary": "$140,000 - $170,000 a year",
  "jobType": "Full-time",
  "datePosted": "2026-09-12",
  "datePostedText": "3 days ago",
  "description": "About the role\n\nWe are looking for ...",
  "descriptionIsSnippet": false,
  "applyUrl": "https://www.indeed.com/viewjob?jk=a1b2c3d4e5f6a7b8",
  "jobUrl": "https://www.indeed.com/viewjob?jk=a1b2c3d4e5f6a7b8",
  "searchKeywords": "data engineer",
  "searchLocation": "Austin, TX",
  "country": "us",
  "searchUrl": "https://www.indeed.com/jobs?q=data+engineer&l=Austin%2C+TX&fromage=7&jt=fulltime",
  "scrapedAt": "2026-09-15T12:00:00.000Z"
}
```

- Missing values are always `null`.
- `applyUrl` is the employer's external application link when Indeed exposes one. Otherwise it's the Indeed job page, where "Easily apply" jobs are applied to.
- `datePosted` is an ISO date. When Indeed only shows relative text ("3 days ago", "30+ days ago"), the date is approximate; the original text is kept in `datePostedText`.
- `descriptionIsSnippet: true` means the job page couldn't be loaded and `description` holds the short search snippet instead. Such items also have a `#warning` field.

### How the resilient extraction works

Each field is resolved by trying strategies in order until one returns a value:

1. **Embedded JSON**: the search results model (`window.mosaic.providerData["mosaic-provider-jobcards"]`), the job page's `window._initialData`, and JSON-LD `JobPosting`. Keys are looked up by name anywhere in the object, not by a fixed path, so reshuffled models keep working.
2. **CSS selectors**: at least two selector strategies per field (current `data-testid` attributes, older class names, structural fallbacks). Each one runs in its own `try/catch` and can require the text to match a pattern, e.g. a currency sign for salary.

Search card and job page values are merged, with job page values taking priority. All strategies are declared as data in `CARD_FIELDS` and `DETAIL_FIELDS` in `src/main.js`, so fixing a broken field means adding a selector to a list.

### Troubleshooting blocks

Indeed uses Cloudflare and other anti-bot protection.

- Use **residential proxies** (`"apifyProxyGroups": ["RESIDENTIAL"]`).
- The actor runs **headless** by default. If runs keep failing with "Blocked by anti-bot protection", set the environment variable `CRAWLEE_HEADLESS=0` in the actor's settings. The Docker image starts a virtual display (XVFB), so a headful browser works on the Apify platform without code changes. Headful browsers are often much harder for Cloudflare to detect.
- Keep `maxConcurrency` low.

### Run locally

```bash
npm install
npx playwright install chromium
mkdir -p storage/key_value_stores/default
echo '{"keywords":"data engineer","location":"Austin, TX","maxResults":10}' > storage/key_value_stores/default/INPUT.json
npm start
```

### Tech

Node.js 20, [Crawlee](https://crawlee.dev) `PlaywrightCrawler` and the [Apify SDK](https://docs.apify.com/sdk/js).

# Actor input Schema

## `keywords` (type: `string`):

Job title, skills or company to search for (Indeed's "What" field).

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

City, state, ZIP code or "remote" (Indeed's "Where" field). Leave empty to search the whole country.

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

Two-letter country code that selects the Indeed site: us = www.indeed.com, uk = uk.indeed.com, ca = ca.indeed.com, br = br.indeed.com, and so on.

## `maxResults` (type: `integer`):

Maximum number of jobs to save.

## `daysPosted` (type: `integer`):

Only jobs posted in the last N days. Indeed supports 1, 3, 7 and 14; other values are rounded up to the nearest supported value.

## `jobType` (type: `string`):

Only jobs of this type.

## `remoteOnly` (type: `boolean`):

Only return remote jobs.

## `maxConcurrency` (type: `integer`):

Maximum number of pages open at the same time. Keep it low to avoid blocks.

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

Indeed actively blocks scrapers. Apify Proxy is strongly recommended; residential proxies give the best success rate.

## Actor input object example

```json
{
  "keywords": "software engineer",
  "location": "New York, NY",
  "country": "us",
  "maxResults": 50,
  "remoteOnly": false,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "keywords": "software engineer",
    "location": "New York, NY",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lisbuenas/indeed-jobs-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 = {
    "keywords": "software engineer",
    "location": "New York, NY",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("lisbuenas/indeed-jobs-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 '{
  "keywords": "software engineer",
  "location": "New York, NY",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call lisbuenas/indeed-jobs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lisbuenas/indeed-jobs-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/SuREFrMamaRbIvGRJ/builds/qT5ZyL4pq2Po20vyz/openapi.json
