Template:USAS obligation: Difference between revisions
(Created page with "{{#get_web_data: |url=https://api.usaspending.gov/api/v2/federal_obligations/?fiscal_year=2024&funding_agency_id={{{id}}} |format=json |data=agency_name=agency_name,obligated_amount=obligated_amount }} * '''Obligated Amount''': ${{formatnum:{{#external_value:obligated_amount}}}} USD") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#get_web_data: | {{#get_web_data: | ||
|url=https://api.usaspending.gov/api/v2/federal_obligations/?fiscal_year= | |url=https://api.usaspending.gov/api/v2/federal_obligations/?fiscal_year={{{year}}}&funding_agency_id={{{id}}} | ||
|format=json | |format=json | ||
|data=agency_name=agency_name,obligated_amount=obligated_amount | |data=agency_name=agency_name,obligated_amount=obligated_amount | ||
}} | }}${{formatnum:{{#external_value:obligated_amount}}}} USD<noinclude> | ||
{{Doc}} | |||
</noinclude> |
Latest revision as of 15:12, 21 February 2025
Error while fetching data from URL https://api.usaspending.gov/api/v2/federal_obligations/?fiscal_year={{{year}}}&funding_agency_id={{{id}}}: $2.
Error fetching URL: SSL certificate problem: self signed certificate in certificate chain
There was a problem during the HTTP request: 0 Error
Could not get URL https://api.usaspending.gov/api/v2/federal_obligations/?fiscal_year={{{year}}}&funding_agency_id={{{id}}} after 3 tries.$Error: no local variable "obligated_amount" has been set. USD
This template allows you pull obligations pulled from USAspending.gov using its API.
Values needed
- year = Fiscal year
- id = ID of the organization
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
year | year | no description | Number | suggested |
id | id | no description | Number | suggested |