# USAJOBS API Guide (And How to Combine Federal + Private-Sector Job Feeds)

> How to get a free USAJOBS API key, query US federal government job postings in Python, and combine public-sector listings with private-sector ATS feeds.

Source: https://cleanjobdata.com/articles/usajobs-api-guide
Published: 2026-11-29

TL;DR: The USAJOBS API is one of the few genuinely free, official government job APIs with structured JSON, salary bands, and clear documentation. You just need an API key and a User-Agent email header. Its main limitation is scope: it only covers US federal government roles, so job boards targeting broader audiences pair it with an ATS-sourced API like CleanJobData.

If you are building a US job board, civic-tech project, or career tool, the **USAJOBS API** is one of the best free data sources available. Operated by the U.S. Office of Personnel Management (OPM), it exposes live federal government job openings in clean JSON with pay scales, security clearance requirements, and closing dates.

Here is how to authenticate, query the API, and pair it with private-sector job data.

## How to Get Access to the USAJOBS API

Unlike Indeed, LinkedIn, or ZipRecruiter, USAJOBS encourages developer access:

1. Request an API key at [developer.usajobs.gov](https://developer.usajobs.gov/apirequest/).
2. You will receive an `Authorization-Key` via email.
3. Every request **must** include both `Authorization-Key` and a `User-Agent` header set to the email address you registered with.

## Querying the USAJOBS Search Endpoint

Here is a working Python example that searches for remote software/IT federal roles:

```python
import requests

url = "https://data.usajobs.gov/api/search"
headers = {
    "Host": "data.usajobs.gov",
    "User-Agent": "you@yourdomain.com",
    "Authorization-Key": "YOUR_USAJOBS_API_KEY",
}
params = {
    "Keyword": "software engineer",
    "RemoteIndicator": "True",
    "ResultsPerPage": 25,
}

resp = requests.get(url, headers=headers, params=params, timeout=15)
resp.raise_for_status()
items = resp.json()["SearchResult"]["SearchResultItems"]

for item in items:
    job = item["MatchedObjectDescriptor"]
    print(job["PositionTitle"], "|", job["OrganizationName"], "|", job["PositionURI"])
```

### What You Get (and What Is Missing)

**Strengths:**
- **100% official & free** for US federal openings.
- **Rich metadata:** GS pay grades, salary min/max, agency name, location, and exact closing date.
- **No scraping required.**

**Limitations:**
- **Federal government only:** No private companies, startups, state/local agencies, or international employers.
- **Nested schema:** The `MatchedObjectDescriptor` structure is verbose and government-specific, so you will need a normalization layer if you merge it with other sources.

## Combining Federal + Private-Sector Jobs

Most job boards and AI job matchers cannot rely on federal postings alone. A common pattern is to ingest USAJOBS for public-sector roles and pair it with an ATS-direct API like **CleanJobData** for private-sector companies (from startups on Ashby/Lever to enterprises on Workday/Greenhouse).

```python
# Normalize USAJOBS and CleanJobData into one unified schema
def normalize_usajobs(item):
    d = item["MatchedObjectDescriptor"]
    return {
        "source": "usajobs",
        "title": d["PositionTitle"],
        "company": d["OrganizationName"],
        "apply_url": d["PositionURI"],
    }
```

Check out our [Best Free Job APIs in 2026](https://cleanjobdata.com/articles/best-free-job-apis-2026) for more open feeds, or read [Syncing Job Data in Depth](https://cleanjobdata.com/guides/syncing-job-data-in-depth) to design an incremental ingestion pipeline.
