{"ok": true, "database": "openregs", "query_name": "spending_by_agency", "rows": [["Department of Education", "Department of Education", "grants", 37044, 818579139008.18, 22097482.426524676], ["Department of Energy", "Department of Energy", "contracts", 23700, 777706320734.09, 32814612.689202107], ["Department of Veterans Affairs", "Department of Veterans Affairs", "contracts", 42858, 453607466722.39, 10583962.544271547], ["Department of Transportation", "Federal Highway Administration", "grants", 31364, 363573693390.17, 11592070.315972771], ["National Aeronautics and Space Administration", "National Aeronautics and Space Administration", "contracts", 47448, 290846261979.44, 6129789.706192885], ["Department of Homeland Security", "Federal Emergency Management Agency", "grants", 38598, 272557008563.95, 7061428.275142495], ["Department of Transportation", "Federal Transit Administration", "grants", 6053, 218686781550.55, 36128660.424673714], ["Department of Housing and Urban Development", "Assistant Secretary for Community Planning and Development", "grants", 23658, 166173916486.81, 7024005.261932962], ["Environmental Protection Agency", "Environmental Protection Agency", "grants", 24306, 122317883024.0, 5032415.165967251], ["Department of Labor", "Employment and Training Administration", "grants", 11900, 102012054602.26, 8572441.563215125], ["Department of Energy", "Department of Energy", "grants", 23336, 92929905254.94, 3982255.110341961], ["Department of Housing and Urban Development", "Assistant Secretary for Public and Indian Housing", "grants", 26368, 76636245740.77, 2906411.018688183], ["Department of Homeland Security", "U.S. Customs and Border Protection", "contracts", 5763, 76309382157.66, 13241260.134940136], ["Department of Transportation", "Federal Aviation Administration", "grants", 31354, 73159122564.65, 2333326.6111070355], ["Department of Transportation", "Federal Railroad Administration", "grants", 432, 68302104913.95, 158106724.3378472], ["Department of Transportation", "Federal Aviation Administration", "contracts", 45909, 68146703059.95, 1484386.570388159], ["Department of Commerce", "National Institute of Standards and Technology", "grants", 3168, 48638137576.41, 15352947.467301138], ["Department of Homeland Security", "Office of Procurement Operations", "contracts", 7427, 44789496607.71, 6030631.022985054], ["Department of Homeland Security", "U.S. Coast Guard", "contracts", 9807, 43550961748.91, 4440803.686031407], ["Department of Justice", "Office of Justice Programs", "grants", 27664, 43198167179.91, 1561530.0455433056], ["Department of Education", "Department of Education", "contracts", 6693, 36696111902.33, 5482759.883808457], ["Department of Homeland Security", "U.S. Immigration and Customs Enforcement", "contracts", 3275, 36491848207.32, 11142549.070937404], ["Department of Homeland Security", "Federal Emergency Management Agency", "contracts", 36022, 31359652003.69, 870569.4298953417], ["Department of Veterans Affairs", "Under Secretary for Health/Veterans Health Administration", "grants", 8831, 30637945182.72, 3469363.059984147], ["Department of Labor", "Office of the Assistant Secretary for Administration and Management", "contracts", 9934, 26266417757.2, 2644092.7881216025], ["Department of Homeland Security", "Transportation Security Administration", "contracts", 2355, 25815082773.37, 10961818.587418258], ["Department of Commerce", "National Oceanic and Atmospheric Administration", "contracts", 38841, 25301669366.88, 651416.5280729127], ["Environmental Protection Agency", "Environmental Protection Agency", "contracts", 27942, 21893765224.5, 783543.2404444922], ["Department of Justice", "Federal Bureau of Investigation", "contracts", 7335, 21878536271.75, 2982758.864587594], ["Department of Justice", "Federal Prison System / Bureau of Prisons", "contracts", 22744, 21791447186.74, 958118.5009998243], ["Department of the Interior", "U.S. Fish and Wildlife Service", "grants", 30986, 19965556384.15, 644341.1987397535], ["Department of Justice", "Offices, Boards and Divisions", "contracts", 9176, 18461975194.6, 2011985.0909546642], ["Department of Health and Human Services", "Food and Drug Administration", "contracts", 20167, 18283144191.0, 906587.2063767541], ["Department of Commerce", "National Oceanic and Atmospheric Administration", "grants", 10552, 18277286998.19, 1732115.9020271038], ["National Aeronautics and Space Administration", "National Aeronautics and Space Administration", "grants", 23866, 15391013329.64, 644892.8739478756], ["Department of Homeland Security", "U.S. Citizenship and Immigration Services", "contracts", 1344, 15387219782.22, 11448824.242723214], ["Department of Transportation", "Federal Highway Administration", "contracts", 6825, 13841329867.710001, 2028033.6802505497], ["Department of Justice", "U.S. Marshals Service", "contracts", 4097, 13726032771.91, 3350264.2840883574], ["Department of Housing and Urban Development", "Department of Housing and Urban Development", "contracts", 4670, 12605612239.6, 2699274.5695074946], ["Department of Commerce", "U.S. Patent and Trademark Office", "contracts", 3343, 10595425744.86, 3169436.358019743], ["Department of Commerce", "U.S. Census Bureau", "contracts", 2735, 10300111685.81, 3766037.17945521], ["Department of Commerce", "Economic Development Administration", "grants", 6643, 9147050547.99, 1376945.7395739877], ["Department of Justice", "Offices, Boards and Divisions", "grants", 12712, 8877271420.93, 698337.9028421964], ["Department of Transportation", "Maritime Administration", "contracts", 4951, 8468282810.18, 1710418.664952535], ["Department of Transportation", "National Highway Traffic Safety Administration", "grants", 6109, 8101414367.21, 1326144.1098723195], ["Department of Justice", "Drug Enforcement Administration", "contracts", 3767, 5861234431.5, 1555942.2435625165], ["Department of Commerce", "Office of the Secretary", "contracts", 8714, 5411500944.98, 621012.2727771401], ["Small Business Administration", "Small Business Administration", "contracts", 3227, 4757362801.63, 1474237.0008149985], ["Department of Labor", "Employment and Training Administration", "contracts", 577, 4755204720.45, 8241256.014644714], ["Department of Transportation", "Immediate Office of the Secretary of Transportation", "contracts", 2467, 3966110863.71, 1607665.5304864207], ["Department of Commerce", "National Institute of Standards and Technology", "contracts", 8174, 3803177635.15, 465277.42049792025], ["Department of the Interior", "U.S. Fish and Wildlife Service", "contracts", 30093, 3500925315.86, 116336.8662433124], ["Department of Justice", "Bureau of Alcohol, Tobacco, Firearms and Explosives Acquisition and Property Management Division", "contracts", 1344, 3288018872.04, 2446442.613125], ["Department of Homeland Security", "Federal Law Enforcement Training Center", "contracts", 621, 3229414191.79, 5200344.9143156195], ["Department of Homeland Security", "U.S. Secret Service", "contracts", 1138, 3216535903.94, 2826481.462161687], ["Department of Agriculture", "Animal and Plant Health Inspection Service", "grants", 10823, 3159575195.12, 291931.5527229049], ["Department of Transportation", "Federal Motor Carrier Safety Administration", "grants", 353, 3088546035.29, 8749422.196288953], ["Department of Agriculture", "Animal and Plant Health Inspection Service", "contracts", 19636, 3084795485.8, 157098.97564677126], ["Department of Transportation", "Maritime Administration", "grants", 171, 3058803796.86, 17887741.502105262], ["Small Business Administration", "Small Business Administration", "grants", 5030, 3021134494.39, 600623.159918489], ["Department of Labor", "Veterans Employment and Training Services", "grants", 2094, 2762698361.25, 1319340.1916189112], ["Department of Transportation", "National Highway Traffic Safety Administration", "contracts", 2369, 2722761723.18, 1149329.558117349], ["Department of Health and Human Services", "Food and Drug Administration", "grants", 2090, 2682307141.75, 1283400.546291866], ["Department of Housing and Urban Development", "Office of Lead Hazard Control and Healthy Homes", "grants", 858, 2523990769.64, 2941714.1837296034], ["Department of Commerce", "National Telecommunications and Information Administration", "grants", 280, 2452711260.85, 8759683.074464286], ["Department of Justice", "Federal Prison Industries / Unicor", "contracts", 3611, 2334736271.04, 646562.2462032678], ["Department of Justice", "Office of Justice Programs", "contracts", 851, 2058686837.02, 2419138.468883666], ["Department of Labor", "Occupational Safety and Health Administration", "grants", 1756, 1706199002.55, 971639.5230922551], ["Department of Housing and Urban Development", "Assistant Secretary for Housing--Federal Housing Commissioner", "grants", 911, 1679691608.25, 1843788.8125686059], ["Department of Transportation", "Federal Transit Administration", "contracts", 1321, 1592035972.16, 1205174.8464496594], ["Department of Energy", "Federal Energy Regulatory Commission", "contracts", 1259, 1270173532.87, 1008874.9268228752], ["Department of Homeland Security", "U.S. Coast Guard", "grants", 840, 1256887317.01, 1496294.4250119047], ["Department of Transportation", "Federal Railroad Administration", "contracts", 1111, 1054841573.8199999, 949452.3616741673], ["Department of Transportation", "Immediate Office of the Secretary of Transportation", "grants", 128, 1044287402.54, 8158495.33234375], ["Department of Transportation", "Federal Motor Carrier Safety Administration", "contracts", 502, 1005187243.41, 2002365.0267131473], ["Department of Transportation", "Pipeline and Hazardous Materials Safety Administration", "grants", 85, 757368677.2, 8910219.731764706], ["Department of Labor", "Bureau of Labor Statistics", "grants", 912, 665046703.42, 729217.8765570174], ["Department of Veterans Affairs", "Directory/National Cemetery Administration", "grants", 224, 625690609.53, 2793261.6496874997], ["Department of Transportation", "Pipeline and Hazardous Materials Safety Administration", "contracts", 411, 606604122.98, 1475922.4403406326], ["Department of Homeland Security", "Office of the Inspector General", "contracts", 126, 427531054.82, 3393103.6096825395], ["Department of Homeland Security", "Countering Weapons of Mass Destruction", "grants", 112, 422765290.27, 3774690.0916964286], ["Department of Housing and Urban Development", "Assistant Secretary for Fair Housing and Equal Opportunity", "grants", 365, 395175155.47, 1082671.6588219178], ["Department of Commerce", "Minority Business Development Agency", "grants", 339, 377588483.31, 1113830.3342477877], ["Department of Homeland Security", "Office of the Under Secretary for Science and Technology", "grants", 69, 271293603.18, 3931791.350434783], ["Department of Labor", "Office of the Assistant Secretary for Administration and Management", "grants", 129, 250648933.41, 1943014.9876744186], ["Department of Housing and Urban Development", "Assistant Secretary for Policy Development and Research", "grants", 103, 230445356.41, 2237333.557378641], ["Department of Homeland Security", "Cybersecurity and Infrastructure Security Agency", "grants", 23, 224087364.35, 9742928.884782609], ["Department of Labor", "Bureau of Labor Statistics", "contracts", 836, 159629774.68, 190944.70655502393], ["Department of Transportation", "Saint Lawrence Seaway Development Corporation", "contracts", 122, 144300858.98, 1182793.9260655737], ["Department of Homeland Security", "Immediate Office of the Under Secretary for Management", "grants", 220, 144134557.42, 655157.0791818182], ["Department of Labor", "Office of Inspector General", "contracts", 678, 118447780.46, 174701.7410914454], ["Department of Homeland Security", "Department of Homeland Security", "grants", 71, 104669860.58, 1474223.3884507043], ["Department of Labor", "Mine Safety and Health Administration", "grants", 568, 103276200.44, 181824.29654929577], ["Department of Labor", "President's Committee on Employment of the Handicapped", "grants", 16, 101827386.87, 6364211.679375], ["Department of Homeland Security", "U.S. Citizenship and Immigration Services", "grants", 291, 88242712.59, 303239.56216494844], ["Department of Energy", "Assistant Secretary for Fossil Energy", "grants", 60, 69281084.04, 1154684.7340000002], ["Department of Justice", "Office of the Inspector General", "contracts", 92, 39579373.2, 430210.5782608696], ["Department of Labor", "Mine Safety and Health Administration", "contracts", 688, 36020512.81, 52355.3965261628], ["Department of Labor", "Office of Job Corps", "grants", 26, 25379855.72, 976148.2969230769], ["Department of Veterans Affairs", "Department of Veterans Affairs", "grants", 17, 25250886.0, 1485346.2352941176], ["Department of Homeland Security", "U.S. Secret Service", "grants", 1, 21850000.0, 21850000.0], ["Department of Energy", "Assistant Secretary for Conservation and Renewable Energy", "grants", 19, 19550516.63, 1028974.5594736842], ["Department of Commerce", "International Trade Administration", "grants", 53, 11754375.31, 221780.6662264151], ["Department of Veterans Affairs", "Under Secretary for Benefits/Veterans Benefits Administration", "grants", 41, 11641910.68, 283949.04097560974], ["Department of Commerce", "Department of Commerce", "contracts", 3, 7441388.6899999995, 2480462.8966666665], ["Department of Commerce", "U.S. Census Bureau", "grants", 5, 5283764.51, 1056752.902], ["Department of Homeland Security", "Office of Procurement Operations", "grants", 2, 2799249.6100000003, 1399624.8050000002], ["Department of Homeland Security", "U.S. Immigration and Customs Enforcement", "grants", 2, 2438201.91, 1219100.955], ["Department of Housing and Urban Development", "Chief Procurement Officer", "contracts", 1, 1152672.0, 1152672.0], ["Department of Housing and Urban Development", "Department of Housing and Urban Development", "grants", 1, 576808.0, 576808.0], ["Department of Energy", "Assistant Secretary for Congressional and Intergovernmental Affairs", "grants", 3, 360307.0, 120102.33333333333]], "truncated": false, "columns": ["agency", "sub_agency", "award_category", "award_count", "total_amount", "avg_amount"], "query": {"sql": "SELECT agency, sub_agency, award_category, award_count, total_amount, avg_amount FROM spending_by_agency ORDER BY total_amount DESC", "params": {}}, "error": null, "private": false, "allow_execute_sql": true, "query_ms": 1.137882936745882, "source": "Federal Register API & Regulations.gov API", "source_url": "https://www.federalregister.gov/developers/api/v1", "license": "Public Domain (U.S. Government data)", "license_url": "https://www.regulations.gov/faq"}