# Job Intelligence — French Job Listings (WTTJ & Indeed) (`apikiy/job-intelligence`) Actor

Search French job listings from Welcome to the Jungle (Algolia API) and Indeed.fr (Playwright). Indeed requires a proxy for production use.

- **URL**: https://apify.com/apikiy/job-intelligence.md
- **Developed by:** [Julien ApiKiy](https://apify.com/apikiy) (community)
- **Categories:** Jobs
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

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

## Job Intelligence - French Job Sites Scraper

Apify Actor that scrapes job listings from French job sites without requiring
proxy infrastructure. Targets sites with lighter anti-bot protections.

### Supported Sources

| Source | URL | Notes |
|--------|-----|-------|
| **Welcome to the Jungle** | welcometothejungle.com | France's leading job board for startups & tech |
| **Talent.io** | talent.io | Tech-focused job platform, algorithm-matched |
| **Indeed France** | fr.indeed.com | General job aggregator |
| **Teamtailor** | (various) | White-label ATS used by many French companies |

### Input Schema

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `queries` | string\[] | `["Développeur"]` | Job titles/keywords to search |
| `locations` | string\[] | `["Paris"]` | Locations to filter by |
| `sources` | string\[] | `["wttj", "talentio"]` | Which sites to scrape |
| `teamtailorUrls` | string\[] | `[]` | Specific Teamtailor career page URLs |
| `maxPagesPerQuery` | integer | `2` | Max search result pages per query/location |
| `maxConcurrency` | integer | `2` | Parallel pages to crawl |
| `useProxy` | boolean | `false` | Enable Apify proxy (not needed for these sites) |

### Output Fields

Each job listing includes:

- `title` – Job title
- `company` – Company name
- `location` – Job location
- `url` – Direct link to the job posting
- `source` – Which site it came from (`wttj`, `talentio`, `indeed`, `teamtailor`)
- `salary` – Salary info (when available)
- `contractType` – CDI, CDD, Freelance, Stage, etc.
- `remoteStatus` – Remote work information
- `postedDate` – When the job was posted (when available)
- `description` – Truncated description snippet (max 300 chars)
- `query` – The search query that found this job
- `location` – The location filter used
- `scrapedAt` – ISO timestamp of when the job was scraped

### Anti-Detection Features

- **Random user-agent rotation**: 12 modern browser user-agents
- **Random delays**: 3–8 second delays between page loads
- **Accept-Language header**: Set to `fr-FR` for French content
- **Session pool**: Configurable session lifecycle with error score decay
- **Browser flags**: Automation detection disabled, sandbox disabled

### 💰 Pricing

Pay-per-use, no monthly fees:

| | Price |
|---|---|
| **Actor start** | $0.01 |
| **Per result** | $0.001 |

> 💡 Example: A run returning 500 results costs **$0.51** total ($0.01 start + 500 × $0.001).

### Local Development

```bash
## Install dependencies
npm install

## Run tests
npm test

## Run the actor locally (requires APIFY_TOKEN for full functionality)
npm start
```

### Docker Build

```bash
docker build -t job-intelligence .
docker run -e APIFY_TOKEN=your_token job-intelligence
```

### Architecture

```
src/
  main.js      – Actor entry point, crawler setup, request routing
  scraping.js  – Per-source page extraction handlers
  utils.js     – URL builders, user-agent rotation, text formatters
test/
  test.js      – Unit tests for utilities
```

### Key Technical Decisions

1. **Playwright (not Cheerio)**: Needed for JS-rendered content on WTTJ and Talent.io
2. **Crawlee 3.17**: Only uses valid `PlaywrightCrawler` options
3. **No proxy by default**: These French sites work without proxy; proxy is optional
4. **300-char description truncation**: Keeps dataset manageable while preserving key info

# Actor input Schema

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

Array of job titles or keywords to search for (e.g. \['Développeur Python', 'Chef de projet'])

## `locations` (type: `array`):

Array of city names to filter by (e.g. \['Paris', 'Lyon', 'Toulouse'])

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

Job sites to scrape. 'wttj' uses Algolia API (no proxy needed). 'indeed' uses Playwright (proxy required for production).

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

Maximum number of job listings to return per source (max 1000 per query-location combo for WTTJ, max 50 per page for Indeed)

## `contractTypes` (type: `array`):

Optional: filter by contract type (e.g. \['full\_time', 'freelance']). Only applies to WTTJ source.

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

Only return fully remote jobs. Only applies to WTTJ source.

## `includeDescriptions` (type: `boolean`):

Include job description text (HTML stripped). Disable for faster/smaller results.

## `useProxy` (type: `boolean`):

Enable proxy for Indeed scraping. Indeed blocks datacenter IPs — a residential proxy is required for production use. If disabled and 'indeed' is selected, it will be skipped with a warning.

## `proxyUrl` (type: `string`):

Proxy URL for Indeed requests (e.g. 'http://user:pass@proxy.example.com:8080' or 'socks5://proxy:1080'). Required if useProxy is true.

## Actor input object example

```json
{
  "queries": [
    "Développeur",
    "Data Scientist"
  ],
  "locations": [
    "Paris"
  ],
  "sources": [
    "wttj",
    "indeed"
  ],
  "maxResults": 50,
  "contractTypes": [],
  "remoteOnly": false,
  "includeDescriptions": true,
  "useProxy": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "Développeur",
        "Data Scientist"
    ],
    "locations": [
        "Paris"
    ],
    "sources": [
        "wttj",
        "indeed"
    ],
    "maxResults": 50,
    "contractTypes": [],
    "remoteOnly": false,
    "includeDescriptions": true,
    "useProxy": false,
    "proxyUrl": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("apikiy/job-intelligence").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 = {
    "queries": [
        "Développeur",
        "Data Scientist",
    ],
    "locations": ["Paris"],
    "sources": [
        "wttj",
        "indeed",
    ],
    "maxResults": 50,
    "contractTypes": [],
    "remoteOnly": False,
    "includeDescriptions": True,
    "useProxy": False,
    "proxyUrl": "",
}

# Run the Actor and wait for it to finish
run = client.actor("apikiy/job-intelligence").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 '{
  "queries": [
    "Développeur",
    "Data Scientist"
  ],
  "locations": [
    "Paris"
  ],
  "sources": [
    "wttj",
    "indeed"
  ],
  "maxResults": 50,
  "contractTypes": [],
  "remoteOnly": false,
  "includeDescriptions": true,
  "useProxy": false,
  "proxyUrl": ""
}' |
apify call apikiy/job-intelligence --silent --output-dataset

```

## MCP server setup

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

```

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/NWcFXPdeEAuipcGbL/builds/zpWRu41SaD2GUDWUL/openapi.json
