# USAJobs Scraper (`crawlerbros/usa-jobs-scraper`) Actor

Scrape federal job postings from USAJobs.gov - search by keyword, location, agency, grade, schedule, and more. Returns full job details including salary, qualifications, and remote status.

- **URL**: https://apify.com/crawlerbros/usa-jobs-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Jobs, Automation, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Scraper

Search and extract federal job postings from [USAJobs.gov](https://www.usajobs.gov/) — the official U.S. government job board. Find opportunities across all federal agencies by keyword, location, agency, pay grade, and schedule type.

### Features

- Search thousands of federal job postings by keyword, location, or agency
- Filter by GS pay grade, work schedule, and applicant eligibility
- Returns full job details: salary range, qualifications summary, security clearance requirements, remote status, and application deadlines
- Paginate through results up to 5,000 jobs per run
- Works without an API key (at lower rate limits); supply your own key for higher throughput

### Input

| Field | Type | Description |
|-------|------|-------------|
| `mode` | String | Always `searchJobs` |
| `keyword` | String | Job title or keyword (e.g. "software engineer", "data analyst") |
| `locationName` | String | City/state filter (e.g. "Washington, DC") |
| `organization` | String | Federal agency filter (e.g. "NASA") |
| `positionSchedule` | String | Work schedule: Any, Full-Time, Part-Time, Intermittent, Multiple Schedules |
| `whoMayApply` | String | Eligibility filter: Any, Open to Public, All Federal Employees, Status Candidates |
| `gradeMin` | Integer | Minimum GS pay grade (1–15) |
| `gradeMax` | Integer | Maximum GS pay grade (1–15) |
| `datePostedDays` | Integer | Jobs posted within N days (default: 30) |
| `apiKey` | String | Optional USAJobs API key from [developer.usajobs.gov](https://developer.usajobs.gov/) |
| `maxItems` | Integer | Maximum number of results (default: 50, max: 5,000) |

#### Example Input

```json
{
  "mode": "searchJobs",
  "keyword": "data analyst",
  "locationName": "Washington, DC",
  "positionSchedule": "1",
  "whoMayApply": "public",
  "datePostedDays": 30,
  "maxItems": 50
}
````

### Output

Each record contains the following fields:

| Field | Type | Description |
|-------|------|-------------|
| `positionId` | String | Unique USAJobs position ID |
| `positionTitle` | String | Job title |
| `positionUri` | String | Direct link to the job posting |
| `organizationName` | String | Hiring agency/organization name |
| `departmentName` | String | Federal department name |
| `locationName` | String | Primary location name |
| `positionLocalities` | Array | All duty station locations |
| `positionStartDate` | String | Anticipated start date |
| `positionEndDate` | String | Position end date |
| `applicationCloseDate` | String | Application deadline |
| `salaryMin` | Float | Minimum annual salary |
| `salaryMax` | Float | Maximum annual salary |
| `positionSchedule` | String | Work schedule type (Full-Time, Part-Time, etc.) |
| `whoMayApply` | String | Who can apply for this position |
| `qualificationSummary` | String | Qualification requirements |
| `jobSummary` | String | Job description summary |
| `securityClearanceRequired` | Boolean | Whether security clearance is required |
| `remoteIndicator` | Boolean | Whether the position is remote-eligible |
| `sourceUrl` | String | Direct URL to the job listing |
| `scrapedAt` | String | ISO 8601 timestamp of when the record was scraped |
| `recordType` | String | Always `job` |

#### Example Output

```json
{
  "positionId": "DEA-2024-0001",
  "positionTitle": "Data Analyst",
  "organizationName": "Drug Enforcement Administration",
  "departmentName": "Department of Justice",
  "locationName": "Washington DC, District of Columbia",
  "positionLocalities": ["Washington DC, District of Columbia"],
  "salaryMin": 82764.0,
  "salaryMax": 107590.0,
  "positionSchedule": "Full-Time",
  "whoMayApply": "Open to the public",
  "securityClearanceRequired": true,
  "remoteIndicator": false,
  "applicationCloseDate": "2024-12-31",
  "sourceUrl": "https://www.usajobs.gov/job/...",
  "scrapedAt": "2026-05-30T12:00:00+00:00",
  "recordType": "job"
}
```

### Frequently Asked Questions

**Do I need an API key?**
No, the scraper works without an API key at reduced rate limits. For higher throughput, register for a free key at [developer.usajobs.gov](https://developer.usajobs.gov/).

**How many jobs can I retrieve?**
Up to 5,000 per run. For large searches, combine filters to narrow results.

**How often is USAJobs updated?**
New postings appear continuously. Use `datePostedDays` to filter recent listings.

**Can I search by pay grade?**
Yes, use `gradeMin` and `gradeMax` to filter by GS pay grade (1–15).

**What does "Who May Apply" mean?**
This filter controls applicant eligibility: Open to Public means anyone can apply; Status Candidates means current/former federal employees with career/career-conditional status.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

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

Job title or keyword to search (e.g. 'software engineer', 'data analyst').

## `locationName` (type: `string`):

City or state to filter by (e.g. 'Washington, DC', 'New York, NY').

## `organization` (type: `string`):

Federal agency code or name (e.g. 'NASA', 'DEPT OF DEFENSE').

## `positionSchedule` (type: `string`):

Filter by work schedule type.

## `whoMayApply` (type: `string`):

Applicant eligibility filter.

## `gradeMin` (type: `integer`):

Minimum GS pay grade (1â€“15).

## `gradeMax` (type: `integer`):

Maximum GS pay grade (1â€“15).

## `datePostedDays` (type: `integer`):

Only return jobs posted within this many days.

## `apiKey` (type: `string`):

Required USAJobs API key from https://developer.usajobs.gov/. Free to register â€” sign up and get your key from the developer portal. The API does not allow unauthenticated access.

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

Maximum number of job records to return.

## Actor input object example

```json
{
  "mode": "searchJobs",
  "keyword": "software engineer",
  "positionSchedule": "",
  "whoMayApply": "",
  "datePostedDays": 30,
  "maxItems": 50
}
```

# Actor output Schema

## `jobs` (type: `string`):

Dataset containing all scraped federal job postings.

# 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 = {
    "mode": "searchJobs",
    "keyword": "software engineer",
    "datePostedDays": 30,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/usa-jobs-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 = {
    "mode": "searchJobs",
    "keyword": "software engineer",
    "datePostedDays": 30,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/usa-jobs-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "searchJobs",
  "keyword": "software engineer",
  "datePostedDays": 30,
  "maxItems": 50
}' |
apify call crawlerbros/usa-jobs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/usa-jobs-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "USAJobs Scraper",
        "description": "Scrape federal job postings from USAJobs.gov - search by keyword, location, agency, grade, schedule, and more. Returns full job details including salary, qualifications, and remote status.",
        "version": "1.0",
        "x-build-id": "JUii5S8wxda9WRNPv"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~usa-jobs-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-usa-jobs-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlerbros~usa-jobs-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-usa-jobs-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlerbros~usa-jobs-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-usa-jobs-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "searchJobs"
                        ],
                        "type": "string",
                        "description": "What to fetch.",
                        "default": "searchJobs"
                    },
                    "keyword": {
                        "title": "Keyword",
                        "type": "string",
                        "description": "Job title or keyword to search (e.g. 'software engineer', 'data analyst')."
                    },
                    "locationName": {
                        "title": "Location",
                        "type": "string",
                        "description": "City or state to filter by (e.g. 'Washington, DC', 'New York, NY')."
                    },
                    "organization": {
                        "title": "Agency / Organization",
                        "type": "string",
                        "description": "Federal agency code or name (e.g. 'NASA', 'DEPT OF DEFENSE')."
                    },
                    "positionSchedule": {
                        "title": "Position Schedule",
                        "enum": [
                            "",
                            "1",
                            "2",
                            "4",
                            "6"
                        ],
                        "type": "string",
                        "description": "Filter by work schedule type.",
                        "default": ""
                    },
                    "whoMayApply": {
                        "title": "Who May Apply",
                        "enum": [
                            "",
                            "public",
                            "all",
                            "status"
                        ],
                        "type": "string",
                        "description": "Applicant eligibility filter.",
                        "default": ""
                    },
                    "gradeMin": {
                        "title": "Grade Min (GS Pay Grade)",
                        "minimum": 1,
                        "maximum": 15,
                        "type": "integer",
                        "description": "Minimum GS pay grade (1â€“15)."
                    },
                    "gradeMax": {
                        "title": "Grade Max (GS Pay Grade)",
                        "minimum": 1,
                        "maximum": 15,
                        "type": "integer",
                        "description": "Maximum GS pay grade (1â€“15)."
                    },
                    "datePostedDays": {
                        "title": "Posted Within (days)",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "Only return jobs posted within this many days.",
                        "default": 30
                    },
                    "apiKey": {
                        "title": "USAJobs API Key",
                        "type": "string",
                        "description": "Required USAJobs API key from https://developer.usajobs.gov/. Free to register â€” sign up and get your key from the developer portal. The API does not allow unauthenticated access."
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of job records to return.",
                        "default": 50
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
