Federal Contract Award Data (USASpending) via API
When developing tools for federal procurement analytics or business development within the government sector, having access to contract award data is invaluable. The U.S. ASBESTOS Spending API, available at verilexdata.com, provides a gateway to this critical information.
Problem: Searching by Agency, Vendor, or NAICS Code
Often, developers need to filter through contracts based on specific criteria such as the agency, vendor name, or North American Industry Classification System (NAICS) code. This filtering helps in understanding which contracts are awarded to whom and under what industry category.
Example of Python Code for Filtering Contracts by Agency:
import requests
def get_contracts_by_agency(agency_code):
url = f"https://verilexdata.com/api/v1/contracts?agencies={agency_code}"
response = requests.get(url)
if response.status_code == 200:
return response.json()
else:
print(f"Failed to fetch contracts. Status code: {response.status_code}")
return None
# Example usage
contracts_by_dod = get_contracts_by_agency('DOD')
if contracts_by_dod:
for contract in contracts_by_dod:
print(contract)
Using the API Endpoint: verilexdata.com
By utilizing the
Top comments (0)