# USAJobs Scraper (`parseforge/usajobs-scraper`) Actor

Scrapes federal job postings from USAJobs search results. Returns each listing as a flat row with title, agency, location, salary, grade, and full announcement details.

- **URL**: https://apify.com/parseforge/usajobs-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Jobs, Automation, Developer tools
- **Stats:** 18 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $11.99 / 1,000 result items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### USAJobs Scraper

**Scrape federal job listings from USAJobs by keyword, location, or series, up to a million per run.** Every listing returns title, agency, salary, grade, and full qualification requirements. No API key needed. Export to CSV, JSON, Excel, or XML.

USAJobs is the central hub for U.S. federal employment, but manually searching thousands of postings for specific agencies, pay grades, or occupational series is slow. This USAJobs scraper reads public search results directly, filtering by keyword, location, department, and salary range, and returns each matching job in a consistent, flat schema.

It handles pagination, rate limits, and session management so you get clean, structured data without writing a single line of code.

| Who uses it | What they scrape USAJobs for |
|---|---|
| Federal contractors | Monitor which agencies are hiring for contract-relevant roles. |
| Recruitment analysts | Track federal hiring trends by series, grade, and location over time. |
| Job board operators | Populate a niche job board with current, filterable U.S. government vacancies. |
| Career coaches | Find open federal positions matching a client's specific occupational series and clearance. |

### What it does

This Actor collects federal job postings from USAJobs search results and returns each one as a flat row with title, agency, location, salary, grade, and application details.

- 🔍 **Keyword and location filters:** narrow results by job title keywords, city, state, or zip code.
- 🏛️ **Agency and series targeting:** filter by specific federal departments or occupational series codes.
- 💰 **Salary and grade range:** restrict listings to a minimum pay grade or salary band.
- 📄 **Full job details:** captures the complete announcement body, qualifications, and application instructions.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with USAJobs data

**📈 Track federal hiring trends.**

A workforce analyst runs the scraper weekly for a set of occupational series to measure demand for specific skills across agencies.

**🎯 Build a targeted job alert feed.**

A developer pulls new listings matching niche IT keywords and locations to power a specialized email newsletter for cleared professionals.

**📊 Analyze salary distributions.**

A compensation consultant collects all postings at GS-13 and above in the D.C. area to benchmark salary offers against private-sector roles.

**🗺️ Map geographic hiring hotspots.**

A researcher aggregates postings by state and agency to visualize where federal investment in personnel is growing.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API registration** | Bypasses USAJobs API rate limits and authentication requirements. |
| **Structured output** | Every job is a flat row with consistent columns for title, agency, salary, grade, and more. |
| **Scalable collection** | Collect up to a million listings in a single run with automatic pagination. |

### How it compares

This Actor focuses exclusively on USAJobs with deep federal-specific filters, while the alternatives below either cover USAJobs as one of many boards or offer a more general extraction.

| Feature | ParseForge | USA Jobs Scraper | All Jobs Scraper |
|---|---|---|---|
| Filter by occupational series code | Yes | Not listed | Not listed |
| Filter by minimum pay grade | Yes | Not listed | Not listed |
| Filter by specific agency or department | Yes | Yes | Not listed |
| Full announcement body text | Yes | Yes | Not listed |
| Deduplicated feed across 26+ job boards | Not listed | Not listed | Yes |

### Configure the run

Drive the Actor from keyword searches, location queries, and agency or series filters, alone or together, and filters run as each job is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "packages": [
    "numpy",
    "requests",
    "flask"
  ],
  "maxItems": 10
}
```

A larger pull:

```json
{
  "packages": [
    "numpy",
    "requests",
    "flask"
  ],
  "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.01599 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $1.60 |
| 1,000 results | $15.99 |
| 10,000 results | $159.90 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [USAJobs Scraper](https://apify.com/parseforge/usajobs-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to USAJobs through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/usajobs-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that your keyword, agency, or series filters are not too restrictive. Try broadening the search by removing one filter at a time.

**The run stopped before reaching my maximum items limit.**

USAJobs may return fewer total results than your maxItems setting. The Actor stops when there are no more pages to read.

**Some fields are empty in my output.**

Not every USAJobs posting includes all fields. Salary ranges, for example, are only present for certain pay scales.

**The scraper is running slowly.**

The Actor respects USAJobs' servers with polite delays. For large jobs, increase the run timeout rather than expecting faster page loads.

### FAQ

| Question | Answer |
|---|---|
| Can I filter jobs by a specific federal agency? | Yes. You can provide one or more agency codes or names to restrict results to only those departments. |
| Does this scraper get the full job description? | Yes. It captures the complete announcement body, including duties, qualifications, and how to apply. |
| Can I search by occupational series? | Yes. You can filter by the four-digit series code, such as 2210 for IT Management. |
| What output formats are supported? | The dataset can be exported to CSV, JSON, Excel, or XML from your Apify run. |
| How many job listings can I scrape in one run? | You can set a maximum of up to one million listings per run. |
| Does it handle USAJobs pagination automatically? | Yes. The Actor navigates through all pages of search results until it hits your maximum items limit. |
| Can I filter by minimum salary or pay grade? | Yes. You can set a minimum grade, such as GS-12, or a minimum salary threshold. |
| Is an API key or login required? | No. This Actor reads the public search pages and requires no USAJobs account or API registration. |
| Can I search for remote-only federal jobs? | Yes. You can include location keywords like 'remote' or filter by location to find telework-eligible positions. |
| How often can I run this scraper? | You can schedule it to run as frequently as you need using Apify's built-in scheduler. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by United States Office of Personnel Management. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `packages` (type: `array`):

One or more PyPI package names to look up (for example numpy, requests, flask).

## `statType` (type: `string`):

Recent: last day/week/month totals (1 row per package). Overall: full daily download time series (many rows per package).

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

Maximum number of job listings to collect per run.

## Actor input object example

```json
{
  "packages": [
    "numpy",
    "requests",
    "flask"
  ],
  "statType": "recent",
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "packages": [
        "numpy",
        "requests",
        "flask"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/usajobs-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 = {
    "packages": [
        "numpy",
        "requests",
        "flask",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/usajobs-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 '{
  "packages": [
    "numpy",
    "requests",
    "flask"
  ],
  "maxItems": 10
}' |
apify call parseforge/usajobs-scraper --silent --output-dataset

```

## MCP server setup

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