# Federal Jobs Finder (`primeselectai/regional-federal-jobs-finder`) Actor

Find currently open U.S. federal jobs by region, keyword, occupation, salary, schedule, and hiring path through the official USAJOBS API.

- **URL**: https://apify.com/primeselectai/regional-federal-jobs-finder.md
- **Developed by:** [Simon Jessen](https://apify.com/primeselectai) (community)
- **Categories:** Jobs
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 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

## Regional Federal Jobs Finder

### Find regional federal openings in seconds

Search current U.S. federal jobs by city, region, keyword, occupational series, posting age, eligibility, and response detail. Receive normalized job summaries with geographic fields, compensation details when available, and official USAJOBS announcement and application links.

Use the results for recruiter research, regional workforce analysis, staffing pipelines, local-news reporting, and internal market studies. USAJOBS remains the authoritative source for announcement details and applications.

### Example result

```json
{
  "positionTitle": "Software Engineer",
  "organizationName": "Department of Example",
  "locations": [{"cityName": "Rochester", "stateCode": "NY"}],
  "salary": [{"minimum": "70000", "maximum": "110000", "rateIntervalDescription": "Per Year"}],
  "positionUri": "https://www.usajobs.gov/job/100001",
  "applyUri": "https://www.usajobs.gov/job/100001/apply",
  "source": "USAJOBS"
}
```

### Quick start

1. Add the approved USAJOBS developer API key through the Actor's protected runtime secret configuration.
2. Enter a keyword such as `software engineer`.
3. Enter a location such as `Rochester, New York` and optionally set a radius.
4. Choose posting age, occupational series, page size, and response detail.
5. Run the Actor and open the dataset results.

The API key is injected by the runtime and is not included in inputs, outputs, or logs. The connector uses documented HTTPS GET requests only.

### API and MCP examples

API input example:

```json
{
  "query": "software engineer",
  "locationName": "Rochester, New York",
  "radius": 50,
  "datePosted": 30,
  "resultsPerPage": 10,
  "fields": "Min",
  "maxResults": 100
}
```

Use the Apify API or MCP dataset tools to read the run's default dataset. The results link is:

`{links.apiDefaultDatasetUrl}/items`

### Value and pricing

This Actor reduces the time required to assemble a location-first federal opportunity dataset. It avoids employer-site scraping and browser automation while providing reproducible filters and official links. Run pricing depends on your Apify compute and storage usage; source access remains subject to USAJOBS API-key limits and terms.

### Inputs

- Keyword and position title
- City, region, or other USAJOBS location name
- Radius in miles
- Posted-within-days filter from 0 to 60
- Occupational-series code
- Eligibility, including `public`
- Results per page, starting page, optional page limit, and maximum results
- `Min` or `Full` response detail

### Outputs

Each dataset record includes the USAJOBS control number, position ID and title, official announcement and application URLs, agency and department names, locations, job categories, schedules, salary ranges and intervals when available, publication and closing dates, qualification summary, and the constant attribution value `USAJOBS`.

### Source attribution and license

Source: **USAJOBS Job Search API**, official public API at `https://data.usajobs.gov/api/Search`.

USAJOBS attribution must be preserved, displayed values must not be materially altered, and users should be directed to USAJOBS for authoritative details and applications. Access requires a protected developer API key obtained from the USAJOBS developer portal. USAJOBS API Terms of Service allow internal normalization and reformatting with restrictions, but prohibit standalone redistribution, resale, licensing, or creation of a competing job-data product without written OPM approval. Do not imply endorsement by USAJOBS, OPM, or the U.S. Government.

### Limitations and troubleshooting

- **Authentication error:** confirm that the approved developer key is configured in the protected runtime and associated headers are being injected. Never place the key in Actor input.
- **Rate limit:** reduce page size or run frequency and respect limits associated with the issued key.
- **Empty data or silent failure:** verify spelling, location format, date range, eligibility, and occupational-series code; broaden filters and use `Fields: Min`.
- **Schema drift:** if records stop appearing, inspect the official API documentation for changes to `SearchResultItems` or announcement fields.
- **Upstream outage:** retry later and check USAJOBS developer service availability.
- Results change as announcements open, close, or update. Descriptions and other government-provided text may require the selected `Full` response mode and should be treated as source content.

> Store publication requires manual approval.

# Actor input Schema

## `query` (type: `string`):

Keyword searched across USAJOBS announcements.

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

Matches text contained in the job title.

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

City, region, military installation, or other USAJOBS location name.

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

Expands a location search when used with locationName.

## `datePosted` (type: `integer`):

Restricts results to announcements posted within 0–60 days.

## `jobCategoryCode` (type: `string`):

USAJOBS occupational-series code; multiple values may be semicolon-delimited.

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

Use public for jobs open to the public. Other values may require additional authorization.

## `resultsPerPage` (type: `integer`):

Number of results to request, up to the documented API maximum of 500.

## `page` (type: `integer`):

One-based result page to begin with.

## `fields` (type: `string`):

Use Min for summaries or Full for expanded announcement fields.

## `pageSize` (type: `integer`):

Optional source page size override, capped at 500.

## `maxPages` (type: `integer`):

Optional safety limit on the number of source pages fetched.

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

Maximum number of normalized records to collect.

## Actor input object example

```json
{
  "whoMayApply": "public",
  "resultsPerPage": 25,
  "page": 1,
  "fields": "Min",
  "pageSize": 100,
  "maxPages": 1000,
  "maxResults": 25
}
```

# Actor output Schema

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

No description

## `runMeta` (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 = {
    "resultsPerPage": 25,
    "fields": "Min",
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("primeselectai/regional-federal-jobs-finder").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 = {
    "resultsPerPage": 25,
    "fields": "Min",
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("primeselectai/regional-federal-jobs-finder").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 '{
  "resultsPerPage": 25,
  "fields": "Min",
  "maxResults": 25
}' |
apify call primeselectai/regional-federal-jobs-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,primeselectai/regional-federal-jobs-finder"
        }
    }
}

```

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/PnH1brJHUnzK4s6ls/builds/FdXAXSKOqGPHJKw7k/openapi.json
