# JobToday Jobs Scraper (`jobsapi/jobtoday-jobs-search-scraper`) Actor

Extract public JOBToday job listings from the public search feed.

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

## Pricing

from $2.99 / 1,000 jobtoday job records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What this Actor does

Searches [JOBToday](https://jobtoday.com/) using the public web-search feed, then reads each selected public job detail page sequentially. It normalizes the listing facts and preserves source-authored description sections and detail-page facts when available. The default search is Barcelona.

The Actor uses ordinary direct HTTPS requests to the public `api.jobtoday.com/v1/universal/web/search` feed and canonical JOBToday detail URLs. It does not log in, use cookies or proxies, retry, follow redirects, or change identity. HTTP 401/403/429/451 and visible access-denial, CAPTCHA, verification, or security-challenge pages stop the run immediately; staged jobs are discarded and the result is `SKIPPED`. A dataset row is emitted only after a matching canonical detail page returns HTTP 200, contains job-specific detail facts, and the completed record has at least 21 meaningful source facts (URL/ID-only fields and run metadata do not count). Generic transport errors are `DEFERRED`, not treated as proof of a source block.

### Input

- `searchUrl`: one HTTPS JOBToday search URL; default `https://jobtoday.com/es/search?location=Barcelona`.
- `searchUrls`: optional list of up to 20 public search URLs, processed sequentially. If supplied, it takes precedence over `searchUrl`.
- `maxItems`: maximum jobs to emit across all searches, from 1 to 100; default 5.

#### Developer options

- `timeoutSecs`: per-request timeout in seconds, from 5 to 120; default 30.
- `maxResponseBytes`: maximum response size per request, from 100,000 to 50,000,000 bytes; default 10,000,000.
- `requestDelayMs`: delay between ordinary search/detail requests, from 250 to 5,000 ms; default 500.

Only HTTPS `jobtoday.com` and `www.jobtoday.com` search paths are accepted. Fixture data, debug controls, custom headers, retries, proxy settings, and arbitrary URLs are not public inputs.

### Output

Every dataset row is a normal `recordType: "job"` record. Core fields include the source job ID/title/URL, employer, location hierarchy, description, employment type, salary bounds/currency/period, categories, timestamps, public links, and source-section label. Where the public source exposes them, detail enrichment adds structured requirements, responsibilities, benefits and schedule details; experience, human-readable salary/employment labels, posting age and view count; employer type/size/profile text/photos; and the public work address or structured JobPosting values. Optional fields are omitted when absent. The schema does not require each page to publish every detail.

The Actor stores `OUTPUT` and `OUTPUT_SUMMARY` run summaries, `RUN_DIAGNOSTICS`, and `REQUEST_RECEIPTS` in the default key-value store. Platform `status` (`SUCCEEDED`/`FAILED`) is separate from `resultStatus` (`COMPLETE`, `LIMITED`, `SKIPPED`, `DEFERRED`, `NO_DATA`, or `FAILED`). A later non-block failure preserves already-stored rows as `SUCCEEDED`/`LIMITED`; a fatal zero-row failure is `FAILED`/`FAILED`. Diagnostics and receipts never enter the dataset.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Local run and validation

```powershell
npm ci
apify validate-schema
npm test
$jobTodayStore = 'storage-jobtoday-unique-run-id'
if (Test-Path -LiteralPath $jobTodayStore) { throw 'Choose a new, unused actor-relative storage path.' }
$env:APIFY_LOCAL_STORAGE_DIR = $jobTodayStore
apify run --resurrect --input-file ./test/inputs/default.json
npm run validate -- $jobTodayStore
```

Use a new actor-relative storage directory for every independent run. Do not use `--purge` or reuse a dataset directory. Local storage is separate from Apify Cloud; this repository’s qualification evidence is local-only unless a Cloud run is explicitly performed.

### Troubleshooting and legal notice

An empty result is reported as `DEFERRED`, not a successful dataset. Check that the search URL is a valid JOBToday search page and that its location currently has public listings. If a run is `SKIPPED`, inspect `RUN_DIAGNOSTICS` and `REQUEST_RECEIPTS`; do not retry through another identity, route, proxy, or browser.

This Actor is not affiliated with or endorsed by JOBToday. Use only public information and ensure your use complies with JOBToday’s terms, applicable privacy rules, and local law. The Actor does not collect applicant accounts or private candidate data.

# Actor input Schema

## `searchUrl` (type: `string`):

Public JOBToday search URL. A location query parameter is used for the public search feed.

## `searchUrls` (type: `array`):

Optional public search URLs processed sequentially and deduplicated.

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

Maximum public job listings to emit.

## `timeoutSecs` (type: `integer`):

Timeout for the public JOBToday API request.

## `maxResponseBytes` (type: `integer`):

Safety cap for one public API response.

## `requestDelayMs` (type: `integer`):

Pause between sequential public search and detail-page requests.

## Actor input object example

```json
{
  "searchUrl": "https://jobtoday.com/es/search?location=Barcelona",
  "searchUrls": [],
  "maxItems": 5,
  "timeoutSecs": 30,
  "maxResponseBytes": 10000000,
  "requestDelayMs": 500
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

## `runDiagnostics` (type: `string`):

No description

## `requestReceipts` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jobsapi/jobtoday-jobs-search-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jobsapi/jobtoday-jobs-search-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 '{}' |
apify call jobsapi/jobtoday-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/jobtoday-jobs-search-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/iLxezxkOIyfCWMd8c/builds/6L11Dhnqr25mNJD6H/openapi.json
