# GotFriends Jobs Scraper (`jobsapi/gotfriends-jobs-search-scraper`) Actor

Extract complete public GotFriends.co.il JobPosting records with bounded search, single, and multiple modes. The Actor fails closed on access-control challenges and does not use private APIs or bypasses.

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

## Pricing

from $2.99 / 1,000 gotfriends 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

## GotFriends public jobs scraper

Inventory rank: **85**. This Actor extracts complete public job records from GotFriends.co.il.

Inventory listing: https://apify.com/jobsapi/gotfriends-jobs-search-scraper

### Modes

- search: fetch a public listing URL, discover public job URLs, and enrich each detail page.
- single: enrich one exact public job URL.
- multiple: enrich several exact public job URLs.

The output is emitted only when the public detail page contains a verified JobPosting record with a job ID, title, company, description, and public GotFriends source URL. Optional fields such as dates, salary, locations, employment type, skills, benefits, contact information, and a source-backed application URL are included whenever the website publishes them.

### Local run

Install dependencies and use the checked-in inputs:

```
npm ci --no-audit --no-fund
npm test
npm run lint
apify validate-schema .actor/input_schema.json
apify run --purge --input-file INPUT.json
apify run --purge --input-file INPUT-single.json
apify run --purge --input-file INPUT-multiple.json
```

The Actor can run locally or on Apify Cloud. It does not use a proxy, CAPTCHA solver, login, private API, fingerprint spoofing, or access-control bypass. It sends an ordinary browser-compatible user agent and bounded public requests only. Raw JobPosting JSON-LD is omitted unless `includeRawData` is enabled.

When GotFriends returns a challenge, throttle, denial, or incomplete page, the run stores a diagnostic in RUN_DIAGNOSTICS, leaves the dataset free of fabricated rows, and records the run summary in OUTPUT and OUTPUT_SUMMARY. At the time of this local QA, the public target returned an HTTP 403 Cloudflare challenge.

### Run status

The Apify platform `status` is only `SUCCEEDED` or `FAILED`; `resultStatus` separately describes the extracted dataset as `COMPLETE`, `LIMITED`, `SKIPPED`, `DEFERRED`, `NO_DATA`, or `FAILED`. The row count reflects only successful dataset writes. If a later non-block failure happens after real rows were stored, the run stays `SUCCEEDED` with `resultStatus: LIMITED`. A fatal zero-row failure uses the Actor failure lifecycle and reports `FAILED` / `FAILED`.

An HTTP 401, 403, 429, or 451 or a visible source-authored access challenge is terminal: no retry or follow-up request is made, any staged job rows are discarded, and the outcome is `SUCCEEDED` / `SKIPPED`. Diagnostics and request receipts stay in key-value storage, never in the jobs Dataset. Generic transport/tool failures without source-authored denial are `DEFERRED`, not treated as proof of a block. Empty results are not labeled `NO_DATA` unless the source explicitly confirms that the search is empty.

# Actor input Schema

## `mode` (type: `string`):

Search a public listing, enrich one exact job URL, or enrich several exact job URLs.

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

Public GotFriends listing or home-page URLs used in search mode.

## `jobUrls` (type: `array`):

Public GotFriends detail URLs for single or multiple mode.

## `jobUrl` (type: `string`):

Convenience alias for one exact public detail URL.

## `searchQuery` (type: `string`):

Optional term recorded with the run; the public listing URL remains the source of search results.

## `query` (type: `string`):

Alias for searchQuery.

## `page` (type: `integer`):

First public result page.

## `maxPages` (type: `integer`):

Bounded number of public result pages in search mode.

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

Maximum complete public jobs to emit.

## `includeDetails` (type: `boolean`):

Fetch each public detail page and require a complete rich record.

## `includeRawData` (type: `boolean`):

Include the original structured payload; disabled by default to reduce dataset size.

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

Per-request timeout in seconds.

## `maxRetries` (type: `integer`):

Bounded retries for transient failures only; access denials, throttles, and visible challenges are never retried.

## `concurrency` (type: `integer`):

Bounded parallel detail requests.

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

Minimum spacing between public requests in milliseconds.

## `maxRequests` (type: `integer`):

Hard upper bound for listing and detail requests.

## `userAgent` (type: `string`):

Ordinary browser-compatible user agent. Do not use it to impersonate a person or bypass access controls.

## Actor input object example

```json
{
  "mode": "search",
  "page": 1,
  "maxPages": 1,
  "maxItems": 5,
  "includeDetails": true,
  "includeRawData": false,
  "timeoutSecs": 20,
  "maxRetries": 1,
  "concurrency": 3,
  "requestDelayMs": 150,
  "maxRequests": 50,
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
}
```

# Actor output Schema

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

Default dataset containing verified job records.

## `summary` (type: `string`):

Default key-value store OUTPUT summary.

# 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/gotfriends-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/gotfriends-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/gotfriends-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

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