# InfoJobs Scraper - Spain Job Offers, Companies & Contracts (`pink_comic/infojobs-scraper`) Actor

Scrape InfoJobs.net (Spain) job offers by keyword and province: title, company, city, contract type, workday, remote/hybrid, publish date, description.

- **URL**: https://apify.com/pink_comic/infojobs-scraper.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Jobs, Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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

## InfoJobs Scraper - Spain Job Offers, Companies & Contracts

Scrape **InfoJobs.net**, Spain's largest job board, without logging in. Search by **keyword** and **province** (Madrid, Barcelona, Valencia, Sevilla...), newest first or by relevance, or paste any InfoJobs search URL with your own filters. Each offer has title, URL, **company name and page**, city, **contract type**, **workday**, **remote/hybrid/on-site**, publish date, description, promoted and executive flags.

### What you get

- **Keyword x province** searches in one run, or your own filtered InfoJobs URLs.
- **Contract and workday** fields for HR analytics (indefinido, temporal, jornada completa/parcial).
- **Remote policy**: Presencial, Híbrido or Solo teletrabajo.
- **Company data**: name, InfoJobs company page and logo, ready for lead lists.
- **Fast and cheap**: plain HTTP, no browser; deduplicated across searches.
- **Fair pricing**: $0.001 per offer + $0.002 per run (1,000 offers = about $1). No monthly rental, no subscription.

### Use cases

- **Recruiting agencies**: watch new offers in your niche and province every morning.
- **B2B lead generation**: companies hiring in Spain right now, by role and city.
- **Labour-market research**: demand by province, contract type and remote share.
- **Job aggregators**: feed Spanish offers into your board or newsletter.
- **Competitor hiring intelligence**: track which roles competitors open.

### Input examples

Default:

```json
{"keywords": ["python"], "maxResults": 100}
```

Two keywords in two provinces, newest first:

```json
{"keywords": ["enfermera", "camarero"], "provinces": ["Barcelona", "Valencia"], "sortBy": "newest", "maxItemsPerSearch": 25, "maxResults": 100}
```

Your own filtered URL:

```json
{"startUrls": ["https://www.infojobs.net/jobsearch/search-results/list.xhtml?keyword=java&teleworkingIds=2"], "maxResults": 200}
```

### Sample output

```json
{
  "offerId": "3256ed78c84d9b8d4358360b2df8d6",
  "title": "Enfermero/a del Trabajo",
  "url": "https://www.infojobs.net/barcelona/enfermero-del-trabajo/of-i3256ed78c84d9b8d4358360b2df8d6",
  "companyName": "InfoJobs Performance",
  "companyUrl": "https://ip.ofertas-trabajo.infojobs.net",
  "companyLogo": "https://multimedia2-logos.infojobs.net/image/upload/6e/6edcf4c0-19ae-4f50-9650-848d85617414",
  "city": "Barcelona",
  "contractType": "Contrato indefinido",
  "workday": "Jornada completa",
  "teleworking": "Presencial",
  "publishedAt": "2026-11-20T08:17:31Z",
  "description": "Desde InfoJobs Performance, un servicio de InfoJobs, estamos seleccionando un/a Enfermero/a del Trabajo para Orion Prevención, empresa especializada en el servicio de vigilancia de…",
  "isExecutive": false,
  "isPromoted": true,
  "flags": [
    "REUSED"
  ],
  "searchSource": "enfermera / Barcelona",
  "scrapedAt": "2026-11-21T18:12:11Z"
}
```

### How to use

1. Click **Try for free**, keep the prefilled input or type your own searches.
2. Click **Start**. Results stream into the dataset; the **Overview** tab shows the key fields.
3. Download as JSON, CSV, Excel or HTML, or pull results with the Apify API, schedules, webhooks, Make, Zapier or n8n.

### FAQ

**Do I need an InfoJobs account?**\
No. The actor reads public search pages like a logged-out visitor.

**How do I filter by province?**\
Type the province name as InfoJobs shows it (Madrid, Barcelona, Valencia, Sevilla, Málaga, Bizkaia...). Accents and capitals do not matter. Unknown names are reported in FAILED_SOURCES.

**Is salary included?**\
InfoJobs shows salary only on some offer pages, not in search results, so this actor does not return it.

**How much does it cost?**\
$0.001 per offer + $0.002 per run. 1,000 offers cost about $1.00.

**Can I run it on a schedule?**\
Yes. Create a task with your input and add a schedule (hourly, daily...). Combine with webhooks or integrations to push new rows to Google Sheets, Slack or your database.

**What if a search fails?**\
Failed searches are listed in the run's key-value store under `FAILED_SOURCES`; the rest of the run continues. You only pay for rows actually delivered.

**Is it legal?**\
The actor collects publicly available data without logging in. You are responsible for using it in line with the site's terms and data-protection laws (GDPR, CCPA) in your jurisdiction.

# Actor input Schema

## `keywords` (type: `array`):

Job searches, e.g. 'python', 'enfermera', 'camarero', 'administrativo'. One search per entry.

## `provinces` (type: `array`):

Optional Spanish provinces, e.g. 'Madrid', 'Barcelona', 'Valencia', 'Sevilla', 'Málaga'. Combined with every keyword.

## `sortBy` (type: `string`):

Result order.

## `startUrls` (type: `array`):

Optional InfoJobs search result URLs with your own filters, e.g. https://www.infojobs.net/jobsearch/search-results/list.xhtml?keyword=java\&teleworkingIds=2.

## `maxPagesPerSearch` (type: `integer`):

About 20 offers per page.

## `maxItemsPerSearch` (type: `integer`):

Cap per keyword/province. 0 = share Max results.

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

Maximum offers in total. Default 100 = about $0.10.

## Actor input object example

```json
{
  "keywords": [
    "python"
  ],
  "sortBy": "relevance",
  "maxPagesPerSearch": 50,
  "maxItemsPerSearch": 0,
  "maxResults": 100
}
```

# Actor output Schema

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

All records from this run in the default dataset, shown with the Overview table view.

# 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": [
        "python"
    ],
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/infojobs-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": ["python"],
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/infojobs-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": [
    "python"
  ],
  "maxResults": 100
}' |
apify call pink_comic/infojobs-scraper --silent --output-dataset

```

## MCP server setup

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