# Jobs Scraper (`utils/jobs-scraper`) Actor

$0.1/1K jobs — scrape Indeed search results with no login: every query always returns rows (never-fail output), the first 50 jobs of each run are free, then $0.1 per 1K jobs. Clean fields: title, company, location, salary, job URL, posted date; multiple queries per run with a date-posted filter.

- **URL**: https://apify.com/utils/jobs-scraper.md
- **Developed by:** [Oliver Queen](https://apify.com/utils) (community)
- **Categories:** Jobs
- **Features:** Limited permissions
- **Stats:** 3 total users, 0 monthly users, 87.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.07 / 1,000 job records

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

## Indeed Jobs Scraper

Scrape **job search results** into a clean dataset: title, company,
location, salary, canonical job URL and posted date — plus the depth the
Indeed search feed already carries on the same request (full job
description, apply URL, employer profile fields, job type, remote flag).
Search many queries per run, filter by date posted, job type and
remote-only, and cap records per query.

`sources` also covers **Glassdoor** job listings with the same row shape
(one extra selectable board; the default run is Indeed-only, byte-identical
to the previous release).

```json
{
  "queries": ["registered nurse", "warehouse associate", "python developer"],
  "location": "United States",
  "datePosted": "7d",
  "maxRecords": 20
}
```

### Output

One dataset row per job (no summary row), with a per-row `query` so a
multi-query run stays traceable. The sample row below is an illustrative Indeed feed
row with all ten depth columns populated: every column is emitted only
when the listing actually has it:

```json
{
  "title": "Registered Nurse - ICU",
  "company": "Ascension",
  "location": "Austin, TX 78705",
  "salary": "$78,000 - $102,000 a year",
  "description": "Seton Healthcare Family, a member of Ascension, is seeking a Registered Nurse ICU to deliver direct patient care to ensure the well-being of patients…",
  "applyUrl": "https://careers.example.com/apply/rn-icu-3822",
  "jobType": "fulltime",
  "isRemote": false,
  "companyLogo": "https://logo.example.com/ascension.png",
  "companyWebsite": "https://employer.example.com",
  "companyEmployees": "1,001 to 5,000",
  "companyRevenue": "$1B to $5B (USD)",
  "companyIndustry": "Health Care",
  "companyDescription": "Ascension is one of the largest private healthcare systems in the United States…",
  "url": "https://www.indeed.com/viewjob?jk=1a2b3c4d5e6f7890",
  "postedDate": "2026-10-19",
  "source": "indeed",
  "jobKey": "1a2b3c4d5e6f7890",
  "query": "registered nurse",
  "ok": true,
  "country": "US"
}
```

- `salary` appears only when the listing publishes one; empty fields are
  never emitted, so no column is ever `undefined`.
- `postedDate` is an ISO 8601 date (`YYYY-MM-DD`) whenever Indeed reports
  one it can trust. When it does not — for example on listings older than
  about a year — the key is left out of the row altogether, rather than
  reporting a possibly wrong date.
- With `sortBy: "date"` the rows of each query arrive newest first: the
  actor sorts them on this same `postedDate` value (rows without a date go
  last), so the order and the published column can never disagree. The
  default `relevance` keeps the feed's own order. The Indeed filter inputs
  add no columns — they narrow or order the same rows.
- `country` is the uppercase ISO code of the country site the row came
  from (`US`, `GB`, …) — the run's country code, uppercased. It is present
  on every row, including a failed query's row.
- **`changeState` — opt-in (`incrementalMode`).** `NEW` when the previous
  run of the same input did not deliver the job, `UPDATED` when its title,
  description, salary, date or apply link changed, `EXPIRED` for a job the
  previous run delivered and this one does not (the row keeps the **last
  known** `title`/`company`, and counts as a delivered row). A job that did
  not change is **not emitted at all**, so the column has no `UNCHANGED`
  value and a quiet run ships an empty delta — that is a success, not a
  failure. The column is absent from every row of a run without
  `incrementalMode`. State is stored between runs keyed by job key, so the
  same run twice yields the second one's delta; if the store is unreachable
  the run degrades to "no state" (every row `NEW`), ships its rows and exits
  0\.
- **Depth from the same search request.** The Indeed feed that already
  returns the row also carries the full `description` — HTML stripped to
  plain text and not capped; the ≤600-character `descriptionSnippet` stays
  as the card preview — plus `applyUrl`, the external/ATS apply URL of a
  listing that sends applicants away from Indeed (absent when the listing
  applies on Indeed itself). No per-job detail request is ever made to fill
  either column.
- **`applyUrlResolved` — opt-in, on either board's EXTERNAL apply links**
  (`resolveApplyUrl`). When the input is on, the actor follows each row's own
  `applyUrl` redirect chain once and publishes the address it finally lands
  on: the employer's ATS (`workday`, `taleo`, `adp`, `paylocity`,
  `careerplug`, `csod`, …). It is the short-link case that motivates the
  column — `grnh.se/…` → `job-boards.greenhouse.io/…` — and it **equals
  `applyUrl` when nothing redirected**. Off by default; each *distinct* apply
  URL costs one extra request, paced at one per second and bounded to 20
  resolves per query. A row with no `applyUrl`, a dead link, a destination
  that refuses the request or a resolve past the bound simply omits the key:
  never `null`, never an empty string, never a relative URL. **A link on the
  board's own domain is never requested at all** (measured 2026-10-24: both
  boards' own apply links answer `403` from this route — Glassdoor's even with
  the board's own `Referer` set — and a same-site result could only
  echo `applyUrl`), so such a row ships without the column and costs nothing.
  Measured on the datacenter route: Indeed external destinations resolve (20
  of 20 attempts in the replay of 25 rows, 13 ATS hosts, 0 board-own
  requests); Glassdoor's own partner redirect links
  (`glassdoor.com/partner/jobListing.htm`) answer `403`, so Glassdoor rows
  publish the column only for an external `applyUrl`.
- **Job type and remote markers — on both Indeed routes.** `jobType` is the
  structured employment type — `fulltime`, `parttime`, `contract`,
  `internship`, `temporary`, `perdiem` and/or `volunteer`, comma-joined in
  that fixed order when a listing carries several. The feed decodes the
  listing's own attribute codes; the search-page fallback maps the card's
  own labels to the same vocabulary. `isRemote` is `true` for a remote
  listing and `false` when it is marked hybrid or on-site (Indeed lists
  remote/hybrid explicitly, so an attribute list with no remote marker is
  an on-site listing); the key is absent only when the listing carries no
  remote/hybrid information at all.
- **Employer profile columns, feed-only.** `companyLogo`, `companyWebsite`,
  `companyEmployees`, `companyRevenue`, `companyIndustry` and
  `companyDescription` come from the company profile the feed itself
  carries with the search result — Indeed's own labels, verbatim (e.g.
  `"1,001 to 5,000"` employees, `"$1B to $5B (USD)"` revenue), and
  `companyDescription` is the employer's blurb, distinct from the job's own
  `description`. The search-page fallback omits these six.
- **Supplied-when-supplied.** A row carries exactly as much depth as its
  listing has — the same absent-is-absent rule as `salary`: fields the
  search does not return are never emitted (no column is ever `undefined`),
  never invented. Error rows carry none of the ten depth columns; a row
  served by the search-page fallback carries only two of them (`jobType` and
  `isRemote`).

* A job that matches several of your queries appears **once per matching
  query** (the `query` column tells you which search found it). It is only
  billed once per run.
* A query that cannot be served still produces exactly **one row**:
  `{"query": "...", "ok": false, "err": "blocked by the site's anti-bot check", "source": "indeed", "country": "US"}`.
  A run never ends with an empty dataset and never fails because of the site.

#### Glassdoor rows (`sources` includes `glassdoor`)

Glassdoor listings use the **same columns and the same
`query`/`source`/`ok` contract**; `source` is `glassdoor` and `jobKey` is
`gd-<listingId>`. The search answer already carries the card fields, and one
batched depth request per page (up to 25 listings per request) fills the rest
— no per-job page is ever fetched:

```json
{
  "title": "Staff Software Engineer - Monetization Platform",
  "company": "Indeed",
  "location": "Texas",
  "salary": "$140,000 - $293,000 a year",
  "description": "Our Mission As the world's number 1 job site, our mission is to help people get jobs…",
  "applyUrl": "https://www.glassdoor.com/partner/jobListing.htm?pos=101&ao=…",
  "easyApply": false,
  "jobType": "fulltime",
  "companyRating": 3.9,
  "companyReviewCount": 5506,
  "companyLogo": "https://media.glassdoor.com/sql/100561/indeed-squareLogo-1671046570073.png",
  "companyWebsite": "https://www.indeed.com",
  "companyEmployees": "10000+ Employees",
  "companyRevenue": "$1 to $5 billion (USD)",
  "companyIndustry": "Internet & Web Services",
  "companyDescription": "Indeed is the #1 job site in the world…",
  "companyCeo": "Hisayuki Deko Idekoba",
  "companyFounded": 2004,
  "sponsored": true,
  "salaryMin": 140000,
  "salaryMedian": 216500,
  "salaryMax": 293000,
  "salaryType": "YEARLY",
  "salaryCurrency": "USD",
  "url": "https://www.glassdoor.com/job-listing/staff-software-engineer-…?jl=1010302858380",
  "postedDate": "2026-10-21",
  "source": "glassdoor",
  "jobKey": "gd-1010302858380",
  "query": "software engineer",
  "ok": true,
  "country": "US"
}
```

- **Salary** is the site's own pay estimate when it publishes one:
  `salary` text plus the decoded `salaryMin` / `salaryMedian` / `salaryMax`,
  `salaryCurrency` and `salaryType` (`YEARLY`, `MONTHLY`, `HOURLY`). A
  listing with no published pay emits none of these keys.
- **Company dossier**: `companyRating` + `companyReviewCount`, `companyLogo`,
  `companyWebsite`, `companyEmployees`, `companyRevenue`, `companyIndustry`,
  `companyDescription`, `companyCeo`, `companyFounded` — the employer fields
  Glassdoor publishes for the listing's own employer id (the review count is
  resolved by one batched employer request, not a per-job page).
- **Company insights** (opt-in, `includeCompanyInsights`): `companyPros` /
  `companyCons` (up to 3 plain-text review strings each, in the order the
  reviews publish them), `companyCeoApproval` (`approve`, `disapprove` or
  `no_opinion` — the majority CEO token of the returned reviews),
  `companyRecommendPct` (0-100), `salaryReportsP25` / `salaryReportsP50` /
  `salaryReportsP75` with `salaryReportsScope` (`title` when the figures are
  the employer's reports for this row's job title, `employer` when they were
  published under another title), `salaryReportsCount` and
  `salaryReportsPeriod` (`annual`, `hourly` — the selected report's own pay
  period lowercased, so the mixed-unit figures are never read in the wrong
  unit; absent when that report carries none), plus
  `interviewDifficulty` (1-5, two decimals), `interviewAcceptancePct` (0-100)
  and `interviewsCount`. One memoized batch of three requests per **distinct
  employer per run** — a repeated employer costs nothing — paced by the same
  one-request-per-second gate as the search; the run resolves at most 25
  employers and the salary figures are the measured US country slice only.
  A row whose employer answered nothing omits these keys: never a `null`,
  an empty string or a 0 placeholder.
- **Job GPS coordinates** (opt-in, `includeJobGps`, both boards):
  `latitude` / `longitude` in decimal degrees, exactly as the site publishes
  them. They ship **as a pair or not at all** — a listing with no location, a
  non-numeric value or the site's remote-work placeholder pair omits both, so
  a coordinate is never invented. Zero extra requests: the pair rides the
  Indeed search answer and the Glassdoor listing detail the run already
  fetches.
- **Benefits** (opt-in, `includeBenefits`, both boards): `benefits` is the
  list of benefit names the listing publishes (the site's own strings,
  deduped, in published order) — Indeed's benefit labels ride the search
  answer at zero cost, Glassdoor's come from one request per **distinct
  employer** that also returns `benefitsRating` (0-5, two decimals, from the
  reviews behind it) and `benefitsReviewsCount`. That employer batch is
  paced by the same one-request-per-second gate, capped at 25 employers per
  run, and the rating is the measured **US** country slice only: a non-US
  Glassdoor run sends no request and omits the keys. A row whose employer
  answered nothing omits them too — never a `null`, an empty string or a 0
  placeholder.
- **Apply / listing facts**: `applyUrl` (the employer's apply destination when
  the listing sends applicants away from Glassdoor), `easyApply`, `sponsored`,
  and `url` (the public permalink built from the listing id).
- `postedDate` is ISO `YYYY-MM-DD`, derived from the listing's own age in
  days; the relative text the site prints ("3d") is never published.
- Glassdoor search applies `location` when the site resolves it: the run asks
  Glassdoor's own location autocomplete once per distinct location and sends
  the resolved id with the search, which narrows the results to that area. A
  location the site cannot resolve leaves the query keyword-only (the whole
  selected country is searched) and never fails the run. A Glassdoor row's
  `location` is always the listing's own location string.
- Every Glassdoor query that cannot be served still produces **one row**:
  `{"query": "...", "ok": false, "err": "…", "source": "glassdoor", "country": "US"}`.

### Pricing

**$0.1 per 1,000 job results — the first 50 results of a run are free.**
Glassdoor rows are **$0.4 per 1,000** (`GLASSDOOR_JOB_RESULT`,
$0.0004/job); the same 50 free results cover both boards in a mixed run.

That price is the `JOB_RESULT` event ($0.0001 per result).

Two facts drive the price, and both are measured on this actor's own runs:

1. the data path is a **lightweight HTTP client** (~1.5 s and <100 MB per
   query), not a browser — a browser run would cost 10-20x the compute
   for the same bytes;
2. the market anchor is an all-in **$0.0001/job** actor (compute absorbed by
   the developer), and Apify's developer share of event revenue is 80%.

**Active branch: A — compute included.**

| Event | When | Price |
|-------|------|-------|
| `JOB_RESULT_FREE` | first 50 jobs of a run (both boards together) | **$0 — nothing is billed** (the platform carries no zero-price event: the free rows simply emit no paid event) |
| `JOB_RESULT` | every further Indeed job | $0.0001 |
| `GLASSDOOR_JOB_RESULT` | every further Glassdoor job | $0.0004 |
| `apify-actor-start` | once per run | $0.00005 |

Volume ladder (per job, `JOB_RESULT`): FREE $0.0001 · BRONZE $0.00009 ·
SILVER $0.00008 · GOLD $0.00007 · PLATINUM $0.00007 · DIAMOND $0.00007.

The Glassdoor price is 4× Indeed's because one Glassdoor page carries two
batched enrichment requests (depth + employer
review counts) per 25 listings on top of its
anonymous access, and the market anchor for job-listing
parity is $0.29-$4.75 per 1,000. The run-level first-50 counter spans
**both boards** — a mixed run's first 50 delivered rows are free whichever
board produced them, then each board bills its own event.

The last two tiers are floored at $0.00007 by the platform: the pricing API
silently clamps any tiered price below that value, so a deeper discount than
30% cannot be expressed. The ladder above is the price list **as it actually
exists on the account**, not as it was designed.

#### Pricing math (why branch A, and when B applies)

All numbers below are measured on a production-shaped run (20 queries, 387
jobs, 512 MB, 49 s) and use the **rate the platform actually bills**, not a
reference rate:

| Metric | Value |
|--------|-------|
| Usage billed by the platform (measured) | **$0.003447** per run |
| Compute units consumed | 0.006811 CU |
| Effective rate on this run | **≈ $0.51 per CU** (the $0.25/CU figure is not what the account is billed) |
| Usage per delivered job | **$0.0000089** |
| Event revenue (337 paid × $0.0001 + $0.00005 start) | $0.033750 |
| Developer share after the platform's 20% | $0.027000 |
| Net after usage | **$0.023553 per run (87% of the developer share)** |
| Net per paid job | $0.000070 |
| Break-even | ≈ **60 delivered jobs** (≈ 10 paid) per run |

So the job price is ~11× the usage it causes: compute-included pricing is
safe **on this data path**, and the 50 free results stay genuinely free (an
error row, or a query that returns nothing, is never charged at all).

A very small run does cost the developer a fraction of a cent: a single-query
run bills ≈$0.0002-0.0003 of usage and at most $0.00004 of revenue. That is
the price of the free tier, and it is capped by `maxTotalChargeUsd`.

Branch B ($0.0004/job) exists for a browser-only path, where 1 GB × 15 s per
SERP costs ≈$0.0005-0.001/job at the measured rate: at that cost a
$0.0004 price is NEGATIVE margin unless platform usage is billed to the user
(`isPPEPlatformUsagePaidByUser`). Both pricing branches are pre-wired in the
actor's configuration; the actor ships branch A because the measurement
supports it.

> **Status (2026-10-24):** the `JOB_RESULT`, `GLASSDOOR_JOB_RESULT` and
> `apify-actor-start` events are **active on the account**;
> `GLASSDOOR_JOB_RESULT` $0.0004 (`JOB_RESULT` $0.0001 on the FREE plan, ladder as
> above; `apify-actor-start` $0.00005). The first 50 results of a run are free
> because the actor simply does not charge for them — the platform cannot
> carry a zero-price event, so no paid event is emitted for results 1-50.
> Events are charged per delivered job (deduplicated by job key), never for a
> failed query. Verified end-to-end on a production run: 60 rows delivered
> were billed as 1 start event + 9 job events ($0.00095), with the first 50
> results free.

### Billing

- An error row or a failed query is never charged; the per-run start event
  ($0.00005) is the only charge a run that delivered nothing can ever
  produce.
- One delivered job is one `JOB_RESULT` event (deduplicated by job key),
  never a failed query. The first 50 results of a run are free — the platform
  cannot carry a zero-price event, so nothing is emitted for results 1-50.
- A delivered **Glassdoor** row bills `GLASSDOOR_JOB_RESULT` ($0.0004) after
  the same run-level 50 free results; a mixed run's billing line reports the
  per-board split (`boards=indeed:…,glassdoor:…`). Error rows — a query that
  could not be served, an unsupported country — are never charged.
- At the published maximum (50 queries × 200 = 10,000 rows) an Indeed run
  bills ≈$0.995 — under the `maxTotalChargeUsd` $2 cap the actor is
  configured with, so the platform never has to end a full-size run early.
  A Glassdoor run at that same maximum would bill ≈$3.98, so for
  Glassdoor-heavy runs keep `queries × maxRecords` at ≈5,000 rows per run to
  stay under the cap.

### Inputs

| Field | Type | Default | Meaning |
|-------|------|---------|---------|
| `queries` | array of strings | — (required unless `startUrls` is set) | Search keywords, up to 50 |
| `startUrls` | array of strings | `[]` (off) | Paste Indeed search or job URLs. A search URL's `q` becomes a query, and its own `l`, `radius`, `fromage` and `sort` values fill the matching inputs only when you left them at their default — an explicit input always wins (a later URL that disagrees is one debug note). A `viewjob?jk=` URL becomes that exact job: the key is resolved in one `jobData` request per 20 pasted keys, and a key the site no longer carries still produces one explanation row (never-fail). A URL from another country's Indeed site than the selected `country` produces one explanation row too. `start`, tracking and `fccid` parameters are ignored |
| `location` | select (suggestions, free text) | `United States` | City+state, state, country, or `Remote`. The list suggests the 20 country names plus `Remote`; any other text is accepted. Applied to Indeed always, and to Glassdoor whenever the site resolves it (otherwise the whole selected country is searched) |
| `expandToCities` | boolean (checkbox) | `false` | Expand one region search into its top cities (opt-in, Indeed only). The `location` search runs first and its own answer names the cities; each of the five most-listed cities then costs one extra request (about 1.3 s, paced like every query) and its rows merge with the region's, de-duplicated on the job key — so a job seen in both ships once. The region itself is never re-run, and a city that answers nothing is one debug line, never an error row |
| `country` | enum | `us` | Country site to scrape: `us`, `gb`, `ca`, `au`, `de`, `fr`, `nl`, `in`, `sg`, `jp`, `be`, `ch`, `nz`, `es`, `it`, `br`, `mx`, `at`, `ar`, `ie` |
| `datePosted` | enum | `any` | `any`, `24h`, `3day`, `7d`, `14d` |
| `jobType` | select | — (unset) | Filter by employment type: `fulltime`, `parttime`, `contract`, `internship`, `temporary`, `perdiem`, `volunteer`. The feed applies it on the Indeed site itself (server-side — fewer rows, less bandwidth); the search-page fallback filters the same field on each card |
| `remoteOnly` | boolean (checkbox) | `false` | Return only remote listings — hybrid ones are excluded, and a listing with no remote marker is not returned either (unconfirmed is never treated as a match). Same feed-server / fallback-card pattern as `jobType` |
| `radiusKm` | integer | — (unset → 50 mi) | Search radius around `location`, 1-160 km, converted to miles on the feed's own radius clause. Unset keeps today's 50 miles (~80 km), so a value below 80 narrows the geography and one above widens it. Indeed feed only: the search-page fallback has no radius parameter and keeps its cards unchanged (one debug note, never a failure) |
| `experienceLevel` | multi-select | — (unset) | Keep only listings at these experience levels: `entry`, `mid`, `senior`, `management` (an OR across the selected levels). Applied by the Indeed feed itself through its own attribute codes — fewer rows over the wire. Feed only: the search-page fallback cannot apply it and logs one debug note |
| `sortBy` | select | `relevance` | Row order per query: `relevance` (the feed's own order) or `date` (newest first). The feed accepts a date-sort token but does not apply it, so `date` is ordered by the actor on the same `postedDate` value the dataset publishes — the order and the column can never disagree; rows without a date go last |
| `minSalary` | integer | — (unset) | Keep only jobs whose published yearly pay reaches this amount (0 = off). The filter runs on our side, because the job feeds have no pay filter: a row matches only when it states a **yearly** figure (`salaryType` `YEARLY`, using the range's top bound; otherwise the salary text when it names a yearly period). An hourly/daily/weekly/monthly-only row never matches — its pay is never converted into a yearly figure, so no number is invented. Amounts are compared as published (no currency conversion), and most listings publish no pay at all, so a threshold returns far fewer jobs. A query whose matches all fall below the amount still returns its rows (never-fail) |
| `maxSalary` | integer | `0` (off) | Keep only jobs whose published yearly pay is at or below this amount. The filter runs on our side (the job feeds have no pay filter) and reads exactly what `minSalary` reads: a row matches only when it states a **yearly** figure, and an hourly/daily-only row never matches because its pay is never converted. Measured twice on 2026-10-24, 500 live listings each: **342 (68.4 %) and 382 (76.4 %) rows state a yearly figure**, median $173,400 and $200,000; a $120,000 cap kept 55 and 49 of them. Amounts are compared as published (no currency conversion). A query whose matches all exceed the amount still returns its rows |
| `strictMatch` | boolean (checkbox) | `false` | Keep only listings whose **title contains every word of the query** (opt-in). Measured on 500 live `software engineer` listings: **290 kept (58.0 %) and 210 dropped (42.0 %)** — a broad query gets much narrower instead of merely re-ranked. A dash-excluded word (`python developer -java`) is never required of the title, and a query whose titles match nothing still returns one row |
| `uniqueCompanies` | boolean (checkbox) | `false` | At most **one row per employer** (opt-in), so a broad search is not filled by one company. Rows are grouped by the site's own employer id, which merges legal-entity variants of one employer; a listing without that id falls back to the company name. Measured on 100 live listings: **51 distinct employers by id against 59 by name**, so the filter removes roughly a fifth to a half of a broad page. The first row of each employer is the one kept |
| `maxRecords` | integer | `20` | Job rows per query, 1-200 (the feed pages to it; the search-page fallback delivers what its single page holds) |
| `sources` | multi-select | `indeed` | Boards to scrape: `indeed`, `glassdoor`, or both in one run (each row carries its own `source`) |
| `includeCompanyInsights` | boolean (checkbox) | `false` | Add employer insights to Glassdoor rows (opt-in): up to 3 review **pros** / **cons**, the CEO approval, the recommendation share, the employer's **salary reports** (US site) and **interview** statistics. Each distinct employer costs 3 extra requests, paced by the same one-request-per-second gate as the search, and the run resolves at most 25 employers — later employers, and employers that answered nothing, ship without these columns |
| `resolveApplyUrl` | boolean (checkbox) | `false` | Follow each row's own `applyUrl` redirect chain and publish where it lands as `applyUrlResolved` (opt-in, either board's EXTERNAL apply links; equals `applyUrl` when nothing redirected). Each **distinct** apply URL costs one extra request, paced at one request per second and bounded to 20 resolves per query — a row with no `applyUrl`, a link on the board's **own** domain (never requested: both boards' own apply links answer 403 and the result could only echo `applyUrl`), a dead link, a destination that refuses the request or one past the bound ships without the column |
| `includeJobGps` | boolean (checkbox) | `false` | Add the job's own coordinates as `latitude` / `longitude` in decimal degrees, on both boards (opt-in). They ship as a pair or not at all: a listing with no location, a non-numeric value or the site's remote-work placeholder pair omits both. **No extra request** — the pair rides the Indeed search answer and the Glassdoor listing detail |
| `includeBenefits` | boolean (checkbox) | `false` | Add the benefits the listing publishes as `benefits` (the site's own names, deduped), on both boards (opt-in). Glassdoor additionally returns `benefitsRating` (0-5, two decimals) and `benefitsReviewsCount` from one extra request per **distinct employer**, paced at one request per second and capped at 25 employers per run — the measured US country slice only, so a non-US Glassdoor run sends no request and omits those two keys. Indeed's benefit labels cost no extra request |
| `incrementalMode` | boolean (checkbox) | `false` | Report only **what changed** since the previous run of the same input (opt-in). Adds a `changeState` column: `NEW` (the previous run did not deliver this job), `UPDATED` (its title, description, salary, date or apply link changed) or `EXPIRED` once (the previous run delivered it and this one no longer does — the row carries the last known title and company and is billed like any other row). **Unchanged listings are not returned at all**, so the dataset is a delta instead of a full list; an `EXPIRED` row costs a `JOB_RESULT` like any delivered row. The state lives with the actor **account**, not with the input: repeat the same input for a clean delta, and a run with another input replaces it. Off by default, and then no state is read or written. If the state cannot be stored or read the run still returns every row as `NEW` and exits normally |

`queries` also accepts the site's own **exclusion syntax**: a `-word` drops
listings that mention it (`java developer -java` returns no Java listings —
measured 2026-10-25: 0 rows with the exclusion, 100 with the same dash before
an unused word). Because the exclusion runs on the site, an over-narrow query
comes back as the usual normalized explanation row, never as a failure. The
other operators (`title:`, `OR`, `any:`, `all:`) are **not** supported: they
are ignored or break the query, so do not rely on them.

`sources` is the one field that turns a Glassdoor run on; leaving it unset
(or `["indeed"]`) is byte-identical to the previous release. Glassdoor runs
are **100% anonymous** — no account, no login and no credential input of
any kind. Glassdoor search
narrows to `location` when the site resolves it (see Output) and serves
**20 country storefronts**:
`us`, `gb`, `ca`, `au`, `de`, `fr`, `nl`, `in`, `sg`, `jp`, `be`, `ch`,
`nz`, `es`, `it`, `br`, `mx`, `at`, `ar`, `ie`.

`country` is one shared input for both boards, so a country only one board
serves still succeeds: the serving board returns its rows and the other
returns ONE explanation row (`ok: false`, `err` naming the reason). That is
the case for the 10 Glassdoor-only codes (`be`, `ch`, `nz`, `es`, `it`,
`br`, `mx`, `at`, `ar`, `ie`) when `sources` includes `indeed`.

`maxRecords` is capped at 200. Indeed's primary feed is cursor-paginated
(bounded pages, de-duplicated by job key), so one query can return up to the
requested cap; a query whose real supply is smaller is reported as complete
when the feed itself says there is no next page. The search-page fallback is
single-page by design (~45 cards in the US, 15 elsewhere): it delivers what
its page holds and reports the query as complete rather than as a short
failure. To cover more of the market, use more queries.

`jobType` and `remoteOnly` are filter inputs, not post-run slices. On the
primary feed Indeed applies the filter on the site itself (server-side —
the result set is narrowed before it reaches the run: fewer rows, less
bandwidth); a query that falls back to the search page is filtered on its
cards instead, where each card carries the job-type labels and a remote
flag. Honesty is the rule: a listing that publishes no job type — or no
remote status — is not returned by a set filter (unconfirmed is never
treated as a match), so a filtered query can return fewer rows than the
unfiltered supply of the same query, and a filter that narrows a query to
zero rows comes back as the usual normalized row while the run itself still
succeeds.

Non-US locations are served where Indeed serves them — pass the country name
(`"Vietnam"`) rather than a city that only exists on a country subdomain.

`country` selects which country site the run reads. Jobs and URLs come from
that country's own domain on each selected board: Indeed has 10 storefronts
(`us`, `gb`, `ca`, `au`, `de`, `fr`, `nl`, `in`, `sg`, `jp`), e.g. `gb` reads
`uk.indeed.com` and `de` reads `de.indeed.com`; Glassdoor has the 20 live
storefronts listed above. With a non-US `country` and `location` left at its
default (`United States`), the search covers the whole country — the US
prefill is dropped instead of filtering for it.

### Reliability and the one external dependency

Job sites block datacenter and repeated traffic, so the actor reads its search
results through a rotating pool of third-party network exits and keeps only the
ones that answer normally. That pool is the actor's single external
dependency, and it is genuinely variable: on some boots a large share of the
exits is refused, and the actor re-boots the pool (bounded, a few seconds)
before it gives up.

What that means for you:

- a query that cannot be served comes back as **one row** with
  `ok: false` and a readable `err` — never a crashed run, never an empty
  dataset, never a charge;
- the Glassdoor route is anonymous and self-paced: at most 1 request/s per
  exit, the anonymous access is re-established after
  every 100 requests, and a challenge costs exactly one re-establish +
  retry before the run rotates to another exit. A Glassdoor query that
  still cannot be served returns the same normalized row;
- the run itself always succeeds (exit 0); only an unusable input exits 2;
- measured reliability on the release build: **20/20 queries (100%)** on the
  acceptance run, 39/40 (97.5%) across all staging runs — those are
  observations from our own runs, not a promised rate: the ok-rate is
  reported, never guaranteed and never used as a pass threshold.

### How it works

1. Build the search request and fetch the results. Pages are fetched with a
   browser-grade HTTP client; the primary Indeed route is not a page,
   however — it is the job feed the Indeed app itself uses (see Routes), and
   its search request already carries the row's depth data (full
   description, apply URL, employer dossier), so no per-job detail request
   is made anywhere. If the feed refuses, the public search page is read as
   before: Indeed embeds its entire result set in the page as
   `window.mosaic.providerData["mosaic-provider-jobcards"]` — we parse that
   JSON, never the HTML.
2. If the page is an anti-bot interstitial instead, rotate to an alternative
   route (bounded to 3 routes per query, with a bounded pool re-boot), then
   emit a normalized error row rather than failing.
3. De-duplicate by job key inside a query, apply `maxRecords`, clean empty
   fields and push the rows.

Exactly two log levels: `info` (public wording, progress + summary) and
`raw` (diagnostics, only when explicitly requested by input).

#### Routes

Indeed is read over two routes: the job feed its own mobile app uses
(primary) and the public search page (fallback). The feed returns the same
job data — title, company, location, pay, rating, description, post date —
and is cursor-paginated (a small, bounded number of requests per query), so
it is tried first, on the same network exit the page route would use. If the
feed refuses or comes back empty, the actor falls back to the search page
exactly as before. Everything after the fetch (de-duplication, `maxRecords`,
cleaning, billing) is shared, so a row looks the same whichever route served
it, except for the columns only one route can give: `sponsored` and
`isTopRatedEmployer` are search-page-only, while the depth dossier —
`description`, `applyUrl` and the six `company*` profile fields — is
feed-only, read from the feed's own search request with no per-job detail
request. `jobType` and `isRemote` are the two columns both routes populate.
The route is chosen per query, never per run: one query may come from the
feed while the next comes from the page.

##### Volume & paging

The published `maxRecords` ceiling is **200 per query**.
The primary feed pages: each request asks for `limit = min(remaining,
GQL_PAGE_LIMIT)` jobs, up to `GQL_MAX_PAGES` requests per query, de-duplicated
by job key across pages. Paging stops early — and the query still counts as
complete — when the site's own `nextCursor` is null or a page adds no new job
(the supply is exhausted). The search-page fallback is single-page by design:
it delivers what its one page holds and reports that query as complete. A
query only counts as short when no route proved the supply ran out.

Everything is configuration, never a code edit:

| Mode | How it is picked | `IJ_GQL_PAGE_LIMIT` | `IJ_GQL_MAX_PAGES` | `maxRecords` |
|---|---|---|---|---|
| **Production** (actor deploy) | defaults, no env override | 100 | 3 | up to 200 |
| **Non-production** (tests/fixtures) | set the env low + `IJ_INDEED_ROUTE=gql` with a local fixture | e.g. 25 | 2 | ≤ page limit × max pages |
| **Rollback** | `IJ_INDEED_ROUTE=serp` (or input `indeedRoute=serp`) | n/a | n/a | ≤ 45 (one search page, US; 15 elsewhere) — a larger ask is a complete answer |

A non-production target must never be pointed at production volume: the low
env values exist so a fixture run stays a handful of requests.

##### Filters

`jobType` and `remoteOnly` are not scraped-then-sliced: they ride the
primary feed as a filter Indeed applies itself — a remote-only query only
ever asks the feed for remote listings, so the narrowing happens on the
site's side (fewer rows over the wire, less bandwidth). When a query falls
back to the search page, the site-side filter cannot apply there; the actor
then keeps a fallback row only when the card's own job-type labels, or its
remote flag, genuinely satisfy the filter. A card that carries no job type
— or no remote status — is not returned by a set filter: unconfirmed is
never treated as a match. A filter that narrows a query to zero rows comes
back as the usual normalized row and the run itself still succeeds (the
never-fail contract above).

`radiusKm` and `experienceLevel` ride the same site-side mechanism: the feed
narrows by geography (radius) or by its own experience-level attributes
before the result set reaches the run. When a query falls back to the search
page neither can apply there — the page has no such parameter — so the
fallback keeps its cards unchanged and logs one debug note; that is a
degraded filter, never a failed query. `sortBy` is ordering, not filtering:
`date` sorts each query's delivered rows newest first on the published
`postedDate` (the feed's date-sort token is accepted and then ignored, so the
actor does the ordering itself). Junk or out-of-range values for all three
degrade to today's behavior with one debug note each — the run still exits 0
and every query still delivers at least one row.

The salary bounds (`minSalary`, `maxSalary`) are the filters that run
on our side: neither job feed
offers a pay filter, so the actor parses each row's own pay after the fetch.
A row matches only when it states a **yearly** figure — the top of the
`salaryType: YEARLY` range, or salary text that itself names a yearly period
— and that figure reaches the floor or sits under the cap. An hourly, daily, weekly or monthly
figure never matches: it is never multiplied into a yearly number, so the
filter can never invent pay. Amounts are compared as published (no currency
conversion), most listings publish no pay at all, and a query whose every
match falls outside the bounds still delivers its rows with one debug note
(the never-fail floor), so neither filter adds a dataset column.

#### Glassdoor route

Glassdoor is read over the JSON search endpoint its own job-search web app
calls, anonymously: a cursor walk over
the search answer, then ONE batched depth request per page (full description,
apply URL, employer dossier). The review count behind the rating rides on the
search answer itself; the batched employer request only fires for a row the
search answer left without one (a drift tripwire, not a routine request).
There is no per-job page request anywhere, and no browser.

- The JSON search endpoint refuses a cold client, so each run first makes
  ONE public page request to establish its anonymous access, then searches
  the same way — no account, no login and no credential input
  anywhere. That access is never an input, never logged and never stored.
- Rate discipline: at most one request per second per exit; the anonymous access is re-established after
  100 requests; a challenge is answered with exactly one
  re-establish + retry before the run rotates to another exit. The ceiling was
  measured, not guessed: a sustained 60-request campaign held the gate at
  the production rate (60/60, zero natural refusals) and 2.0 requests/s
  measured clean at 30/30, so production
  keeps a 2x margin under the fastest clean step.
- The Glassdoor search page is kept as an **opportunistic secondary** route:
  when its zone is open it produces the same row shape; when it refuses, the
  JSON route's answer (or its normalized error row) stands. The run never
  dies either way.
- `maxRecords` is served by cursor paging (100/page, at most 2 pages), and a
  short supply counts as complete only when the site says there is no next
  page.

#### Diagnostic inputs (not part of the published schema)

Our own verification runs use a few inputs that are deliberately absent from
the input schema: `logLevel` (`info`/`raw`), `set` (run a bundled test matrix
from `sets/`), `locationOverrides` (per-query location for a set) and
`indeedRoute` (`auto`/`gql`/`serp` — forces the feed, forces the page, or
leaves the automatic order alone; used to verify the fallback is intact).
They exist for testing only and are not documented as product features.

### Development

```bash
python3 -m unittest discover -s tests -t .   # offline suite
python3 -m pyflakes main.py ij/*.py tests/*.py
```

Local run (the Pi's harness mirrors the platform surface):

```bash
INPUT='{"queries":["welder"],"location":"Denver, CO","set":""}' \
  IJ_OUT=/tmp/rows.jsonl python3 main.py
```

### Monitoring

`tools/monitor.py` is our daily health check of the published actor.
Because of the never-fail contract above, a finished run is only healthy
when **≥ 90% of its rows are `ok: true`** and nothing came back empty —
the script measures exactly that over the recent runs (it reads them from
the Apify API and needs an Apify API token) and prints exactly one line:

```
[indeed-monitor] 24h: runs=3 finished, rows=774, ok=100.0%, empty=0, worstQuery=100.0%(n=3), alertRuns=0 | OK
```

(That 90% is **our own alert threshold** — it flags a run for inspection. The
ok-rate it watches is an observed metric, never a promised one.)

(`worstQuery` is the lowest per-query ok-rate in the window; `ok=` is the
window-wide rate, while the threshold is applied to each run separately.
A `running=N` field appears when some runs have not finished yet — those
are left out of the rates.)

- `| OK` — every finished run is at or above the threshold and none ended
  with an empty dataset.
- `| ALERT: …` — the violating runs and the threshold, e.g.
  `| ALERT: run <id> ok=82.5%<90; run <id> empty`; the script exits 1 on
  an alert. Next step: open the run in the Apify console — every failed
  query carries its own readable `err`.
- Flags: `--hours` sets the window (default 24), `--min-ok-rate` the alert
  threshold (default 90), `--actor` points the check at another actor id
  (default: the published one), `--verbose` prints the per-run detail —
  one line per run — instead of the one-line summary, and `--demo-alert`
  prints one fabricated ALERT line without a network call — a preview of
  the format (it exits 1, like a real alert).

Run it by hand:

```bash
python3 tools/monitor.py --hours 24
```

To keep a daily record, append one line to your user crontab (08:30 in
this example); the one-line verdict is then appended to
`.bench/monitor.log`:

```bash
30 8 * * * cd /path/to/indeed-jobs-scraper && python3 tools/monitor.py --hours 24 >> .bench/monitor.log 2>&1
```

### Limits

- Indeed's primary feed pages up to `maxRecords` (200 max) per query; the
  search-page fallback is one page — about 45 records in the US, 15 outside
  it — and a smaller result is a complete answer, not a failure.
- The depth columns (`description`, `applyUrl`, `jobType`, `isRemote` plus
  the six `company*` fields) are read out of the search request itself:
  rows get as much depth as Indeed's feed carries for them — no per-job
  detail requests, and an absent field stays absent.
- Salary is whatever Indeed shows on its result card — no detail-page
  parsing.
- Location strings must be ones Indeed resolves (invalid ones still produce
  a normalized error row).

# Actor input Schema

## `sources` (type: `array`):

Which job boards to search. Both run anonymously, with no account or cookies. `glassdoor` serves the selected country's own site in 20 countries (US, UK, CA, AU, DE, FR, NL, IN, SG, JP, BE, CH, NZ, ES, IT, BR, MX, AT, AR, IE); a board that cannot serve the selected country still produces one explanation row, so the run never fails.

## `queries` (type: `array`):

Job search keywords. One query produces up to `maxRecords` job records. Examples: "registered nurse", "python developer", "forklift operator". Add `-word` to exclude listings that mention it, as the site itself does: `java developer -java` returns no Java listings (measured 2026-10-25: 0 rows with the exclusion, 100 with the same dash before an unused word).

## `startUrls` (type: `array`):

Paste Indeed search or job URLs instead of (or next to) the keywords above. Each search URL's keywords become one query, and its own `l`, `radius`, `fromage` and `sort` values fill the matching inputs when you left them at their default; an explicit input always wins. A `viewjob?jk=` URL becomes that exact job. A link from another country's Indeed site than the selected `country` produces one explanation row. Tracking parameters are ignored.

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

Country site to search. Jobs and their URLs come from this country's own site on each selected board. When the country is not the United States and `location` is left at its default, the search covers the whole country.

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

Where to search. Pick a suggestion or type your own: a city and state ("Austin, TX"), a state, a country ("United States"), or "Remote". Applied to every selected board: Indeed searches this location, and Glassdoor narrows to it whenever the location resolves on that country's site (otherwise it searches the whole selected country by keyword). An unrecognized location never fails the run; the search simply runs without it.

## `expandToCities` (type: `boolean`):

Expand one region search into its top cities. The selected `location` search runs first and its own answer names the cities; each of the five most listed cities then costs one extra request (about 1.3 s) and its rows are merged with the region's, de-duplicated on the job key. The region itself is never re-run. Indeed only, and off by default.

## `datePosted` (type: `string`):

Only return jobs posted within this window.

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

Only return jobs of this type. The primary Indeed feed applies the filter on the site itself; the search-page fallback filters the same field on the card. A listing that carries no job type is not returned.

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

Only return remote jobs. Hybrid listings are excluded, and a listing whose remote status is unknown is not returned.

## `radiusKm` (type: `integer`):

Search radius around `location`, in kilometers (1-160). The actor converts it to miles in the search request; leave it empty to keep the site's own default radius (about 50 miles). Only the Indeed feed applies it - a query that falls back to the search page keeps that page's own radius.

## `experienceLevel` (type: `array`):

Only return jobs at these experience levels. Multi-select: a listing matching ANY selected level is returned. Values: `entry`, `mid`, `senior`, `management`. Indeed applies them on its search feed; a query that falls back to the search page cannot read an experience level, so it returns its unfiltered rows.

## `sortBy` (type: `string`):

How the delivered rows are ordered. `relevance` keeps Indeed's own ranking; `date` re-orders each query's rows newest first on the same date the `postedDate` column publishes (the feed itself does not honour a date sort).

## `minSalary` (type: `integer`):

Only return jobs whose published yearly pay reaches this amount. The filter runs on our side (the job feeds have no pay filter), and only a row that states a yearly figure can match: an hourly or daily-only row never does, because its pay is never converted into a yearly one. Amounts are compared as published, with no currency conversion. Most listings publish no pay at all, so a threshold returns far fewer jobs - and a query whose matches all fall below the amount still returns its rows.

## `maxSalary` (type: `integer`):

Only return jobs whose published yearly pay is at or below this amount. The filter runs on our side (the job feeds have no pay filter). Across two 500-listing samples taken on 2026-10-24, 342 (68.4 %) and 382 (76.4 %) rows stated a yearly figure; the rest publish hourly or daily pay only and can never match a yearly cap, because their pay is never converted into one. Amounts are compared as published, with no currency conversion, and a query whose matches all exceed the amount still returns its rows.

## `strictMatch` (type: `boolean`):

Opt-in: return only listings whose title contains every word of the query, instead of everything the site matches loosely. Measured on 500 live `software engineer` listings: 290 kept (58.0 %) and 210 dropped (42.0 %), so a broad query gets much narrower. A dash-excluded word (`python developer -java`) is never required of the title, and a query whose titles match nothing still returns one row.

## `uniqueCompanies` (type: `boolean`):

Opt-in: return at most one listing per employer, so a broad search is not filled by one company's postings. Rows are grouped by the site's own employer id, which merges legal-entity variants of one employer; a listing without that id falls back to the company name. Measured on 100 live listings: 51 distinct employers by id against 59 by name, so the filter removes roughly a fifth to a half of a broad page. The first row of each employer is the one kept.

## `maxRecords` (type: `integer`):

How many job records to return per query and board (1-200). The Indeed feed and the Glassdoor feed page to this ceiling; Indeed's search-page fallback delivers what its single page holds and reports the query as complete.

## `includeCompanyInsights` (type: `boolean`):

Opt-in employer insights on Glassdoor rows: up to 3 review pros and cons, the CEO approval, the recommendation share, salary reports (US site), and interview difficulty, acceptance share and count. Off by default. Each distinct employer costs 3 extra requests, paced at one request per second and capped at 25 employers per run - later employers ship without these columns, and a row whose employer answered nothing omits them too.

## `resolveApplyUrl` (type: `boolean`):

Opt-in: follow each row's own applyUrl redirect chain and publish the address it finally lands on as applyUrlResolved (usually the employer's ATS). Off by default. Each DISTINCT apply URL costs one extra request, paced at one request per second and bounded to 20 resolves per query - a row that was not resolved (no applyUrl, a dead link, a destination that refuses the request, or past the bound) simply omits the column. Runs on either board's EXTERNAL apply links, and the value equals applyUrl when nothing redirected. A link on the board's OWN domain is never requested (both boards' own apply links answer 403 and a same-site result could only echo applyUrl), so that row ships without the column at zero cost.

## `includeJobGps` (type: `boolean`):

Opt-in: add the job's own coordinates as latitude and longitude (decimal degrees, as the site publishes them) on both boards. Off by default. Both keys ship together or neither does: a listing with no location, a non-numeric value or the site's remote-work placeholder pair omits them. Costs no extra request - the coordinates ride the search answer and the Glassdoor listing detail the run already fetches.

## `includeBenefits` (type: `boolean`):

Opt-in: add the benefits the listing publishes as benefits (the site's own benefit names, deduped) on both boards. Off by default. Glassdoor additionally publishes benefitsRating (0-5, two decimals) and benefitsReviewsCount - one extra request per distinct employer, paced at one request per second and capped at 25 employers per run; the figures are the measured US country slice only, so a non-US run omits them and sends no request. A row whose employer answered nothing omits the keys. Indeed's labels cost no extra request.

## `incrementalMode` (type: `boolean`):

Opt-in: report only what changed since the previous run of the same input. Adds a changeState column - NEW for a job the previous run did not deliver, UPDATED when its title, description, salary, date or apply link changed, EXPIRED once for a job the previous run delivered and this one no longer does (an expired row carries the last known title and company and is billed like any other row). Unchanged listings are not returned at all, so the dataset is a delta instead of a full list. The state lives with the actor account, not with the input: repeat the same input for a clean delta, and a run with another input replaces it. Off by default: no state is read or written. If the state cannot be stored or read, the run still returns every row as NEW and exits normally.

## Actor input object example

```json
{
  "sources": [
    "indeed"
  ],
  "queries": [
    "registered nurse",
    "warehouse associate"
  ],
  "startUrls": [],
  "country": "us",
  "location": "United States",
  "expandToCities": false,
  "datePosted": "any",
  "remoteOnly": false,
  "sortBy": "relevance",
  "maxSalary": 0,
  "strictMatch": false,
  "uniqueCompanies": false,
  "maxRecords": 20,
  "includeCompanyInsights": false,
  "resolveApplyUrl": false,
  "includeJobGps": false,
  "includeBenefits": false,
  "incrementalMode": false
}
```

# Actor output Schema

## `jobs` (type: `string`):

One row per job: title, company, location, country, salary, salaryMin, salaryMax, salaryMedian, salaryType, salaryCurrency, companyRating, companyReviewCount, companyProfileUrl, isTopRatedEmployer, sponsored, descriptionSnippet, postedDate, url, source, jobKey, query, ok. The search result's own depth rides on the same row, absent when the site returns none: description, applyUrl, applyUrlResolved, easyApply, jobType, isRemote, companyLogo, companyWebsite, companyEmployees, companyRevenue, companyIndustry, companyCeo, companyFounded, companyDescription. With includeCompanyInsights (Glassdoor, opt-in) a row also carries the employer's review and interview statistics when the employer answered: companyPros, companyCons, companyCeoApproval, companyRecommendPct, salaryReportsP25, salaryReportsP50, salaryReportsP75, salaryReportsScope, salaryReportsCount, salaryReportsPeriod, interviewDifficulty, interviewAcceptancePct, interviewsCount. With includeJobGps (opt-in, both boards) a row also carries the job's own coordinates: latitude and longitude in decimal degrees, published as a pair or not at all (a listing with no location or the site's remote-work placeholder pair omits both). With includeBenefits (opt-in, both boards) a row also carries the benefits the listing publishes as benefit names, plus - on the Glassdoor US site - benefitsRating (0-5, two decimals) and benefitsReviewsCount when the employer answered. With incrementalMode (opt-in) a row also carries changeState: NEW, UPDATED or EXPIRED - unchanged jobs are not returned at all, and an EXPIRED row carries the last known title and company.

# 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 = {
    "sources": [
        "indeed"
    ],
    "queries": [
        "registered nurse",
        "warehouse associate"
    ],
    "location": "United States"
};

// Run the Actor and wait for it to finish
const run = await client.actor("utils/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 = {
    "sources": ["indeed"],
    "queries": [
        "registered nurse",
        "warehouse associate",
    ],
    "location": "United States",
}

# Run the Actor and wait for it to finish
run = client.actor("utils/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 '{
  "sources": [
    "indeed"
  ],
  "queries": [
    "registered nurse",
    "warehouse associate"
  ],
  "location": "United States"
}' |
apify call utils/jobs-scraper --silent --output-dataset

```

## MCP server setup

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