/usajobs/events/search
curl --request POST \
--url https://api.anysite.io/api/usajobs/events/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"count": 2,
"timeout": 300,
"event_type": [],
"is_online": true,
"hiring_path": [],
"agency": [
"<string>"
]
}
'import requests
url = "https://api.anysite.io/api/usajobs/events/search"
payload = {
"count": 2,
"timeout": 300,
"event_type": [],
"is_online": True,
"hiring_path": [],
"agency": ["<string>"]
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
count: 2,
timeout: 300,
event_type: [],
is_online: true,
hiring_path: [],
agency: ['<string>']
})
};
fetch('https://api.anysite.io/api/usajobs/events/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/usajobs/events/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 2,
'timeout' => 300,
'event_type' => [
],
'is_online' => true,
'hiring_path' => [
],
'agency' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/usajobs/events/search"
payload := strings.NewReader("{\n \"count\": 2,\n \"timeout\": 300,\n \"event_type\": [],\n \"is_online\": true,\n \"hiring_path\": [],\n \"agency\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/usajobs/events/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 2,\n \"timeout\": 300,\n \"event_type\": [],\n \"is_online\": true,\n \"hiring_path\": [],\n \"agency\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/usajobs/events/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 2,\n \"timeout\": 300,\n \"event_type\": [],\n \"is_online\": true,\n \"hiring_path\": [],\n \"agency\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "UsajobsEvent",
"event_title": "<string>",
"url": "<string>",
"date_display": "<string>",
"time_display": "<string>",
"location": "<string>",
"address": "<string>",
"is_online": true,
"website_url": "<string>",
"host": "<string>",
"hiring_paths": [],
"related_jobs": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/usajobs
/usajobs/events/search
Search upcoming US federal hiring and recruitment events listed on USAJOBS. Filter by event type (hiring or recruitment event, informational session, resume writing or interview training), online versus in-person, the hiring paths the event is aimed at, and the hosting agency. Each event carries its id, title, URL, date and time with timezone, venue and address (or online flag), registration website, full description, hosting organization, hiring-path badges and the related job announcements promoted at the event.
Price: 5 credits per 10 results
POST
/
api
/
usajobs
/
events
/
search
/usajobs/events/search
curl --request POST \
--url https://api.anysite.io/api/usajobs/events/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"count": 2,
"timeout": 300,
"event_type": [],
"is_online": true,
"hiring_path": [],
"agency": [
"<string>"
]
}
'import requests
url = "https://api.anysite.io/api/usajobs/events/search"
payload = {
"count": 2,
"timeout": 300,
"event_type": [],
"is_online": True,
"hiring_path": [],
"agency": ["<string>"]
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
count: 2,
timeout: 300,
event_type: [],
is_online: true,
hiring_path: [],
agency: ['<string>']
})
};
fetch('https://api.anysite.io/api/usajobs/events/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/usajobs/events/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 2,
'timeout' => 300,
'event_type' => [
],
'is_online' => true,
'hiring_path' => [
],
'agency' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/usajobs/events/search"
payload := strings.NewReader("{\n \"count\": 2,\n \"timeout\": 300,\n \"event_type\": [],\n \"is_online\": true,\n \"hiring_path\": [],\n \"agency\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/usajobs/events/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 2,\n \"timeout\": 300,\n \"event_type\": [],\n \"is_online\": true,\n \"hiring_path\": [],\n \"agency\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/usajobs/events/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 2,\n \"timeout\": 300,\n \"event_type\": [],\n \"is_online\": true,\n \"hiring_path\": [],\n \"agency\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "UsajobsEvent",
"event_title": "<string>",
"url": "<string>",
"date_display": "<string>",
"time_display": "<string>",
"location": "<string>",
"address": "<string>",
"is_online": true,
"website_url": "<string>",
"host": "<string>",
"hiring_paths": [],
"related_jobs": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Required range:
x >= 1Required range:
20 <= x <= 1500Available options:
7, 8, 9 Available options:
public, fed-competitive, fed-excepted, fed-internal-search, fed-transition, land, vet, mspouse, nguard, student, graduates, ses, disability, overseas, native, peace, special-authorities Response
Successful Response
Show child attributes
Show child attributes