# BrighterMonday Kenya Jobs Search Scraper (`jobsapi/brightermonday-kenya-jobs-search-scraper`) Actor

Collect detail-verified public Kenyan job listings and source-published role facts, with explicit access-boundary handling.

- **URL**: https://apify.com/jobsapi/brightermonday-kenya-jobs-search-scraper.md
- **Developed by:** [Jobs API](https://apify.com/jobsapi) (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.99 / 1,000 brightermonday kenya 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.

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

## BrighterMonday Kenya Jobs Search Scraper

Collects public BrighterMonday Kenya job cards and verifies each emitted record against its public listing detail page. Requests use the ordinary public HTTPS routes, one at a time, with one attempt per URL and redirects left manual. No account, cookie, proxy, alternate identity, or fingerprint controls are used.

### Inputs

- `startUrls`: one to three public `https://www.brightermonday.co.ke/jobs...` search pages (default `/jobs`).
- `maxItems`: maximum number of complete unique jobs (1–10; default 3).
- `maxPages`: maximum listing pages followed through visible site pagination (1–5; default 1).
- `timeoutMs`: single-request timeout (5–60 seconds; default 30 seconds).
- `delayMillis`: spacing between sequential detail requests (0–2 seconds; default 500 ms).

The Actor has no fixture, debug, proxy, cookie, identity, retry, or custom-header inputs. It buffers results until detail identity and quality checks pass. A job is emitted only when the detail page matches the listing and provides a readable description plus more than 20 meaningful source facts. Facts absent from a source page are omitted.

### Access handling

HTTP 401, 403, 429, or 451 and visible source-authored access-denial or security-challenge content stop the run immediately. The Actor discards buffered jobs and records platform `status: SUCCEEDED` with `resultStatus: SKIPPED` in `OUTPUT`, `OUTPUT_SUMMARY`, and `RUN_SUMMARY`, alongside diagnostics and request receipts. It does not retry, follow redirects, change request identity, or switch routes. A redirect, transport error, parser miss, or other unverified access/extraction outcome keeps `accessStatus: DEFERRED`, never a confirmed-block claim; zero-row deferred outcomes are `SUCCEEDED` / `DEFERRED`. Fatal code, input, artifact, or dataset failures before any row are `FAILED` / `FAILED`. `NO_DATA` requires every requested search seed to return HTTP 200 with an explicit source-reported zero count, no parsed jobs, no next page, and a matching request receipt. Stored rows preserved after a later error are `SUCCEEDED` / `LIMITED`. Diagnostics are KVS-only and never dataset rows.

### Local validation

Run `npm test`, `npm run check`, and the four `apify validate-schema` checks. To validate a live local dataset, first inspect the Apify CLI storage behavior and choose a new actor-relative `APIFY_LOCAL_STORAGE_DIR` that does not exist; run with `--resurrect` and never `--purge`. Then run `npm run validate -- <that-storage-directory>`.

The source-visible Chrome comparison used the public `Social Media Manager` detail for NovaFleet: its employer, Nairobi location, full-time label, KSh 15,000–30,000 plus commission, qualification, experience, applicant location, job sections, and application gate were present on the page. This is source comparison evidence; a successful local dataset is separately reported by the run validator.

# Actor input Schema

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

Optional BrighterMonday Kenya /jobs or category search pages. Only pages on www.brightermonday.co.ke are accepted.

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

Maximum number of unique detail-verified jobs to emit.

## `maxPages` (type: `integer`):

Maximum public listing pages to inspect, following only the site's visible pagination links.

## `timeoutMs` (type: `integer`):

Maximum time for one ordinary direct page request. No retry is performed.

## `delayMillis` (type: `integer`):

Bounded spacing between sequential public detail requests.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.brightermonday.co.ke/jobs"
    }
  ],
  "maxItems": 3,
  "maxPages": 1,
  "timeoutMs": 30000,
  "delayMillis": 500
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `status` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jobsapi/brightermonday-kenya-jobs-search-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jobsapi/brightermonday-kenya-jobs-search-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 '{}' |
apify call jobsapi/brightermonday-kenya-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/brightermonday-kenya-jobs-search-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/XXmhkMSoJgTbYsn3v/builds/eGq1CbWyjMh7DsRpI/openapi.json
