# CV-Library UK Jobs Search Scraper (`muhammadafzal/cv-library-uk-jobs-scraper`) Actor

Search CV-Library UK jobs by keyword, title, location, salary, category, type, and date; export structured listings for recruitment and lead research.

- **URL**: https://apify.com/muhammadafzal/cv-library-uk-jobs-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 cv-library job returneds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## CV-Library UK Jobs Scraper

Search and export structured UK job listings from CV-Library. The Actor picks the access path automatically — you only supply the search filters.

### How access is selected

The Actor tries data sources in order of reliability and falls back automatically:

1. **Official Job Search API** — used when the `CV_LIBRARY_API_KEY` secret is configured on the Actor. This is the most reliable path and is not affected by Cloudflare.
2. **Public website (browser)** — used when the API is unavailable or produced no results. It loads CV-Library's real search pages in a full Chromium browser with a realistic, consistent UK fingerprint, and rotates through proxies in this order:
   - `CV_LIBRARY_PROXY_URL` (your own proxy, if set) — `http://USERNAME:PASSWORD@HOST:PORT` (also `https://`, `socks4://`, `socks5://`)
   - Apify residential proxy, GB
   - Apify datacenter proxy (automatic pool)
   - no proxy

CV-Library sits behind Cloudflare bot management. **Residential/ISP UK proxies are required for the browser path to load results** — datacenter IPs are blocklisted and return an HTTP 403 "Blocked" page. The Actor retries blocked pages with fresh proxy sessions, waits out Cloudflare challenges, and stops with a clear diagnostic instead of fabricating records.

CV-Library states that Job Search API access is not provided as standard and requires a key from its Partner team. Request access through the [CV-Library Job Search API documentation](https://www.cv-library.co.uk/developers/job-search-api), then set the key as the `CV_LIBRARY_API_KEY` Actor secret. The key is never written to the dataset or `SUMMARY`.

### Example input

```json
{
  "query": "software engineer",
  "location": "Manchester",
  "distanceMiles": 25,
  "categories": ["it"],
  "postedWithinDays": 7,
  "sort": "date",
  "maxResults": 100,
  "includeFullDescription": true
}
```

### Output

Each dataset item represents one job and includes its CV-Library ID, title, canonical URL, description, location, distance, salary, salary details, job types, posted/expiry dates, agency information, and source metadata. The `SUMMARY` key contains the access mode used, counts, warnings, total matches when provided, and a redacted search URL.

### Pricing

This Actor uses pay-per-event pricing. The primary event is **$0.003 per unique CV-Library job returned**, and the recommended Actor-start event is **$0.00005 per run**. A result event is charged only after the normalized job is written to the dataset; no-match and validation runs do not incur result charges.

| Usage | Result-event cost |
| ---: | ---: |
| 1 job | $0.003 |
| 100 jobs | $0.30 |
| 1,000 jobs | $3.00 |

### Important limitations

- The browser path cannot bypass CV-Library security controls, CAPTCHA, or access restrictions; residential proxies reduce but do not eliminate blocking.
- API results can vary based on CV-Library's current index and access rules.
- Use the service in accordance with CV-Library's API terms and applicable law. This Actor is read-only and does not apply to jobs.

### Local development

```bash
npm install
npm run validate-schema
npm test
```

# Actor input Schema

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

Keywords matched against job titles and descriptions, for example 'software engineer'.

## `title` (type: `string`):

Optional case-insensitive filter matched against job titles only, for example 'nurse'.

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

Optional UK location such as London, Manchester, or Fleet.

## `distanceMiles` (type: `integer`):

Search radius around the location. CV-Library accepts these values: 1, 2, 5, 7, 10, 15, 20, 25, 35, 50, 75, 100, 250, 500, 750.

## `categories` (type: `array`):

Optional CV-Library category slugs, for example it, engineering, healthcare, sales, or work\_from\_home.

## `jobTypes` (type: `array`):

Optional job types, one per line: Any, Permanent, Part time, or Temporary. Leave empty to include all types.

## `postedWithinDays` (type: `integer`):

Optional freshness filter: 0 means today, then 1, 3, 7, 14, or 28 days.

## `salaryType` (type: `string`):

Optional salary period used with minimumSalary and maximumSalary.

## `minimumSalary` (type: `number`):

Optional minimum salary filter for the selected salary period.

## `maximumSalary` (type: `number`):

Optional maximum salary filter for the selected salary period.

## `sort` (type: `string`):

Result ordering returned by CV-Library.

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

Maximum unique jobs to export. The Actor paginates as needed across the search results.

## `includeFullDescription` (type: `boolean`):

Request the original full-length description where available. This can increase response size.

## Actor input object example

```json
{
  "query": "software engineer",
  "distanceMiles": 15,
  "sort": "date",
  "maxResults": 100,
  "includeFullDescription": true
}
```

# Actor output Schema

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

Normalized CV-Library job records returned by the browser or the official Job Search API.

## `datasetCsv` (type: `string`):

Normalized job records as CSV.

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

Counts, warnings, and the redacted search URL.

## `consoleRun` (type: `string`):

Live run status, logs, and dataset preview.

# 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("muhammadafzal/cv-library-uk-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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/cv-library-uk-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/vQ73d5jaaWf3lq6Oj/builds/sbgpb5EVMDkHFKJF8/openapi.json
