# Morocco Rekrute Jobs Monitor (`mohamedbr/my-actor-11`) Actor

Watches Rekrute.com and reports only NEW Morocco job offers: company, role, city, contract type and skills — never the same offer twice. For job boards, recruiters and hiring-market watchers. Part of Mohamed Bourim's 12 MENA monitors on Apify.

- **URL**: https://apify.com/mohamedbr/my-actor-11.md
- **Developed by:** [Mohamed Bourim](https://apify.com/mohamedbr) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 job offers

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

## Morocco Rekrute Jobs Monitor

**Every fresh job offer from Rekrute.com — Morocco's professional job board — as clean structured data.** Companies post their professional openings on Rekrute (1,800+ live offers), and this Actor collects them all: title, company, city, publication window, sector, function, experience, education level and contract type from every card, then enriches each record from its own detail page with the company sector, workplace, the full poste and profile descriptions and the key skills.

Every record is keyed by the portal's own offer ID, and each detail page is verified against the list identity before merging — a mismatched page is never merged. Where a card and its detail page disagree (it happens on Rekrute), the detail page's values win.

### What you get

One record per published offer (newest first):

| Field | Description |
|---|---|
| `offerId` | The portal's own numeric offer ID — the record identity, e.g. `188592` |
| `title` | Job title as published, e.g. `Key Account Manager` |
| `company` | Employer as published, e.g. `Smollan Morocco` |
| `city` | City as published, e.g. `Casablanca` |
| `publishedFrom` / `publishedTo` | Publication window, ISO format |
| `positionsCount` | Number of open positions when the offer states it |
| `sector` | Job sector as published, e.g. `Agroalimentaire - Distribution` |
| `function` | Job function, e.g. `Commercial / Vente / Export` |
| `experience` | Required experience as published, e.g. `Intermédiaire (3 à 5 ans)` |
| `educationLevel` | Required education as published, e.g. `Bac +5 et plus minimum` |
| `contractType` | As published, e.g. `CDI`, `CDD` |
| `remoteWork` | `true` / `false` when the offer states it, else `null` |
| `companySector` | The employer's own sector, from the detail page |
| `workplace` | Workplace line as published, e.g. `1 poste(s) sur Casablanca et région - Maroc` |
| `descriptionPoste` | The full "POSTE" description from the detail page |
| `descriptionProfile` | The full "PROFIL RECHERCHÉ" description from the detail page |
| `skills` | Key skills ("Compétences clés") as published |
| `officialUrl` | The official detail page the record was read from |

### Monitor mode

Set **onlyNew** and the Actor returns only offers that are new since your last run with the same filters — the baseline is kept per filter set in a persistent store, a failed run never marks offers as seen, and every successful run refreshes the baseline (even a plain sweep). Schedule it daily and you have a live feed of Moroccan professional hiring in your sector or city.

### Inputs

| Input | Description |
|---|---|
| `keyword` | Only offers whose job title contains this text |
| `sector` | Only offers whose sector contains this text (e.g. `Distribution`, `Informatique`) |
| `city` | Only offers whose city or workplace contains this text (e.g. `Casablanca`, `Rabat`, `Tanger`) |
| `maxResults` | Maximum offers to return (newest first, default 50; the console pre-fills 10 so a first test run finishes fast — raise it for a full sweep) |
| `onlyNew` | Monitor mode: only offers new since your last run |
| `includeDetails` | Enrich from detail pages (default on; turn off for a fast list-only sweep) |

### Pricing

Pay per event: **$0.05 per run start + $0.02 per job offer record** ($20 / 1,000 records). Platform usage is included.

# Actor input Schema

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

Only offers whose city or workplace contains this text (e.g. Casablanca, Rabat, Tanger). Empty = all.

## `includeDetails` (type: `boolean`):

Fetch each offer's detail page for company sector, workplace, full poste/profile descriptions and key skills (identity verified against the list record before merging; detail values win over card values).

## `keyword` (type: `string`):

Only offers whose job title contains this text (e.g. Key Account Manager). Empty = all.

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

Maximum number of offers to return (newest first, 1-5000). Prefilled with 10 so a first run finishes fast; the default for API runs is 50.

## `onlyNew` (type: `boolean`):

Return only offers not seen in previous runs with the same filters.

## `sector` (type: `string`):

Only offers whose sector contains this text (e.g. Distribution, Informatique). Empty = all.

## Actor input object example

```json
{
  "city": "",
  "includeDetails": true,
  "keyword": "",
  "maxResults": 10,
  "onlyNew": false,
  "sector": ""
}
```

# Actor output Schema

## `offers` (type: `string`):

Structured job offer records (title, company, city, sector, function, experience, education, contract, descriptions).

# 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 = {
    "city": "",
    "includeDetails": true,
    "keyword": "",
    "maxResults": 10,
    "onlyNew": false,
    "sector": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("mohamedbr/my-actor-11").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 = {
    "city": "",
    "includeDetails": True,
    "keyword": "",
    "maxResults": 10,
    "onlyNew": False,
    "sector": "",
}

# Run the Actor and wait for it to finish
run = client.actor("mohamedbr/my-actor-11").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 '{
  "city": "",
  "includeDetails": true,
  "keyword": "",
  "maxResults": 10,
  "onlyNew": false,
  "sector": ""
}' |
apify call mohamedbr/my-actor-11 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mohamedbr/my-actor-11"
        }
    }
}
```

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/ITQ2nWIR039L29Tpp/builds/cnbFFRTktosS5xJ2u/openapi.json
