# USAJOBS API - US Federal Government Job Search (`bridged/usajobs-api`) Actor

Search current US federal government job openings from the official USAJOBS Search API.

- **URL**: https://apify.com/bridged/usajobs-api.md
- **Developed by:** [Zihan Poh](https://apify.com/bridged) (community)
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 jobs

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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## USAJOBS API

Search current US federal government job openings from the official **USAJOBS Search API** — no
scraping, no login bypass.

### Why this exists

Existing USAJOBS actors on the Apify Store have almost no traction or reviews. Federal job data is
public and free; this actor normalizes salary, location, schedule, pay grade and clearance
requirements into one clean row per posting so it can feed a job board, alerting tool, or research
pipeline without hand-parsing USAJOBS' nested response shape.

### You need your own free API key

USAJOBS has no shared/public key. Request one by email via
[developer.usajobs.gov](https://developer.usajobs.gov/apirequest/) (free, typically issued within
a day). Every request also has to identify the caller by email — pass both `apiKey` and
`userEmail` (the same email you registered the key with) as input.

### Input

```json
{
  "apiKey": "your-usajobs-authorization-key",
  "userEmail": "you@example.com",
  "keyword": "data scientist",
  "locationName": "Washington, DC",
  "maxResults": 500
}
```

### Output (one row per job posting)

```json
{
  "positionId": "ABC-2026-0001",
  "positionTitle": "Data Scientist",
  "organizationName": "Department of Commerce",
  "departmentName": "Department of Commerce",
  "positionUri": "https://www.usajobs.gov/job/...",
  "applyUri": "https://www.usajobs.gov/job/.../apply",
  "locations": ["Washington, District of Columbia"],
  "salaryMin": 99200, "salaryMax": 128956, "rateIntervalCode": "PA",
  "payGradeLow": "13",
  "jobCategory": ["Miscellaneous Administration And Program"],
  "positionSchedule": ["Full-time"],
  "openDate": "2026-09-01", "closeDate": "2026-09-30",
  "summary": "...",
  "licence": "US federal government public data (public domain, no copyright)."
}
```

### Pricing

Pay-per-result: one `job` event per row. $1.00 per 1,000, no start fee.

### Data source and legality

The USAJOBS Search API (`data.usajobs.gov/api/search`) is an official US government API,
explicitly built for third-party job boards and apps to consume. Federal job postings are
public-domain government records. No robots.txt or ToS issue — the API is the intended access
path, not a workaround.

**Rate limits:** USAJOBS doesn't publish a hard numeric limit on this endpoint; this actor
throttles itself to roughly 2 requests/second and never rotates keys/IPs to exceed whatever limit
applies to the caller's key, per USAJOBS' fair-use guidance.

### Getting started

```bash
apify run
```

### Deploy to Apify

```bash
apify login
apify push
```

# Actor input Schema

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

Required. Free key requested by email at developer.usajobs.gov (Account Request). USAJOBS has no shared/public key.

## `userEmail` (type: `string`):

Required. USAJOBS requires every request to identify the caller by email in the User-Agent header -- use the same email you registered your API key with.

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

Free-text search across job title and description.

## `positionTitle` (type: `string`):

Exact-ish match on job title.

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

e.g. TR (Treasury). See USAJOBS agency subelement codes.

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

City/state or ZIP, e.g. "Washington, DC".

## `radius` (type: `integer`):

Search radius around locationName.

## `payGradeLow` (type: `string`):

e.g. 01

## `payGradeHigh` (type: `string`):

e.g. 15

## `remunerationMinimumAmount` (type: `integer`):

Only return jobs with a minimum salary at or above this amount (USD).

## `jobCategoryCode` (type: `array`):

e.g. \["2210"] for IT Management.

## `maxResults` (type: `integer`):

Stop after this many jobs.

## Actor input object example

```json
{
  "maxResults": 1000
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("bridged/usajobs-api").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("bridged/usajobs-api").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 '{}' |
apify call bridged/usajobs-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bridged/usajobs-api"
        }
    }
}
```

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/3Ihd26iLVL58E9MQj/builds/J2ac2zzSxkOuqcFFE/openapi.json
