# Emploi-territorial Data Scraper

Extract job information (job, position, publication, etc.) from Emploi-territorial using keywords as input.

- Template page: [https://www.octoparse.com/template/emploi-territorial-data-scraper](https://www.octoparse.com/template/emploi-territorial-data-scraper)
- Categories: Jobs
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from general web pages.

## Output

The current workflow extracts 12 fields, including `Commune`, `Grade_1`, `Grade_2`, `Localisation`, `Mots_clés`, `Nombre_résultat`, `Numéro`, `Poste`, `Publication`, `Type_d_emploi`, `URL_de_la_page_détaillé`, `Validité`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Keyword;Location (up to 10000) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Keyword;Location (up to 10000)

Required. Keywords (jusqu'à 10000) Constraints: minItems=1; maxItems=10000.

## How to Use

# Emploi-territorial Data Scraper

Collects job information (e.g., job title, position, publication date) from [Emploi Territorial](https://www.emploi-territorial.fr/) using keyword and location inputs.

## Input

- **Keyword;Location (up to 10000)** (required) – Enter one or more values, one per line.

## Output Fields

- `Mots_clés`
- `Localisation`
- `Nombre_résultat`
- `Type_d_emploi`
- `Numéro`
- `Poste`
- `Commune`
- `Grade_1`
- `Grade_2`
- `Publication`
- `Validité`
- `URL_de_la_page_détaillé`

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Complete the input fields.
3. Choose a local or cloud run.
4. Review the output rows and export or process the structured data.

## Limitations

- Collects data only from search results pages; does not add data not displayed by Emploi Territorial.
- Fields such as `Publication`, `Validité`, and `URL_de_la_page_détaillé` may be empty if the source record does not provide them.

## Tips

- Start with one or a few inputs and review returned rows before scaling.
- Use the most specific valid `Keyword;Location` to reduce unrelated or duplicate records.
- Use a stable identifier (e.g., `Numéro` or `URL_de_la_page_détaillé`) as a deduplication key when available.

## Pricing

This template currently has no per-line charge. Octoparse plan or resource limits may still apply.

## Scheduling and Export

You can schedule runs locally or in the cloud and export data to CSV, Excel, JSON, databases, or cloud storage. Access via Octoparse OpenAPI or [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates). Scheduling and API access may require a paid Octoparse plan. Keep your computer and Octoparse open for local scheduled runs.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Leboncoin Emploi Infos Scraper](https://www.octoparse.com/template/leboncoin-emploi-infos-scraper)
- [Leboncoin Data Scraper](https://www.octoparse.com/template/leboncoin-data-scraper)
- [North Data Scraper](https://www.octoparse.com/template/north-data-scraper)
- [Kompass Data Scraper](https://www.octoparse.com/template/kompass-scraper)
- [Vinted Data Scraper (by keywords)](https://www.octoparse.com/template/vinted-data-scraper)

## Input Schema

```json
{
  "title": "Emploi-territorial Data Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keyword;Location": {
      "title": "Keyword;Location (up to 10000)",
      "description": "Keywords (jusqu'à 10000)",
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "keyword;Location"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "keyword;Location": [
    "ingénieur;Meuse",
    "agent de sécurité;Paris"
  ]
}
```

Example 2

```json
{
  "keyword;Location": [
    "ingénieur;Meuse",
    "agent de sécurité;Paris"
  ]
}
```

Example 3

```json
{
  "keyword;Location": [
    "ingénieur;Meuse",
    "agent de sécurité;Paris"
  ]
}
```

Example 4

```json
{
  "keyword;Location": [
    "ingénieur;Meuse",
    "agent de sécurité;Paris"
  ]
}
```

Example 5

```json
{
  "keyword;Location": [
    "ingénieur;Meuse",
    "agent de sécurité;Paris"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Commune": {
      "type": "string",
      "description": ""
    },
    "Grade_1": {
      "type": "string",
      "description": ""
    },
    "Grade_2": {
      "type": "string",
      "description": ""
    },
    "Localisation": {
      "type": "string",
      "description": ""
    },
    "Mots_clés": {
      "type": "string",
      "description": ""
    },
    "Nombre_résultat": {
      "type": "string",
      "description": ""
    },
    "Numéro": {
      "type": "string",
      "description": ""
    },
    "Poste": {
      "type": "string",
      "description": ""
    },
    "Publication": {
      "type": "string",
      "description": ""
    },
    "Type_d_emploi": {
      "type": "string",
      "description": ""
    },
    "URL_de_la_page_détaillé": {
      "type": "string",
      "description": ""
    },
    "Validité": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Emploi-territorial Data Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Commune": "\n            \n            SAINT-MIHIEL\n        ",
  "Grade_1": "Technique",
  "Grade_2": "Ingénieur    ",
  "Localisation": "Meuse (55)",
  "Mots_clés": "ingénieur",
  "Nombre_résultat": "3 résultats",
  "Numéro": "\n    O055261005000990\n",
  "Poste": "Directeur des services techniques  (h/f)",
  "Publication": "05/10/2026",
  "Type_d_emploi": "Emploi permanent",
  "URL_de_la_page_détaillé": "https://www.emploi-territorial.fr/offre/o055261005000990-directeur-services-techniques",
  "Validité": "21/11/2026"
}
```

Example 2

```json
{
  "Commune": "\n            \n            Paris Musées\n        ",
  "Grade_1": "Culturelle",
  "Grade_2": "Adjoint du patrimoine    ",
  "Localisation": "Paris (75)",
  "Mots_clés": "agent de sécurité",
  "Nombre_résultat": "76 résultats",
  "Numéro": "\n    O075261106000351\n",
  "Poste": "Agent chef.fe au service sécurité et bâtiment du Musée Cernuschi",
  "Publication": "06/11/2026",
  "Type_d_emploi": "Emploi permanent",
  "URL_de_la_page_détaillé": "https://www.emploi-territorial.fr/offre/o075261106000351-agent-chef-fe-service-securite-batiment-musee-cernuschi",
  "Validité": "06/12/2026"
}
```

Example 3

```json
{
  "Commune": "\n            \n            SAINT-MIHIEL\n        ",
  "Grade_1": "Technique",
  "Grade_2": "Ingénieur    ",
  "Localisation": "Meuse (55)",
  "Mots_clés": "ingénieur",
  "Nombre_résultat": "1 résultat",
  "Numéro": "\n    O055261005000990\n",
  "Poste": "Directeur des services techniques  (h/f)",
  "Publication": "05/10/2026",
  "Type_d_emploi": "Emploi permanent",
  "URL_de_la_page_détaillé": "https://www.emploi-territorial.fr/offre/o055261005000990-directeur-services-techniques",
  "Validité": "21/11/2026"
}
```

Example 4

```json
{
  "Commune": "\n            \n            DEPARTEMENT DE LA MEUSE\n        ",
  "Grade_1": "Administrative",
  "Grade_2": "Attaché    ",
  "Localisation": "Meuse (55)",
  "Mots_clés": "ingénieur",
  "Nombre_résultat": "2 résultats",
  "Numéro": "\n    O055260813001002\n",
  "Poste": "Chargé d'opérations en aménagement foncier - spécialité agricole et forestière (H/F)",
  "Publication": "13/08/2026",
  "Type_d_emploi": "Emploi permanent",
  "URL_de_la_page_détaillé": "https://www.emploi-territorial.fr/offre/o055260813001002-charge-operations-amenagement-foncier-specialite-agricole-forestiere",
  "Validité": "13/10/2026"
}
```

Example 5

```json
{
  "Commune": "\n            \n            BAR LE DUC\n        ",
  "Grade_1": "Technique",
  "Grade_2": "Technicien",
  "Localisation": "Meuse (55)",
  "Mots_clés": "ingénieur",
  "Nombre_résultat": "2 résultats",
  "Numéro": "\n    O055240418001441\n",
  "Poste": "Responsable de la cellule étude et travaux de voirie",
  "Publication": "28/08/2026",
  "Type_d_emploi": "Emploi permanent",
  "URL_de_la_page_détaillé": "https://www.emploi-territorial.fr/offre/o055240418001441-responsable-cellule-etude-gestion-patrimoine",
  "Validité": "30/09/2026"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "emploi-territorial-data-scraper",
  "taskName": "Emploi-territorial Data Scraper",
  "parameters": "{\"keyword;Location\":[\"ingénieur;Meuse\",\"agent de sécurité;Paris\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"keyword;Location\":[\"ingénieur;Meuse\",\"agent de sécurité;Paris\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "emploi-territorial-data-scraper",
        "taskName": "Emploi-territorial Data Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "emploi-territorial-data-scraper",
  "taskName": "Emploi-territorial Data Scraper",
  "parameters": "{\"keyword;Location\":[\"ingénieur;Meuse\",\"agent de sécurité;Paris\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `emploi-territorial-data-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/emploi-territorial-data-scraper.json)
- [Manifest](https://www.octoparse.com/templates/emploi-territorial-data-scraper-manifest.json)
