# Spain Jobs Scraper · 4 Boards, One Schema (`bibian/spain-jobs-scraper`) Actor

Spain jobs from 4 Spanish job boards in one run: Infoempleo, Empléate, Trabajos.com and Ticjob, one schema, salary when published, deduplicated, no login.

- **URL**: https://apify.com/bibian/spain-jobs-scraper.md
- **Developed by:** [Vivien MORVAN](https://apify.com/bibian) (community)
- **Categories:** Jobs
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.96 / 1,000 job postings

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

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

## Spain Jobs Scraper · 4 Boards, One Schema

Extract Spanish job postings from four boards in a single run — [Infoempleo](https://www.infoempleo.com), [Empléate](https://www.empleate.gob.es) (the public employment service), [Trabajos.com](https://www.trabajos.com) and [Ticjob](https://ticjob.es) (tech jobs) — mapped to one unified schema and deduplicated across sources. No login, no account, no proxy to set up.

Search once by job title and province, filter by remote policy and publication date, and get one clean dataset with the board each posting came from.

### What you can do with it

- **Search Spanish job postings across 4 boards in one run**, instead of writing and maintaining four parsers.
- **Filter once, everywhere**: `keywords`, `location`, `remote` and `publishedWithinDays` apply the same way to every board, natively when the site has the filter and on the returned postings when it does not.
- **Compare pay and locations across boards**: every record shares the same `salaryMin` / `salaryMax` / `salaryPeriod`, `city`, `region` and `employmentType` fields, whichever site it came from.
- **Monitor new postings daily**: schedule it with `onlyNew` checked and `publishedWithinDays: 1` to get, and pay for, only what is new since the last run.

### Input

| Field | What it does |
|---|---|
| `keywords` | Job title, skill or trade, for example `programador` or `enfermera`. Empty means every posting. |
| `location` | Spanish city or province, for example `Madrid` or `Barcelona`. Empty means no location filter. |
| `sources` | Which boards to query: `infoempleo`, `empleate`, `trabajos`, `ticjob`. All four by default. |
| `publishedWithinDays` | Keep only postings published in the last N days. Use `1` for a daily monitoring run. |
| `remote` | Keep only postings with this remote policy: `any` (default), `remote`, `hybrid` or `onsite`. |
| `maxItems` | The run stops once this many postings are saved, across all boards combined (default 200). |
| `includeDescriptions` | Add the job description as plain text (default on). Turn it off for a faster run when you only need the listing fields. |
| `onlyNew` | For scheduled runs: skip postings an earlier run of this same search already delivered. |

#### Ready-to-copy inputs

Software developers in Madrid, all boards (the default input of the form):

```json
{
  "keywords": "programador",
  "location": "Madrid",
  "maxItems": 100
}
```

Daily watch for new postings, charged only for what is new:

```json
{
  "keywords": "enfermera",
  "location": "Barcelona",
  "publishedWithinDays": 1,
  "onlyNew": true,
  "maxItems": 200
}
```

Public-sector and tech postings only, listing fields without the description:

```json
{
  "keywords": "analista",
  "sources": ["empleate", "ticjob"],
  "includeDescriptions": false,
  "maxItems": 300
}
```

### Output

One record per posting, in the schema shared by every job actor on this account:

| Field | Type | Meaning |
|---|---|---|
| `id` | string | Stable identifier (`<source>:<native id>`), the same from one run to the next. |
| `url` | string | Public page of the posting. |
| `title` | string | Job title as published. |
| `companyName` | string or null | Employer name; `null` when hidden (then `confidentialCompany: true`). Empléate never names the employer. |
| `companyUrl` | string or null | Company page on the source site, when it exists. |
| `locationLabel` | string or null | Location as displayed by the site. |
| `city` | string or null | City. |
| `region` | string or null | Province, as the site names it. |
| `postalCode` | string or null | Postal code, when the site publishes it. |
| `country` | string | ISO 3166-1 alpha-2 country code, `ES` for Spanish postings. |
| `remote` | string | `remote`, `hybrid`, `onsite` or `unknown`. |
| `employmentType` | string | `full_time`, `part_time`, `contract`, `freelance`, `internship`, `apprenticeship`, `temporary` or `unknown`. |
| `salaryMin` / `salaryMax` | number or null | Salary range, as numbers. |
| `salaryCurrency` | string or null | ISO 4217 currency code (`EUR`). |
| `salaryPeriod` | string or null | `hour`, `day`, `month` or `year`. |
| `datePosted` | string or null | Publication date, ISO 8601 (a date alone when the site publishes no time). |
| `validThrough` | string or null | Expiry date, ISO 8601. |
| `description` | string or null | Plain-text description, when `includeDescriptions` is on. No personal data. |
| `experienceLevel` | string or null | As named by the site. |
| `industry` | string or null | As named by the site. |
| `skills` | string\[] | Skills listed by the site, if any. |
| `source` | string | Host name of the board the posting came from (`infoempleo.com`, `empleate.gob.es`...). |
| `sourceId` | string | Native identifier on the source site. |
| `scrapedAt` | string | Extraction timestamp, ISO 8601. |

Site-specific fields are kept in addition to these, never in place of them (for example `community`, `category`, `contractType` and `reviewDate` from Empléate). Empléate's `validThrough` stays empty: the date the site publishes is its next review, not an expiry.

Three real rows from a run (descriptions shortened here):

```json
{
  "id": "infoempleo.com:3169096",
  "url": "https://www.infoempleo.com/ofertasdetrabajo/delineante-y-programador-maquinas-trumpf-hm/torrejon-de-la-calzada/3169096/",
  "title": "Delineante y Programador - Máquinas Trumpf (h/m)",
  "companyName": "ANANDA GESTION ETT",
  "locationLabel": "Torrejón de la Calzada (Madrid)",
  "city": "Torrejón de la Calzada",
  "region": "Madrid",
  "country": "ES",
  "remote": "unknown",
  "employmentType": "unknown",
  "salaryMin": 22000,
  "salaryMax": 25000,
  "salaryCurrency": "EUR",
  "salaryPeriod": "year",
  "datePosted": "2026-03-10",
  "validThrough": "2027-08-02",
  "description": "¡Hola! ¿Ya nos hemos presentado? Somos Ananda ETT, una empresa de recursos humanos en la que los humanos somos…",
  "source": "infoempleo.com",
  "sourceId": "3169096"
}
```

```json
{
  "id": "trabajos.com:1196585187",
  "url": "https://www.trabajos.com/ofertas/1196585187/analista-programador-senior/",
  "title": "Analista Programador Senior",
  "companyName": "Fundación General de la Universidad Politécnica de Madrid",
  "locationLabel": "Madrid",
  "city": "Madrid",
  "region": "Madrid",
  "country": "ES",
  "remote": "remote",
  "employmentType": "full_time",
  "salaryMin": 38600,
  "salaryMax": 43600,
  "salaryCurrency": "EUR",
  "salaryPeriod": "year",
  "datePosted": "2026-10-29",
  "description": "Analista Programador Senior / Responsable Técnico de Aplicaciones de Investigación del Vicerrectorado para Un…",
  "source": "trabajos.com",
  "sourceId": "1196585187"
}
```

```json
{
  "id": "ticjob.es:70802",
  "url": "https://ticjob.es/esp/trabajo/desarrollador-full-stack-java-angular-presencial/70802",
  "title": "Desarrollador/a Full Stack (Java y/o Angular) (Presencial)",
  "companyName": "Grupo Digital",
  "locationLabel": "Madrid",
  "city": "Madrid",
  "region": "Madrid",
  "country": "ES",
  "remote": "onsite",
  "employmentType": "full_time",
  "datePosted": "2026-11-11",
  "validThrough": "2027-01-10",
  "description": "Buscamos desarrolladores/as con experiencia sólida en desarrollo de software para incorporarse a un proyecto t…",
  "source": "ticjob.es",
  "sourceId": "70802"
}
```

### Why this one

Four Spanish job boards in one run: a large commercial board with salary ranges, the public employment service, a generalist board and a tech one. One schema for all of them, with `source` on every row to filter or split by board. The same posting listed on several boards is returned once, deduplicated by URL and by (title, company, city). No connection, no login and no proxy to configure: boards that block data-centre traffic are reached automatically, and a board that is down ends the run as a partial result instead of failing it.

### Questions about the Spanish sources

**How is `location` applied?** Infoempleo filters by province on the site itself. Trabajos.com filters by province or by keyword, never both, so the other filter is applied on each posting card. Empléate is queried by province when your place is one. Ticjob publishes category pages (a role, a technology, a province or a combination): the most specific one is read, and a keyword it has no category for is matched on the titles of the whole-Spain list.

**Why can a run return fewer than `maxItems`?** `maxItems` is a ceiling, split between the boards. Ticjob lists only around ninety postings in all, and a narrow search (a small province, `publishedWithinDays: 1`, a specific `remote` policy) simply matches fewer postings.

**How reliable is `remote`?** It is read from each board's own data, the title or the "modalidad" line, and left `unknown` rather than guessed. Infoempleo and Empléate carry no on-site or remote signal, so `remote: "onsite"` returns Trabajos.com and Ticjob postings only.

**Are the salaries real?** When the employer states a salary range, it is returned with its period and currency. Trabajos.com prints ranges without a unit: an amount between 6,000 and 1,000,000 EUR is read as a yearly gross salary, anything else is left out. Empléate and Ticjob publish no salary at all.

**Why is `companyName` empty on Empléate?** The public employment service never names the employer: those postings carry `companyName: null` and `confidentialCompany: true`.

**Do descriptions contain contact details?** No: lines carrying an e-mail address or a phone number are removed from the descriptions, and only companies and public employers are named.

### En español

**Spain Jobs Scraper: cuatro portales de empleo españoles en una sola ejecución.** Ofertas de Infoempleo, Empléate (el servicio público de empleo), Trabajos.com y Ticjob, con un único esquema y sin duplicados entre portales. Sin cuenta, sin inicio de sesión y sin proxy que configurar.

- **Búsqueda** por puesto (`keywords`, por ejemplo «programador») y por provincia (`location`, por ejemplo «Madrid»), con filtros de teletrabajo (`remote`) y de fecha de publicación (`publishedWithinDays`).
- **Campos unificados** en cada fila: título, empresa, ciudad, provincia, salario con su periodo, tipo de contrato, fecha de publicación y `source` (el portal de origen).
- **Seguimiento diario:** activa `onlyNew` y pon `publishedWithinDays` a `1`. Cada ejecución devuelve, y cobra, solo las ofertas nuevas desde la anterior.
- **Privacidad:** las líneas con teléfonos o correos electrónicos se eliminan de las descripciones; solo se nombran empresas y organismos públicos.

# Actor input Schema

## `keywords` (type: `string`):

Job title, skill or trade, for example "programador" or "enfermera". Leave empty to get every posting.

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

Spanish city or province, for example "Madrid" or "Barcelona". Leave empty for no location filter. Applied by every source, either by the site itself or on the postings it returns.

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

Job boards to query in this run. All four by default; the same posting found on several boards is returned once.

## `publishedWithinDays` (type: `integer`):

Keep only postings published in the last N days. Use 1 for a daily monitoring run. Leave empty for no limit.

## `remote` (type: `string`):

Keep only postings with this remote policy.

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

The run stops once this many postings are saved, across all sources combined.

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

Add the job description as plain text (e-mail addresses and phone numbers removed). Turn it off for a faster run when you only need the listing fields.

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

For scheduled runs. Skip the results that an earlier run of this same search already delivered, so each run returns, and charges, only what is new. The memory is kept in a key-value store of your account named "only-new-memory-bibian-" followed by the ID of this Actor.

## Actor input object example

```json
{
  "keywords": "programador",
  "location": "Madrid",
  "sources": [
    "infoempleo",
    "empleate",
    "trabajos",
    "ticjob"
  ],
  "remote": "any",
  "maxItems": 100,
  "includeDescriptions": true,
  "onlyNew": false
}
```

# Actor output Schema

## `postings` (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 = {
    "keywords": "programador",
    "location": "Madrid",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("bibian/spain-jobs-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 = {
    "keywords": "programador",
    "location": "Madrid",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("bibian/spain-jobs-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 '{
  "keywords": "programador",
  "location": "Madrid",
  "maxItems": 100
}' |
apify call bibian/spain-jobs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bibian/spain-jobs-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/pkRL2Qjbb12CMnyBX/builds/48DQhYWcAOpwXcM9I/openapi.json
