USAspending.gov/Test: Difference between revisions

From USApedia
No edit summary
No edit summary
Line 1: Line 1:
Provides total:
{{#get_web_data:  
{{#get_web_data:  
   |url=https://api.usaspending.gov/api/v2/federal_obligations/?fiscal_year=2024&funding_agency_id=95
   |url=https://api.usaspending.gov/api/v2/agency/012/?fiscal_year=2024
   |format=json
   |format=json
   |data=agency_name=agency_name,obligated_amount=obligated_amount
   |data=agency_name=name,spending=outlay_amount
}}
}}
== Department of Agriculture Spending ==
== Department of Agriculture Spending ==
* '''Agency''': {{#external_value:agency_name}}
* '''Agency''': {{#external_value:agency_name}}
* '''Obligated Amount''': {{#external_value:obligated_amount}} USD
Provides name correctly:
{{#get_web_data:  
{{#get_web_data:  
   |url=https://api.usaspending.gov/api/v2/agency/012/?fiscal_year=2024
   |url=https://api.usaspending.gov/api/v2/federal_obligations/?fiscal_year=2024&funding_agency_id=95
   |format=json
   |format=json
   |data=agency_name=name,spending=outlay_amount
   |data=agency_name=agency_name,obligated_amount=obligated_amount
}}
}}
== Department of Agriculture Spending ==
* '''Obligated Amount''': {{#external_value:obligated_amount}} USD
* '''Agency''': {{#external_value:agency_name}}
* '''Obligated Amount''': {{#external_value:spending}} USD

Revision as of 18:07, 20 February 2025

Error while fetching data from URL https://api.usaspending.gov/api/v2/agency/012/?fiscal_year=2024: $2.
Error fetching URL: SSL certificate problem: self signed certificate in certificate chain
There was a problem during the HTTP request: 0 Error

Department of Agriculture Spending

  • Agency: Error: no local variable "agency_name" has been set.
  • Obligated Amount: 117404591209.85 USD