Tutorials - Dynamic Job Search
This tutorial will show you how to use the USAJOBS dynamic job search to provide JOA search results as a separate window.
Step 1: Set up a request and define query parameters
The base url for the Dynamic Search API is http://usajobs.gov/JobSearch/Search/GetResults. Query parameters will be appended to the base URL to drive the specific results desired. The full list of acceptable query parameters can be found at: GET /JobSearch/Search. For the purpose of this tutorial, we will perform a search for Information Technology Management jobs which are defined by Occupational Series "2210". A complete list of Occupational Series codes can be found at: API-Reference/GET-codelist-occupationalseries.
var url = 'http://usajobs.gov/JobSearch/Search/GetResults?Series=2210';
Step 2: Execute search and display results
We have set up the URL and defined what we are searching for (Search Criteria: Jobs that have an occupational series "2210", Information Technology Management). Now, let's execute the search and view the results.
var url = 'http://usajobs.gov/JobSearch/Search/GetResults?Series=2210'; window.open(url, '_blank');
Step 3: Combine query parameters to refine search
You can use any combination of query parameters to further refine your search.
Let's take our current search for Information Technology Management positions and filter the results by using the MinSalary, MaxSalary, and LocationID query parameters.
MinSalary: 35000 MaxSalary: 95000 LocationID: 110010001 (Washington, DC)
var url = 'http://usajobs.gov/JobSearch/Search/GetResults?Series=2210&MinSalary=35000&MaxSalary=95000&LocationID=110010001'; window.open(url, '_blank');