USAJOBS Government Jobs Scraper avatar

USAJOBS Government Jobs Scraper

Pricing

from $2.00 / 1,000 scraped results

Go to Apify Store
USAJOBS Government Jobs Scraper

USAJOBS Government Jobs Scraper

filtering. Returns job ID, title, agency, deadline, job link, and scrape timestamp.Fetches recent USAJOBS job announcements by date range and agency, with optional keyword

Pricing

from $2.00 / 1,000 scraped results

Rating

0.0

(0)

Developer

Data Pilot

Data Pilot

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

πŸ›οΈ USAJOBS Government Jobs Scraper is a powerful Apify Actor designed to discover, track, and collect public USAJOBS Government Jobs announcements directly from the official USAJOBS Historic Job Announcements API. This tool provides comprehensive USAJOBS Government Jobs intelligence including job title, hiring agency, application deadline, and direct listing link for any date range, agency, or keyword. Whether you're building a federal job board, tracking hiring trends, or conducting workforce research, the USAJOBS Government Jobs Scraper delivers actionable USAJOBS Government Jobs insights efficiently.

With direct USAJOBS API integration, continuation-token pagination, keyword and agency filtering, and reliable Apify Dataset delivery, the USAJOBS Government Jobs Scraper ensures comprehensive USAJOBS Government Jobs coverage across any federal hiring window. It focuses on key USAJOBS Government Jobs signals including title, agency, and deadline, making it an essential tool for federal employment research and workforce intelligence.


πŸ“‹ Table of Contents


πŸ”₯ Features

  • USAJOBS API Integration – Direct integration with the official USAJOBS Historic Job Announcements API for accurate USAJOBS Government Jobs data.
  • Date Range Filtering – Automatically scopes the search window using a configurable daysBack parameter.
  • Agency Filtering – Narrow USAJOBS Government Jobs results to a specific hiring agency by code.
  • Keyword Title Filtering – Filter announcements by matching keyword directly against the position title.
  • Continuation-Token Pagination – Automatically pages through the full result set using the API's continuation token system.
  • Configurable Result Cap – Control exactly how many USAJOBS Government Jobs records to collect via maxResults.
  • Incremental Dataset Push – Pushes each page's matched USAJOBS Government Jobs records to Apify Dataset immediately.
  • Retry Logic with Backoff – Automatically retries failed requests with increasing delay between attempts.
  • Residential Proxy Support – Optional Apify residential proxy for reliable USAJOBS Government Jobs access.
  • Detailed Logging – Comprehensive per-page progress and total-match logging for every USAJOBS Government Jobs run.
  • Graceful Error Handling – Stops cleanly and logs the error if a request ultimately fails after retries.

πŸ“Š Data Source

USAJOBS Historic Job Announcements API

  • Authority: Official U.S. Office of Personnel Management (OPM) USAJOBS platform
  • Endpoint: data.usajobs.gov/api/historicjoa
  • Coverage: All U.S. federal job announcements posted within the queried date range
  • Data: Job title, hiring agency, position close date, and control number
  • Access: Public JSON API
  • Update Frequency: Reflects USAJOBS' current listings at time of run

βš™οΈ How It Works

The USAJOBS Government Jobs Scraper accepts an optional keyword, agency code, and lookback window, then queries the USAJOBS Historic Job Announcements API for all postings opened within that date range. Each returned announcement is normalized into a clean record with job ID, title, agency, deadline, and a direct link built from the position's control number. If a keyword is supplied, only announcements whose title contains that keyword are kept. The Actor pages through the full result set automatically using the API's continuation token, pushing each matched batch of USAJOBS Government Jobs records to the Apify Dataset as it goes.

Key Processing Steps:

  1. Input Parsing – Accept keyword, agency code, days-back window, and result cap
  2. Proxy Setup – Configure Apify residential proxy if enabled
  3. Date Range Calculation – Compute the start and end dates for the USAJOBS Government Jobs search
  4. Session Init – Create a Chrome-impersonated HTTP session for reliable API access
  5. Page Loop – Request successive pages of announcements using the continuation token
  6. Keyword Filtering – Skip any announcement whose title doesn't match the supplied keyword
  7. Record Normalization – Build a clean record with job ID, title, agency, deadline, and link
  8. Incremental Push – Push each page's matched USAJOBS Government Jobs records immediately
  9. Result Capping – Stop once maxResults is reached
  10. Continuation Token Extraction – Parse the next page token from the API's next link
  11. Rate Limiting – Apply a short delay between page requests
  12. Summary Logging – Report the total number of job announcements harvested

Key Benefits:

  • Pull USAJOBS Government Jobs announcements for any date range without manual searching
  • Filter federal job postings by agency or keyword to focus on relevant roles
  • Track new federal hiring activity over time
  • Feed job boards, workforce dashboards, or recruiting research pipelines
  • Automate recurring USAJOBS Government Jobs checks as new announcements are posted

πŸ“₯ Input

The Actor accepts the following input parameters:

FieldTypeDefaultDescription
keywordstring""Filter USAJOBS Government Jobs results by matching this keyword against the position title.
agencystring""Filter results to a specific hiring agency code.
daysBackinteger30Number of days back from today to search for open positions.
maxResultsinteger100Maximum number of USAJOBS Government Jobs records to collect.
proxyConfigurationobject{"useApifyProxy": true}Apify Proxy configuration.

Example Input:

{
"keyword": "data scientist",
"agency": "",
"daysBack": 30,
"maxResults": 150
}

Search All Agencies for a Keyword:

{
"keyword": "cybersecurity"
}

Search a Specific Agency Without a Keyword:

{
"agency": "TR00",
"daysBack": 60
}

πŸ“€ Output

The Actor pushes USAJOBS Government Jobs records with the following structure:

FieldTypeDescription
job_idstringUSAJOBS control number uniquely identifying the announcement
titlestringPosition title as posted
agencystringName of the hiring federal agency
deadlinestringPosition close date
linkstringDirect URL to the full USAJOBS Government Jobs listing page
scraped_atstringISO 8601 timestamp of when the record was scraped

Example USAJOBS Government Jobs Record:

{
"job_id": "789456123",
"title": "Data Scientist",
"agency": "Department of the Treasury",
"deadline": "2026-09-15",
"link": "https://www.usajobs.gov/job/789456123",
"scraped_at": "2026-08-17T09:00:00.000Z"
}

🧰 Technical Stack

  • API: USAJOBS Historic Job Announcements API (JSON format)
  • HTTP Client: curl_cffi with Chrome TLS fingerprint impersonation for reliable USAJOBS Government Jobs access
  • Pagination: Continuation-token-based pagination parsed from the API's next link
  • Date Handling: datetime/date with timezone-aware UTC timestamps
  • Async: asyncio with executor-run blocking requests for non-blocking page fetching
  • Proxy: Apify Proxy, optional via useApifyProxy
  • Logging: Apify Actor logging system
  • Platform: Apify Actor serverless environment

πŸ“Š Data Fields Explained

Identification

  • job_id / link: The unique USAJOBS control number and direct link to the full USAJOBS Government Jobs listing

Position Details

  • title: The official position title as posted on USAJOBS
  • agency: The federal agency hiring for this position

Timing

  • deadline: The position's application close date
  • scraped_at: When this USAJOBS Government Jobs record was collected

🎯 Use Cases

  • Federal Job Boards – Power a job board or newsletter with fresh USAJOBS Government Jobs listings
  • Workforce Research – Study federal hiring trends by agency or role type over time
  • Career Coaching – Help job seekers discover relevant federal opportunities matching their keywords
  • Recruiting Intelligence – Track which agencies are actively hiring for specific skill sets
  • Academic Research – Analyze public-sector employment patterns at scale
  • Policy Analysis – Monitor federal hiring activity as an economic or staffing indicator
  • Alert Systems – Build recurring keyword-based alerts for new federal job postings
  • Talent Sourcing – Identify open roles at target agencies for outreach or partnerships

πŸš€ Quick Start

1. Prepare Input

Go to Apify Console and enter:

{
"keyword": "software engineer",
"daysBack": 30,
"maxResults": 100
}

2. Run the Actor

Click Start. The Actor will:

  • Query USAJOBS for announcements opened within the date range
  • Filter titles by keyword and agency, if provided
  • Page through all matching results automatically
  • Push each batch of USAJOBS Government Jobs records to the Dataset

3. Monitor Progress

Console shows:

πŸ” Fetching USAJOBS from 2026-07-18 to 2026-08-17, filtering titles for 'software engineer'
πŸ“Š Matched 25/100 (scanned page of 500, 3200 total announcements in date range)
πŸ“Š Matched 61/100 (scanned page of 500, 3200 total announcements in date range)
πŸŽ‰ Complete! Successfully harvested 100 job announcements.

4. View & Download Results

  • Results Tab: All USAJOBS Government Jobs records
  • Export: JSON, CSV, Excel, or HTML
  • Filter: By agency, title, or deadline
  • API Access: Available via the Apify API

βš™οΈ Configuration

Keyword search, default window:

{
"keyword": "nurse"
}

Agency-specific search with longer window:

{
"agency": "VA00",
"daysBack": 90,
"maxResults": 200
}

No filters, most recent postings:

{
"daysBack": 7,
"maxResults": 50
}

πŸ“ˆ Performance

Processing Speed

  • One request per page of results, with automatic retry on connection failures
  • 0.3 second delay between page requests to reduce blocking
  • Stops automatically once maxResults is reached or no further pages exist

Resource Usage

  • Memory: Low, since no browser instance is launched
  • Network: One request per result page within the requested date range
  • Proxy: Optional residential proxy tunnel shared across the session for the run

⚠️ Important Notes

  • Fair Use: Respects the USAJOBS public API and applies pacing delays between requests
  • Public Data Only: Retrieves only publicly posted USAJOBS Government Jobs announcements
  • Legal: Not legal or employment advice β€” consult official USAJOBS listings before applying or making hiring decisions

Data Quality

  • Freshness: Reflects USAJOBS' listings at time of run
  • Completeness: Keyword filtering is title-only; some relevant postings with keywords only in the description may be excluded
  • Accuracy: Sourced directly from the official USAJOBS API
  • Verification: Always confirm deadlines and eligibility directly on the official USAJOBS listing before applying

Best Practices

  • Use specific keywords to narrow large date ranges to relevant USAJOBS Government Jobs postings
  • Combine agency and keyword filters together for the most targeted results
  • Increase daysBack for broader historical coverage, or keep it short for the freshest postings
  • Re-run periodically to catch newly posted announcements
  • Always verify application deadlines directly on the official USAJOBS site before submitting

Terms of Use:

  • Use for legitimate job search, research, and workforce analysis purposes
  • Respect the USAJOBS API's terms of use
  • Attribute USAJOBS/OPM as the original data source where required
  • Use data responsibly

Disclaimer: USAJOBS Government Jobs Scraper is provided as-is for research and informational purposes. Users are responsible for compliance with USAJOBS' terms of use. This is not legal or employment advice β€” always verify listings directly on the official USAJOBS website.


βš–οΈ USAJOBS Government Jobs Excellence

This Actor is optimized for USAJOBS Government Jobs research with:

  • βœ… Full date-range and agency-scoped search
  • βœ… Keyword title filtering
  • βœ… Continuation-token pagination for complete coverage
  • βœ… Incremental, real-time Dataset push
  • βœ… Retry logic with exponential backoff
  • βœ… Production-ready code