npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jobspy-js

v1.3.0

Published

Job scraper for LinkedIn, Indeed, Glassdoor, Google, ZipRecruiter, Bayt, Naukri & BDJobs

Readme

jobspy-js

TypeScript port of JobSpy — scrape job postings from LinkedIn, Indeed, Glassdoor, Google Jobs, Google Careers, ZipRecruiter, Bayt, Naukri & BDJobs.

Uses wreq-js for browser TLS fingerprint emulation (Chrome/Firefox/Safari).

Features

  • 9 job boards — LinkedIn, Indeed, Glassdoor, Google Jobs, Google Careers, ZipRecruiter, Bayt, Naukri, BDJobs
  • 3 interfaces — SDK, CLI, MCP server
  • Browser emulation — wreq-js with full TLS fingerprinting (JA3/JA4)
  • Proxy rotation — built-in rotating proxy support
  • Concurrent scraping — all sites scraped in parallel
  • Salary extraction — parses compensation from descriptions when not provided directly
  • 60+ countries — Indeed/Glassdoor regional domain support

Supported Sites

| Site | Key | Notes | |------|-----|-------| | LinkedIn | linkedin | HTML scraping | | Indeed | indeed | GraphQL API | | Glassdoor | glassdoor | GraphQL API | | Google Jobs | google | Playwright (headless Chrome); requires clean residential IP or proxy | | Google Careers | google_careers | Plain HTTP; scrapes jobs at Google the company | | ZipRecruiter | zip_recruiter | Web scraping | | Bayt | bayt | HTML scraping | | Naukri | naukri | REST API | | BDJobs | bdjobs | REST API |

Installation

npm install jobspy-js

Google Jobs (google) uses Playwright to execute JavaScript. After installing, run:

npx playwright install chromium

SDK Usage

Full SDK reference: See SDK.md for complete documentation — all parameters, types, enums, output fields, proxy configuration, country support, and advanced examples.

import { scrapeJobs } from "jobspy-js";

const result = await scrapeJobs({
  site_name: ["indeed", "linkedin"],
  search_term: "software engineer",
  location: "San Francisco, CA",
  results_wanted: 20,
});

console.log(`Found ${result.jobs.length} jobs`);
for (const job of result.jobs) {
  console.log(`${job.title} at ${job.company} — ${job.job_url}`);
}

Parameters

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | site_name | string[] | all sites | Job boards to scrape | | search_term | string | — | Job title / search query | | location | string | — | Job location (e.g. "San Francisco, CA") | | distance | number | 50 | Search radius in miles | | is_remote | boolean | false | Filter for remote jobs | | job_type | string | — | fulltime, parttime, contract, internship | | results_wanted | number | 15 | Results per site | | country_indeed | string | "usa" | Country for Indeed/Glassdoor | | hours_old | number | — | Filter jobs posted within N hours | | description_format | string | "markdown" | markdown, html, or plain | | proxies | string \| string[] | — | Proxy servers (user:pass@host:port) | | linkedin_fetch_description | boolean | false | Fetch full LinkedIn descriptions (slower) | | enforce_annual_salary | boolean | false | Convert all salaries to annual |

CLI

# Search for React jobs on LinkedIn
npx jobspy -s linkedin -q "react developer" -l "New York, NY" -n 20

# Multiple sites, remote only, output to file
npx jobspy -s linkedin indeed -q "typescript" -r -o results.json

# CSV output
npx jobspy -s indeed -q "python" -o jobs.csv

# Google Careers (jobs at Google)
npx jobspy -s google_careers -q "software engineer" -l "USA" -n 10

Run npx jobspy --help for all options.

MCP Server

Add to your MCP client config:

{
  "mcpServers": {
    "jobspy": {
      "command": "npx",
      "args": ["-y", "jobspy-js", "--mcp"]
    }
  }
}

The MCP server exposes a scrape_jobs tool with all the same parameters as the SDK.

Development

git clone https://github.com/borgius/jobspy-js.git
cd jobspy-js
npm install

# Build
npm run build

# Type check
npm run typecheck

# Run CLI from source
npm run cli -- -s linkedin -q "react" -n 5

# Run tests
npm test

Project Structure

src/
├── index.ts              # SDK entry point
├── scraper.ts            # Main scrapeJobs() orchestrator
├── types.ts              # All types, enums, country config
├── utils.ts              # Logger, proxy rotation, HTML helpers
├── cli/index.ts          # CLI (commander)
├── mcp/index.ts          # MCP server
└── scrapers/
    ├── base.ts           # Abstract Scraper base class
    ├── indeed/           # GraphQL API
    ├── linkedin/         # HTML scraping
    ├── glassdoor/        # GraphQL API
    ├── google/           # Playwright headless Chrome
    ├── google-careers/   # Plain HTTP; AF_initDataCallback JSON parsing
    ├── ziprecruiter/     # Web scraping
    ├── bayt/             # HTML scraping
    ├── naukri/           # REST API
    └── bdjobs/           # REST API

License

MIT