Route: /api/v2/references/agency/:id
Method: GET
This route sends a request to the backend to retrieve an agency's metadata
/api/v2/references/agency/261
id
- required - an integer representing the toptier agency ID to retrieve
{
"results": {
"agency_name": "Department of Labor",
"active_fy": "2017",
"active_fq": "2",
"outlay_amount": "4772.51",
"obligated_amount": "0.00",
"budget_authority_amount": "2945353.45",
"current_total_budget_authority_amount": "-1",
"mission": "To foster, promote, and develop the welfare of the wage earners, job seekers, and retirees of the United States; improve working conditions; advance opportunities for profitable employment; and assure work-related benefits and rights.",
"website": "https://www.dol.gov/",
"icon_filename": "DOL.jpg"
}
}
agency_name
: Agency name (most important)active_fy
: most recent fiscal year data is provided for that agencyactive_fq
: most recent fiscal quarter data is provided for that agencyoutlay_amount
: Agency's outlay amountobligated_amount
: Agency's obligated amountbudget_authority_amount
: Agency total budget authoritycurrent_total_budget_authority_amount
: Govenment total budget authority for the respective fiscal yearmission
: Agency's mission statementwebsite
: Agency's website URLicon
: URL to Agency's icon
NOTE:
- If agency id does not exist or agency has no corrisponding submissions
results
will be empty (i.e.,{}
) - If total_budget_authority_amount is not in the db, it returns a vaule of "-1"
Possible HTTP Status Codes:
- 500 : All other errors
{
"message": "Sample error message"
}