{"openapi":"3.1.0","info":{"title":"DOGE API","version":"0.0.2-beta","description":"The DOGE API allows for programmatic access to Government transparency. This API is in beta and subject to change."},"tags":[{"name":"Savings","description":"Grants, contracts and leases the Department of Government Efficiency has cancelled."},{"name":"Payments","description":"Payments made by the US Government. Currently, this includes a limited amount of grant payments issued from the Program Support Center, but will expand to include all payments from the US Government."}],"components":{"schemas":{},"parameters":{}},"paths":{"/savings/grants":{"get":{"tags":["Savings"],"summary":"Get grant savings","operationId":"get_GrantSavings","parameters":[{"schema":{"type":"string","enum":["savings","value","date"],"description":"The field to sort by"},"required":false,"description":"The field to sort by","name":"sort_by","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"description":"The order to sort by"},"required":false,"description":"The order to sort by","name":"sort_order","in":"query"},{"schema":{"type":"number","minimum":1,"default":1,"description":"The page number to check"},"required":false,"description":"The page number to check","name":"page","in":"query"},{"schema":{"type":"number","maximum":500,"minimum":1,"default":100,"description":"The number of items per page from 1 to 500"},"required":false,"description":"The number of items per page from 1 to 500","name":"per_page","in":"query"}],"responses":{"200":{"description":"Returns the grant savings","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{"grants":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","description":"The cancellation date of the grant","example":"2/7/2025"},"agency":{"type":"string","description":"The agency of the grant","example":"Department Of Education"},"recipient":{"type":"string","description":"The recipient of the grant","example":"Virginia Commonwealth University"},"value":{"type":"number","description":"The dollar value of the grant","example":"9475685"},"savings":{"type":"number","description":"The savings on the grant","example":"8463038"},"link":{"type":["string","null"],"description":"The link to the grant on usaspending.gov","example":"https://www.usaspending.gov/award/1234567890"},"description":{"type":["string","null"],"description":"The description of the grant","example":"This grant is for the construction of a new building on the campus of Virginia Commonwealth University."}},"required":["date","agency","recipient","value","savings","link","description"]}}},"required":["grants"]},"meta":{"type":"object","properties":{"total_results":{"type":"number","description":"The total amount of results"},"pages":{"type":"number","description":"The total amount of pages at current per_page limit"}},"required":["total_results","pages"]}},"required":["success","result","meta"]}}}},"400":{"description":"Schema validation error. Please check the documentation and try again.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"Schema validation error. Please check the documentation and try again."}},"required":["success","message"]}}}},"429":{"description":"Rate limit exceeded. Please try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"Rate limit exceeded. Please try again later."}},"required":["success","message"]}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"An error occurred while processing your request. We're on it."}},"required":["success","message"]}}}}}}},"/savings/contracts":{"get":{"tags":["Savings"],"summary":"Get contract savings","operationId":"get_ContractSavings","parameters":[{"schema":{"type":"string","enum":["savings","value","date"],"description":"The field to sort by"},"required":false,"description":"The field to sort by","name":"sort_by","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"description":"The order to sort by"},"required":false,"description":"The order to sort by","name":"sort_order","in":"query"},{"schema":{"type":"number","minimum":1,"default":1,"description":"The page number to check"},"required":false,"description":"The page number to check","name":"page","in":"query"},{"schema":{"type":"number","maximum":500,"minimum":1,"default":100,"description":"The number of items per page from 1 to 500"},"required":false,"description":"The number of items per page from 1 to 500","name":"per_page","in":"query"}],"responses":{"200":{"description":"Returns the contract savings","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{"contracts":{"type":"array","items":{"type":"object","properties":{"piid":{"type":"string","description":"The PIID of the contract","example":"47QDCB21F0019"},"agency":{"type":"string","description":"The agency of the contract","example":"General Services Administration"},"vendor":{"type":"string","description":"The vendor of the contract","example":"Eagle Hill"},"value":{"type":"number","description":"The value of the contract","example":1250243.2},"description":{"type":["string","null"],"description":"The description of the contract","example":"Strategic communication and change management support."},"fpds_status":{"type":["string","null"],"description":"The status of the contract in FPDS","example":"OTHER ADMINISTRATIVE ACTION"},"fpds_link":{"type":["string","null"],"description":"The link to the contract in FPDS","example":"https://www.fpds.gov/ezsearch/jsp/viewLinkController.jsp?agencyID=4732&PIID=47QDCB21F0019&modNumber=P00005&idvAgencyID=&idvPIID=GS10F0083V&contractType=AWARD"},"deleted_date":{"type":["string","null"],"description":"The date the contract was deleted","example":"2/3/2025"},"savings":{"type":"number","description":"The savings of the contract","example":969654.4}},"required":["piid","agency","vendor","value","description","fpds_status","fpds_link","deleted_date","savings"]}}},"required":["contracts"]},"meta":{"type":"object","properties":{"total_results":{"type":"number","description":"The total amount of results"},"pages":{"type":"number","description":"The total amount of pages at current per_page limit"}},"required":["total_results","pages"]}},"required":["success","result","meta"]}}}},"400":{"description":"Schema validation error. Please check the documentation and try again.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"Schema validation error. Please check the documentation and try again."}},"required":["success","message"]}}}},"429":{"description":"Rate limit exceeded. Please try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"Rate limit exceeded. Please try again later."}},"required":["success","message"]}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"An error occurred while processing your request. We're on it."}},"required":["success","message"]}}}}}}},"/savings/leases":{"get":{"tags":["Savings"],"summary":"Get lease savings","operationId":"get_LeaseSavings","parameters":[{"schema":{"type":"string","enum":["savings","value","date"],"description":"The field to sort by"},"required":false,"description":"The field to sort by","name":"sort_by","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"description":"The order to sort by"},"required":false,"description":"The order to sort by","name":"sort_order","in":"query"},{"schema":{"type":"number","minimum":1,"default":1,"description":"The page number to check"},"required":false,"description":"The page number to check","name":"page","in":"query"},{"schema":{"type":"number","maximum":500,"minimum":1,"default":100,"description":"The number of items per page from 1 to 500"},"required":false,"description":"The number of items per page from 1 to 500","name":"per_page","in":"query"}],"responses":{"200":{"description":"Returns the lease savings","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{"leases":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","description":"The cancelled date of the lease","example":"1/22/25"},"location":{"type":"string","description":"The rough city and state of the lease","example":"Miami, FL"},"sq_ft":{"type":"number","description":"The square footage of the property","example":3076},"description":{"type":["string","null"],"description":"The description of the status of the lease","example":"Lease end date 2/28/25."},"value":{"type":"number","description":"The dollar value of the lease for the next year","example":112278},"savings":{"type":"number","description":"The dollar value remaining on the lease at the time cancellation is effective","example":7383},"agency":{"type":"string","description":"The agency using the property","example":"Department of State"}},"required":["date","location","sq_ft","description","value","savings","agency"]}}},"required":["leases"]},"meta":{"type":"object","properties":{"total_results":{"type":"number","description":"The total amount of results"},"pages":{"type":"number","description":"The total amount of pages at current per_page limit"}},"required":["total_results","pages"]}},"required":["success","result","meta"]}}}},"400":{"description":"Schema validation error. Please check the documentation and try again.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"Schema validation error. Please check the documentation and try again."}},"required":["success","message"]}}}},"429":{"description":"Rate limit exceeded. Please try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"An error occurred while processing your request. We're on it."}},"required":["success","message"]}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"An error occured while processing your request. We're on it."}},"required":["success","message"]}}}}}}},"/payments":{"get":{"tags":["Payments"],"summary":"Get payment line items from a subset of agencies using Program Management Service, including payment justifications.","operationId":"get_Payments","parameters":[{"schema":{"type":"string","enum":["amount","date"],"description":"The field to sort by"},"required":false,"description":"The field to sort by","name":"sort_by","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"description":"The order to sort by"},"required":false,"description":"The order to sort by","name":"sort_order","in":"query"},{"schema":{"type":"number","minimum":1,"default":1,"description":"The page number to check"},"required":false,"description":"The page number to check","name":"page","in":"query"},{"schema":{"type":"number","maximum":500,"minimum":1,"default":100,"description":"The number of items per page from 1 to 500"},"required":false,"description":"The number of items per page from 1 to 500","name":"per_page","in":"query"},{"schema":{"type":"string","enum":["agency_name","date","org_name"],"description":"The field to filter by"},"required":false,"description":"The field to filter by","name":"filter","in":"query"},{"schema":{"type":"string","description":"The value to filter by"},"required":false,"description":"The value to filter by","name":"filter_value","in":"query"}],"responses":{"200":{"description":"Returns the payment line items","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{"payments":{"type":"array","items":{"type":"object","properties":{"payment_date":{"type":"string","description":"The date of the payment","example":"2025-04-17"},"payment_amt":{"type":"number","description":"The dollar value of the payment","example":440891},"agency_name":{"type":"string","description":"The name of the agency which made this payment","example":"HHS-ADMINISTRATION FOR COMMUNITY LIVING"},"award_description":{"type":["string","null"],"description":"A description of the award","example":"FY2025 (OAFC) OLDER AMERICANS ACT TITLE III - FAMILY CAREGIVERS"},"fain":{"type":["string","null"],"description":"The Federal Award Identification Number","example":"2501CTOAFC"},"recipient_justification":{"type":"string","description":"The recipient's payment justification","example":"Payment to the Area Agencies on Aging (AAAs) for providing Family Caregivers programs as authorized under the older Americans Act. This is necessary because it funds a range of supports that assist family and informal caregivers to care for their loved ones at home for as long as possible. These services are information to caregivers about available services, assistance to caregivers in gaining access to the services, individual counseling, organization of support groups, and caregiver training, respite care, and supplemental services on a limited basis.\n"},"agency_lead_justification":{"type":"string","description":"The agency's payment justification","example":"Grantee is drawing Federal funds under this award to conduct Older Americans Act Title III E award activities within the defined grant period of performance."},"org_name":{"type":["string","null"],"description":"The name of the organization which received the payment","example":"CONNECTICUT STATE DEPT OF REHABILITATION SERVICES"},"generated_unique_award_id":{"type":["string","null"],"description":"The unique award ID generated by the Program Support Center","example":"ASST_NON_2501CTOAFC_7577"}},"required":["payment_date","payment_amt","agency_name","award_description","fain","recipient_justification","agency_lead_justification","org_name","generated_unique_award_id"]}}},"required":["payments"]},"meta":{"type":"object","properties":{"total_results":{"type":"number","description":"The total amount of results"},"pages":{"type":"number","description":"The total amount of pages at current per_page limit"}},"required":["total_results","pages"]}},"required":["success","result","meta"]}}}},"400":{"description":"Schema validation error. Please check the documentation and try again.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"Schema validation error. Please check the documentation and try again."}},"required":["success","message"]}}}},"429":{"description":"Rate limit exceeded. Please try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"Rate limit exceeded. Please try again later."}},"required":["success","message"]}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"An error occurred while processing your request. We're on it."}},"required":["success","message"]}}}}}}},"/payments/statistics":{"get":{"tags":["Payments"],"summary":"Get payment statistics","operationId":"get_PaymentCounts","responses":{"200":{"description":"Returns the payment statistics","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{"agency":{"type":"array","items":{"type":"object","properties":{"agency_name":{"type":"string","example":"HHS-ADMINISTRATION FOR COMMUNITY LIVING"},"count":{"type":"number","example":100}},"required":["agency_name","count"]}},"request_date":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","example":"2025-04-17"},"count":{"type":"number","example":100}},"required":["date","count"]}},"org_names":{"type":"array","items":{"type":"object","properties":{"org_name":{"type":"string","example":"CONNECTICUT STATE DEPT OF REHABILITATION SERVICES"},"count":{"type":"number","example":100}},"required":["org_name","count"]}}},"required":["agency","request_date","org_names"]}},"required":["success","result"]}}}},"400":{"description":"Schema validation error. Please check the documentation and try again.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"Schema validation error. Please check the documentation and try again."}},"required":["success","message"]}}}},"429":{"description":"Rate limit exceeded. Please try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"Rate limit exceeded. Please try again later."}},"required":["success","message"]}}}},"500":{"description":"An error occurred while processing the request","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":"false"},"message":{"type":"string","example":"An error occurred while processing your request. We're on it."}},"required":["success","message"]}}}}}}}},"webhooks":{}}