Dev.to Machine Learning5h ago|Business & IndustryProducts & Services

Building a Federal Contract Search API with Win Rate Prediction

The article describes how the author built a free API that allows users to search US federal contract awards by company name and get a win-rate prediction based on historical data.

đź’ˇ

Why it matters

This API provides a valuable tool for companies looking to do business with the US federal government, by making it easier to search for and analyze contract data.

Key Points

  • 1Developed a free API to search federal contract awards and predict win rates
  • 2Uses data from USAspending.gov and a custom win-rate algorithm
  • 3Deployed the backend on Render using FastAPI and PostgreSQL
  • 4Entire stack is open-source and available on GitHub

Details

The author explains that the US government awards over $700 billion in contracts annually, but accessing and using this public data can be challenging. To address this, they built a free API called GovMatch that allows users to search for federal contract awards by company name and get a win-rate prediction based on historical data. The backend is built using FastAPI and PostgreSQL, and the win-rate logic counts recent contracts, groups them by agency, normalizes by lookback days, and returns a score from 0-100. The entire stack is open-source and available on GitHub, allowing users to clone, modify, or use the hosted API.

Like
Save
Read original
Cached
Comments
?

No comments yet

Be the first to comment

AI Curator - Daily AI News Curation

AI Curator

Your AI news assistant

Ask me anything about AI

I can help you understand AI news, trends, and technologies