DEV Community

Logiover
Logiover

Posted on

How to Scrape USAJobs — Free No-Code Guide (2026)

If you need to pull USAJobs data at scale and there's no clean official API, this guide shows how to export it to JSON, CSV or Excel in a couple of minutes — with no scraping code to maintain.

We'll use the USAJobs Scraper - Federal Government Jobs Data, a hosted scraper on the Apify platform. You only need a free Apify token — no USAJobs login, no proxies, no reverse-engineering.

What data you get

Each run returns structured records with fields like:

  • positionTitle
  • hiringDepartmentName
  • hiringAgencyName
  • minimumSalary
  • maximumSalary
  • workSchedule
  • positionOpenDate
  • url
  • controlNumber
  • announcementNumber
  • hiringSubelementName
  • appointmentType
  • serviceType
  • payScale

Results are paginated automatically — you can pull thousands of rows per run and export them as JSON, CSV, Excel, JSONL or XML.

Option 1 — No code (Apify Console)

  1. Open the actor: https://apify.com/logiover/usajobs-scraper
  2. Click Try for free.
  3. Leave the input empty for a broad sample, or set the fields below.
  4. Run it, then Export the dataset as CSV/JSON/Excel.

Option 2 — Node.js

npm install usajobs-scraper
Enter fullscreen mode Exit fullscreen mode
const scrape = require("usajobs-scraper");

(async () => {
  const items = await scrape({}, { token: process.env.APIFY_TOKEN });
  console.log(items.length, "results");
  console.log(items[0]);
})();
Enter fullscreen mode Exit fullscreen mode

Option 3 — Python

pip install usajobs-scraper
Enter fullscreen mode Exit fullscreen mode
from usajobs_scraper import scrape

items = scrape({}, token="YOUR_APIFY_TOKEN")
print(len(items), "results")
print(items[0])
Enter fullscreen mode Exit fullscreen mode

Grab a free token at https://console.apify.com/account/integrations.

Input options

Field Type What it does
keyword string Keyword
hiringDepartmentCodes array Hiring Department
positionSeries array Occupational Series
payScale array Pay Scale / Grade System
serviceType array Service Type
workSchedule array Work Schedule
appointmentType array Appointment Type
securityClearance array Security Clearance
supervisoryStatusOnly boolean Supervisory / Management Positions Only
teleworkEligibleOnly boolean Telework-Eligible Positions Only
startDate string Start Date
endDate string End Date

Common use cases

  • Build a fresh USAJobs dataset for analysis or dashboards
  • Feed USAJobs records into your own app, CRM or spreadsheet
  • Monitor changes on a schedule and get alerts via webhooks
  • Enrich leads or research with up-to-date USAJobs data

Automation & export

Because it runs on Apify, you can schedule it, trigger it via webhook, and pipe results into Google Sheets, S3, Zapier, Make or n8n. Every run's dataset is downloadable as CSV, JSON, JSONL, Excel or XML.

FAQ

Do I need an API key? Only a free Apify token. No USAJobs account needed.

How many results can I get? Thousands per run; raise the limit to pull more.

Is it an official USAJobs API? No — it's an unofficial, maintained alternative when there's no official or affordable API.

Can I export to CSV/Excel? Yes — JSON, CSV, JSONL, Excel and XML.


▶️ Run the USAJobs Scraper - Federal Government Jobs Data on Apify: https://apify.com/logiover/usajobs-scraper

📚 Docs & code examples: https://github.com/logiover/usajobs-scraper

🧰 More scrapers: https://apify.com/logiover

Top comments (1)

Collapse
 
topstar_ai profile image
Luis Cruz

I found the use of Apify's hosted scraper to be a clever solution for extracting USAJobs data without needing to maintain scraping code or deal with the complexities of reverse-engineering the website. The fact that it can handle thousands of rows per run and export to various formats like JSON, CSV, and Excel is particularly useful. One potential improvement could be to explore adding more input options, such as filtering by location or job category, to further refine the data extraction process. Have you considered integrating this scraper with other data sources or tools to create a more comprehensive job market analysis platform?