# MyJobMag Scraper (`crawlerbros/myjobmag-scraper`) Actor

Scrape live job listings from MyJobMag.com, a leading Nigerian job board. Search by keyword, or browse by field, industry, state, region, employment type, education level, or recency - plus fetch full job details from listing URLs.

- **URL**: https://apify.com/crawlerbros/myjobmag-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Jobs, Automation, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## MyJobMag Scraper

Scrape live job listings from [MyJobMag.com](https://www.myjobmag.com), a leading Nigerian job board. Search by keyword, or browse by field/job function, industry, state, geopolitical region, employment type, education level, or recency — plus fetch full job details from listing URLs. No login, no cookies, no paid proxy required.

### What this actor does

- **Thirteen modes:** `search` (keyword) plus ten dedicated browse axes (`byField`, `byIndustry`, `byLocation`, `byRegion`, `byType`, `byDate`, `byEducation`, `byCity`, `byCompany`, `byTitle`), `byFeatured` (MyJobMag's curated Featured Jobs selection), and `byUrls` (direct listing fetch)
- **Keyword filter:** `containsKeyword` works across every mode as an additional substring filter
- **Rich detail enrichment:** optionally follows each listing to pull the full job description, requirements, employment type, industry, education level, and company location
- **Mode-implied fallback:** when browsing a dedicated axis (e.g. all remote jobs), the filter value fills the corresponding output field even on postings that don't declare it themselves
- **Empty fields are omitted** — every record only contains data actually present on the listing

### Output per job

- `title`, `companyName`, `companyUrl`, `companyLogoUrl`
- `location`, `addressLocality`, `addressRegion`, `addressCountry`
- `category` — job field/function (e.g. "Finance / Accounting / Audit")
- `industry`, `educationLevel`, `employmentType`
- `descriptionHtml`, `descriptionText`
- `datePosted`, `validThrough` — ISO 8601 timestamps
- `datePostedText` — e.g. "06 August" (only when the absolute date wasn't fetched)
- `sourceUrl` — canonical listing URL
- `recordType: "job"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search` / `byField` / `byIndustry` / `byLocation` / `byRegion` / `byType` / `byDate` / `byEducation` / `byCity` / `byCompany` / `byTitle` / `byFeatured` / `byUrls` |
| `searchQuery` | string | `accountant` | Free-text keyword (mode=search) |
| `field` | select | – | Job field/function (mode=byField) — 51 options |
| `industry` | select | – | Industry (mode=byIndustry) — 38 options |
| `location` | select | – | Nigerian state (mode=byLocation) — 38 options |
| `region` | select | – | Geopolitical region (mode=byRegion) — 6 zones |
| `city` | select | – | Nigerian city, more granular than state (mode=byCity) — 100 options |
| `employmentType` | select | – | Employment type (mode=byType) — full-time/part-time/contract/hybrid/onsite/remote/expatriate |
| `datePeriod` | select | – | Recency window (mode=byDate) — today/yesterday/this-week/last-week/this-month/last-month |
| `educationLevel` | select | – | Education level (mode=byEducation) — 10 options |
| `companySlug` | string | – | Employer/company slug or name (mode=byCompany), e.g. `pz-cussons` or `PZ Cussons` (auto-slugified) |
| `jobTitle` | string | `accountant` | Job title slug or free-text title (mode=byTitle), e.g. `accountant`, `web-developer` (auto-slugified). Matches title only, distinct from `searchQuery`'s full-text search |
| `containsKeyword` | string | – | Substring filter on title/company/description (works with every mode) |
| `listingUrls` | array | – | Direct listing URLs (mode=byUrls) |
| `includeFullDetails` | bool | `true` | Fetch each listing's detail page for full description, employment type, industry, and location |
| `maxItems` | int | `30` | Hard cap (1–1000) |

#### Example: keyword search

```json
{
  "mode": "search",
  "searchQuery": "accountant",
  "maxItems": 30
}
```

#### Example: all remote IT jobs

```json
{
  "mode": "byField",
  "field": "information-technology",
  "employmentType": "remote",
  "maxItems": 30
}
```

#### Example: jobs in a specific city

```json
{
  "mode": "byCity",
  "city": "lekki",
  "maxItems": 30
}
```

#### Example: featured jobs (curated)

```json
{
  "mode": "byFeatured",
  "maxItems": 30
}
```

#### Example: fetch specific listings

```json
{
  "mode": "byUrls",
  "listingUrls": ["https://www.myjobmag.com/job/account-executive-the-concept-group-1"]
}
```

### Use cases

- **Job seekers** — build custom alerts across Nigerian states, industries, and remote-work filters.
- **Recruiters & staffing agencies** — monitor competitor postings by field or region.
- **Labor-market researchers** — track hiring trends across Nigeria's six geopolitical zones.
- **HR tech products** — power a job-aggregation feature with fresh, structured listing data.

### FAQs

**Does this require a MyJobMag account or API key?**
No. The actor scrapes publicly available listing pages — no login, cookies, or API key needed.

**How current is the data?**
Every run fetches live pages directly from myjobmag.com; there is no caching layer.

**Why does `employmentType` sometimes match my `byType` filter even when the job page doesn't show it?**
When browsing via `byType` (or any other dedicated axis), the actor fills in the corresponding field from the filter itself if the individual job posting's own structured data omits it — so you never lose that context.

**Why are some fields missing on some jobs?**
MyJobMag listings vary in how much structured data each employer provides. Only fields actually present are included (no placeholder/sentinel values).

**Why does browsing `byLocation`/`byCity`/`byRegion` occasionally return a job whose own displayed location doesn't match the requested area?**
This is an upstream data-quality quirk on MyJobMag's own site — a small share of listings (confirmed live, e.g. an Ebonyi-based school-principal role appearing on the `/jobs-location/lagos` browse page) are cross-listed under a state page that doesn't match the location the posting itself displays. The actor always reports the job's own genuine on-page location (`addressLocality`/`addressRegion`) rather than silently overwriting it with the requested filter value, so this is visible in the data instead of hidden.

# Actor input Schema

## `mode` (type: `string`):

What to fetch / which browse axis to use.

## `searchQuery` (type: `string`):

Free-text keyword — job title, skill, or company name.

## `field` (type: `string`):

Filter to a job field / function (mode=byField).

## `industry` (type: `string`):

Filter to an industry (mode=byIndustry).

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

Filter to a Nigerian state (mode=byLocation).

## `region` (type: `string`):

Filter to a geopolitical region (mode=byRegion).

## `employmentType` (type: `string`):

Filter to an employment type (mode=byType).

## `datePeriod` (type: `string`):

Filter to a recency window (mode=byDate).

## `educationLevel` (type: `string`):

Filter to an education level (mode=byEducation).

## `city` (type: `string`):

Filter to a Nigerian city (more granular than State) (mode=byCity).

## `companySlug` (type: `string`):

Employer/company slug or name to browse all of its live job listings (mode=byCompany), e.g. `rainoil-oil-and-gas-company` or `PZ Cussons` (auto-slugified). Find slugs on https://www.myjobmag.com/companies or from any job's `jobs-at/<slug>` link.

## `jobTitle` (type: `string`):

Job title slug or free-text title to browse MyJobMag's title-matched listings (mode=byTitle), e.g. `accountant`, `web-developer`, `Front Desk Officer` (auto-slugified). Distinct from `searchQuery`: this matches against the job title only, not the broader full-text search index.

## `containsKeyword` (type: `string`):

Case-insensitive substring filter applied to title, company name, and description. Works with every mode.

## `listingUrls` (type: `array`):

Direct MyJobMag job URLs, e.g. https://www.myjobmag.com/job/account-executive-the-concept-group-1

## `includeFullDetails` (type: `boolean`):

Fetch each listing's detail page for full description, requirements, employment type, industry, and company location. Slower but richer. mode=byUrls always fetches the detail page.

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

Hard cap on emitted records.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "accountant",
  "field": "",
  "industry": "",
  "location": "",
  "region": "",
  "employmentType": "",
  "datePeriod": "",
  "educationLevel": "",
  "city": "",
  "companySlug": "pz-cussons",
  "jobTitle": "accountant",
  "listingUrls": [],
  "includeFullDetails": true,
  "maxItems": 30
}
```

# Actor output Schema

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

Dataset containing all scraped MyJobMag job listings.

# 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 = {
    "mode": "search",
    "searchQuery": "accountant",
    "companySlug": "pz-cussons",
    "jobTitle": "accountant",
    "listingUrls": [],
    "includeFullDetails": true,
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/myjobmag-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 = {
    "mode": "search",
    "searchQuery": "accountant",
    "companySlug": "pz-cussons",
    "jobTitle": "accountant",
    "listingUrls": [],
    "includeFullDetails": True,
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/myjobmag-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 '{
  "mode": "search",
  "searchQuery": "accountant",
  "companySlug": "pz-cussons",
  "jobTitle": "accountant",
  "listingUrls": [],
  "includeFullDetails": true,
  "maxItems": 30
}' |
apify call crawlerbros/myjobmag-scraper --silent --output-dataset

```

## MCP server setup

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