# Use Boolean Search Strings to Scrape LinkedIn Jobs

**Use case:** 

Search LinkedIn jobs with one Boolean string instead of one keyword at a time. This example combines two titles with OR, requires a skill with AND and leaves out a word with NOT: ("Data Engineer" OR "Analytics Engineer") AND Python NOT Intern.

## Input

```json
{
  "location": "India",
  "include_job_details": true,
  "include_full_company_details": false,
  "posted_within": "Any Time",
  "easy_apply": false,
  "early_applicant_only": false,
  "include_contact_details": false,
  "jobs_entries": 1000,
  "boolean_search_strings": [
    "(\"Senior Business Analyst\" OR \"Business Systems Analyst\" OR \"ERP Business Analyst\" OR \"IT Business Analyst\" OR \"Enterprise Business Analyst\" OR \"HRIS Business Analyst\" OR \"HR Systems Analyst\" OR \"HR Technology Business Analyst\" OR \"Business Process Analyst\" OR \"Enterprise Systems Analyst\" OR \"Finance Business Analyst\" OR \"Technical Business Analyst\" OR \"Workflow Business Analyst\" OR \"Digital Transformation Business Analyst\")"
  ]
}
```

## Output

```json
{
  "company_logo_url": {
    "label": "Company Logo",
    "format": "string"
  },
  "job_title": {
    "label": "Job Title",
    "format": "string"
  },
  "location": {
    "label": "Job Location",
    "format": "string"
  },
  "company_name": {
    "label": "Company Name",
    "format": "string"
  },
  "search_keyword": {
    "label": "Search Keyword",
    "format": "string"
  },
  "job_url": {
    "label": "Job URL",
    "format": "string"
  },
  "company_url": {
    "label": "Company URL",
    "format": "string"
  },
  "company_id": {
    "label": "Company ID",
    "format": "string"
  },
  "time_posted": {
    "label": "Time Posted",
    "format": "string"
  },
  "posted_date": {
    "label": "Posted Date",
    "format": "string"
  },
  "is_early_applicant": {
    "label": "Early Applicant",
    "format": "boolean"
  },
  "num_applicants": {
    "label": "Applicants",
    "format": "string"
  },
  "job_description": {
    "label": "Job Description",
    "format": "string"
  },
  "job_id": {
    "label": "Job ID",
    "format": "string"
  },
  "easy_apply": {
    "label": "Easy Apply",
    "format": "boolean"
  },
  "seniority_level": {
    "label": "Seniority Level",
    "format": "string"
  },
  "industries": {
    "label": "Industries",
    "format": "string"
  },
  "employment_type": {
    "label": "Employment Type",
    "format": "string"
  },
  "is_actively_hiring": {
    "label": "Actively Hiring",
    "format": "boolean"
  },
  "hiring_badge": {
    "label": "Hiring Badge",
    "format": "string"
  },
  "salary_range": {
    "label": "Salary Range",
    "format": "string"
  },
  "job_description_raw_html": {
    "label": "Job Description Raw HTML",
    "format": "string"
  },
  "contact_email": {
    "label": "Contact Email",
    "format": "string"
  },
  "job_poster_name": {
    "label": "Job Poster Name",
    "format": "string"
  },
  "job_poster_headline": {
    "label": "Job Poster Headline",
    "format": "string"
  },
  "job_poster_profile_url": {
    "label": "Job Poster Profile",
    "format": "string"
  },
  "job_poster_photo_url": {
    "label": "Job Poster Photo",
    "format": "string"
  },
  "company_page_type": {
    "label": "Company Page Type",
    "format": "text"
  },
  "company_details_status": {
    "label": "Company Details Status",
    "format": "text"
  },
  "company_followers": {
    "label": "Company Followers",
    "format": "integer"
  },
  "company_industry": {
    "label": "Company Industry",
    "format": "string"
  },
  "company_tagline": {
    "label": "Company Tagline",
    "format": "string"
  },
  "company_website": {
    "label": "Company Website",
    "format": "string"
  },
  "company_size": {
    "label": "Company Size",
    "format": "string"
  },
  "company_employees_on_linkedin": {
    "label": "Company Employees on LinkedIn",
    "format": "integer"
  },
  "company_organization_type": {
    "label": "Company Organization Type",
    "format": "string"
  },
  "company_founded_year": {
    "label": "Company Founded",
    "format": "integer"
  },
  "company_headquarters": {
    "label": "Company Headquarters",
    "format": "string"
  },
  "company_headquarters_country_code": {
    "label": "Company HQ Country",
    "format": "string"
  },
  "company_specialties": {
    "label": "Company Specialties",
    "format": "array"
  },
  "company_has_premium_page": {
    "label": "Company Premium Page",
    "format": "boolean"
  },
  "company_open_jobs_count": {
    "label": "Company Open Jobs",
    "format": "integer"
  },
  "company_description": {
    "label": "Company Description",
    "format": "string"
  },
  "company_cover_image_url": {
    "label": "Company Cover Image",
    "format": "string"
  },
  "company_locations": {
    "label": "Company Locations",
    "format": "array"
  },
  "company_similar_pages": {
    "label": "Company Similar Pages",
    "format": "array"
  },
  "company_affiliated_pages": {
    "label": "Company Affiliated Pages",
    "format": "array"
  },
  "company_recent_posts": {
    "label": "Company Recent Posts",
    "format": "array"
  },
  "company_products": {
    "label": "Company Products",
    "format": "array"
  },
  "company_employees_sample": {
    "label": "Company Employees Sample",
    "format": "array"
  },
  "company_size_min": {
    "label": "Company Size Min",
    "format": "integer"
  },
  "company_size_max": {
    "label": "Company Size Max",
    "format": "integer"
  },
  "company_headquarters_street": {
    "label": "Company HQ Street",
    "format": "string"
  },
  "company_headquarters_city": {
    "label": "Company HQ City",
    "format": "string"
  },
  "company_headquarters_region": {
    "label": "Company HQ Region",
    "format": "string"
  },
  "company_headquarters_postal_code": {
    "label": "Company HQ Postal Code",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Linkedin Jobs Scraper Actor is ready to run with the inputs already set for "Use Boolean Search Strings to Scrape LinkedIn Jobs". [Sign up or log in](https://console.apify.com/create-task-from-example/ihgre9ZHChIA2cAXj) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Use Boolean Search Strings to Scrape LinkedIn Jobs" task

The Linkedin Jobs Scraper Actor will start running based on the input automatically. You can also change all the input fields, like location, include full job details (+ $0.25/1k jobs), and more, to match your specific use case.

### 3. Receive the "Use Boolean Search Strings to Scrape LinkedIn Jobs" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as company logo, job title, job location, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Use Boolean Search Strings to Scrape LinkedIn Jobs" task via API](https://apify.com/worldunboxer/rapid-linkedin-scraper.md).

## FAQ

### How do I write a Boolean search string?

Use AND, OR and NOT in capital letters, quotes around phrases and parentheses to group terms, for example ("Data Engineer" OR "Analytics Engineer") AND Python NOT Intern. A - in front of a word also means NOT.

### Why does a job not match my AND or NOT?

LinkedIn applies AND and NOT loosely, so a few jobs may not match. The search_keyword field shows which title or OR side found each job. Add or tighten terms to narrow results.

### Can I change the search and add other filters?

Yes. Edit the Boolean Search Strings and Location before you run, and add Cities, Company Names or a posting time. Pasted Search URLs ignore the form's search fields, including Boolean strings.

### Is Linkedin login credentials are required to run this task?

The Scrape Linkedin Jobs using Boolean Search Strings task does not require a login to gather public job listings.

## About this Actor

This example demonstrates how to use [Linkedin Jobs Scraper](https://apify.com/worldunboxer/rapid-linkedin-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/worldunboxer/rapid-linkedin-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/worldunboxer/rapid-linkedin-scraper.md

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`).
