# USAJOBS Job Scraper (`moving_beacon-owner1/usajobs-job-scraper`) Actor

Scrapes open US federal job announcements from USAJOBS, returning position, agency, location, salary, grade, schedule, hiring path, dates, job category, URL, and raw listing data.

- **URL**: https://apify.com/moving\_beacon-owner1/usajobs-job-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## USAJOBS Job Scraper

Scrapes currently open US federal job announcements from **usajobs.gov**.

### Input

| Field | Default | Description |
|---|---|---|
| `keyword` | `""` | Free-text keyword, e.g. `nurse`, `engineer`. Empty = all open announcements. |
| `location` | `""` | Full USAJOBS location name(s), e.g. `Denver, Colorado`; comma-separate several. |
| `job_category_code` | `""` | OPM occupational series, e.g. `2210` (IT), `0610` (Nurse); comma-separate several. |
| `api_key` | *(secret, unset)* | Optional key from https://developer.usajobs.gov/apirequest/ — switches to the official API. |
| `email` | `""` | E-mail the key was registered with (sent as `User-Agent`); required only with `api_key`. |
| `limit` | `50` | Max announcements (1–10000; USAJOBS caps any one query at 10000 hits). |

### Output

```json
{
    "job_id": "875547700",
    "position_title": "Nurse (Clinical/Emergency Department)",
    "announcement_number": "HSJW-26-Nurse C/ED-1159-DHA",
    "agency": "Military Treatment Facilities under DHA",
    "department": "Department of Defense",
    "location": "Fort Carson, Colorado",
    "location_count": 1,
    "salary_display": "Starting at $105,053 Per year (GS 12)",
    "salary_min": 105053.0,
    "salary_max": null,
    "pay_plan": "GS",
    "low_grade": "12",
    "high_grade": "12",
    "work_schedule": "Full-time",
    "work_type": "Permanent",
    "open_date": "2026-07-09",
    "close_date": "2026-12-03",
    "date_display": "Open 07/09/2026 to 12/03/2026",
    "hiring_paths": ["Open to the public"],
    "job_category_codes": ["0610"],
    "job_category_names": ["Nurse"],
    "url": "https://www.usajobs.gov/job/875547700",
    "source": "usajobs.gov/Search/ExecuteSearch",
    "raw": { "...full source payload...": "" }
}
```

### Data source

USAJOBS data is public US government information. Keep request volume modest and follow the usajobs.gov terms (https://help.usajobs.gov/terms-and-conditions).

# Actor input Schema

## `keyword` (type: `string`):

Free-text keyword matched against the announcement (title, agency, duties), e.g. nurse, engineer, cyber. Leave empty to list all currently open announcements.

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

Duty location filter exactly as USAJOBS spells it, e.g. 'Denver, Colorado' or 'Washington, District of Columbia'. Comma-separate several full location names to combine them. Leave empty for all locations.

## `job_category_code` (type: `string`):

OPM occupational series codes, e.g. 2210 (IT), 0610 (Nurse), 1102 (Contracting). Comma-separate several. Leave empty for all series.

## `api_key` (type: `string`):

Optional free Authorization-Key from https://developer.usajobs.gov/apirequest/. When set (together with the e-mail below), the actor uses the official data.usajobs.gov/api/search API instead of the keyless usajobs.gov search endpoint. Leave empty to run without any key.

## `email` (type: `string`):

The e-mail address the API key was requested with — the official USAJOBS API requires it as the User-Agent header. Only needed when api\_key is set.

## `limit` (type: `integer`):

Maximum number of job announcements to return. USAJOBS search never returns more than 10000 hits for one query.

## Actor input object example

```json
{
  "keyword": "",
  "location": "",
  "job_category_code": "",
  "email": "",
  "limit": 50
}
```

# 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 = {
    "keyword": "",
    "location": "",
    "job_category_code": "",
    "email": "",
    "limit": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/usajobs-job-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 = {
    "keyword": "",
    "location": "",
    "job_category_code": "",
    "email": "",
    "limit": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/usajobs-job-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 '{
  "keyword": "",
  "location": "",
  "job_category_code": "",
  "email": "",
  "limit": 50
}' |
apify call moving_beacon-owner1/usajobs-job-scraper --silent --output-dataset

```

## MCP server setup

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