api.congress.gov
api.congress.gov copied to clipboard
(nominations) `nominationType` is present on list but not details API
trafficstars
nominationType is provided on the nomination List API but it's not included in the nomination details API. I had expected the details API to include all of the list API's data.
List API
curl 'https://api.congress.gov/v3/nomination/118?format=json&limit=1&offset=0&api_key=<API_KEY>' \
{
"nominations": [
{
"citation": "PN1906",
"congress": 118,
"latestAction": {
"actionDate": "2024-07-08",
"text": "Received in the Senate and referred to the Committee on Armed Services."
},
"nominationType": {
"isMilitary": true
},
"number": 1906,
"organization": "Air Force",
"partNumber": "00",
"receivedDate": "2024-07-08",
"updateDate": "2024-07-18T10:14:13Z",
"url": "https://api.congress.gov/v3/nomination/118/1906?format=json"
}
],
"pagination": {
"count": 1995,
"next": "https://api.congress.gov/v3/nomination/118?offset=1&limit=1&format=json"
},
"request": {
"congress": "118",
"contentType": "application/json",
"format": "json"
}
}
Details API
curl 'https://api.congress.gov/v3/nomination/118/1906?format=json&api_key=<API_KEY>' \
{
"nomination": {
"actions": {
"count": 1,
"url": "https://api.congress.gov/v3/nomination/118/1906/actions?format=json"
},
"authorityDate": "2024-07-17",
"citation": "PN1906",
"committees": {
"count": 1,
"url": "https://api.congress.gov/v3/nomination/118/1906/committees?format=json"
},
"congress": 118,
"isList": true,
"latestAction": {
"actionDate": "2024-07-08",
"text": "Received in the Senate and referred to the Committee on Armed Services."
},
"nominees": [
{
"introText": "The following named officers for appointment in the United States Air Force to the grade indicated under title 10, U.S.C., section 624:",
"nomineeCount": 19,
"ordinal": 1,
"organization": "Air Force",
"positionTitle": "Major General",
"url": "https://api.congress.gov/v3/nomination/118/1906/1?format=json"
}
],
"number": 1906,
"partNumber": "00",
"receivedDate": "2024-07-08",
"updateDate": "2024-07-18T10:14:13Z"
},
"request": {
"congress": "118",
"contentType": "application/json",
"format": "json",
"number": "1906"
}
}