48,427 active US federal prime contracts with a potential value of $1M or more reach their end date in calendar year 2027. Together they carry $1,568.58B of potential value and 14,169 incumbents across 65 agencies. Every one of them is a recompete, an option decision or a follow on that a capture team can plan for now, a year or more before the solicitation posts.

This guide pulls that list apart in Python: first with a free 5,000 row open sample, then with the full list over an API.

Where the 48,427 sit

Counts from the full list on SpecStream, built from USAspending.gov prime award records read on December 4, 2026:

Agency Contracts over $1M ending in 2027
Department of Defense 23,080
Veterans Affairs 4,684
Health and Human Services 3,095
Homeland Security 3,047
General Services Administration 1,633
Transportation 1,538
Justice 1,417
NASA 809
Energy 647

A few things stand out:

  • The value is concentrated. 1,839 contracts of $100M or more hold $1,114.2B, about 71% of the potential value. 156 are over $1B.
  • September is the cliff. 9,531 contracts end in September 2027, the close of the federal fiscal year, against 3,515 in August and 1,576 in October.
  • Small business holds more than half. 26,569 of the 48,427 went to small businesses. 5,998 were small business set asides, 2,817 were 8(a), 2,255 were service disabled veteran owned, 377 women owned and 162 HUBZone.
  • Professional services lead. 541330 Engineering Services (4,780), 541519 Other Computer Related Services (4,281) and 541715 R&D in the physical, engineering and life sciences (4,093) are the commonest NAICS codes. Virginia (8,531), DC (5,164) and Maryland (4,454) are where the work is done most.

The $1M line leaves out a lot of 2027 work. All contracts expiring in 2027 number 233,285, and NASA alone has 3,115 contracts of every size ending in 2027, of which 809 are over $1M.

Step 1: load the open sample

The sample is 5,000 of the 48,427 rows under CC BY 4.0, with the same columns: award ID, incumbent and UEI, agency and sub agency, NAICS, potential and obligated value, set aside, business size, place of performance, dates, a short description and the USAspending award page. It is on Zenodo (DOI 10.5281/zenodo.24825654), Hugging Face, Kaggle and GitHub.

import pandas as pd URL = ("https://huggingface.co/datasets/SpecStreamAI/us-federal-expiring-contracts-2027" "/resolve/main/data/us_federal_contracts_over_1m_expiring_2027.csv") # Read everything as text first: award IDs and NAICS codes must keep their leading zeros. df = pd.read_csv(URL, dtype=str, keep_default_na=False) for col in ("potential_value_usd", "total_obligated_usd"): df[col] = df[col].astype("int64") df["expiration_date"] = pd.to_datetime(df["expiration_date"]) print(len(df), df["agency"].nunique(), df["incumbent_uei"].nunique()) # 5000 65 3094 

One thing to know before you aggregate: the sample is not proportional. Defense is capped at 1,600 rows and every agency keeps at least 15, so a small agency is easy to study. Inside each agency the rows run at even steps from its largest award down to $1M. Use the sample to build and test your filters, and the full list for counts.

Step 2: cut a capture list

A typical question from a capture team: which IT services contracts at Veterans Affairs end in 2027, who holds them, and how much is the work worth?

it_va = df[ df["naics_code"].str.startswith("5415") & df["agency"].eq("Department of Veterans Affairs") ].sort_values("potential_value_usd", ascending=False) print(len(it_va), f"${it_va['potential_value_usd'].sum() / 1e9:.2f}B") print( it_va.groupby("incumbent_contractor")["potential_value_usd"] .agg(["count", "sum"]) .sort_values("sum", ascending=False) .head(5) ) 

In the sample that is 92 contracts and $6.22B. The full list holds 740 such contracts worth $36.2B.

Set aside work cuts the same way. This finds SDVOSB and 8(a) awards that end in the first half of 2027, soonest first, which is the window where a sources sought or a draft RFP is most likely already moving:

sa = df["set_aside"].str.lower() early = df[ (sa.str.contains("service disabled") | sa.str.contains("sdvosb") | sa.str.contains("8\\(a\\)") | sa.str.startswith("8a")) & (df["expiration_date"] < "2027-07-01") ].sort_values("expiration_date") print(early[["expiration_date", "incumbent_contractor", "agency", "naics_code", "potential_value_usd", "set_aside", "usaspending_url"]].head(10).to_string(index=False)) 

And incumbency: everything one competitor or teaming partner holds that ends next year, by UEI so name variants do not split it.

def incumbent_book(name_part: str) -> pd.DataFrame: ueis = df.loc[df["incumbent_contractor"].str.contains(name_part, case=False), "incumbent_uei"].unique() book = df[df["incumbent_uei"].isin(ueis)].sort_values("expiration_date") return book[["expiration_date", "award_id", "agency", "naics_code", "potential_value_usd"]] print(incumbent_book("booz allen").head(10).to_string(index=False)) 

If you prefer a command line, the GitHub repository has capture_filter.py, which does the same cuts with no dependencies:

python capture_filter.py --naics 5415 --agency "veterans affairs" --summary python capture_filter.py --set-aside sdvosb 8a --ends-before 2027-07-01 --by-date python capture_filter.py --state VA MD DC --min-value 10000000 --small --out dmv_small_10m.csv 

Step 3: the full 48,427 over the API

The same columns come for the whole list through the SpecStream API. Describing a list is public. Rows need an API key, and max_cents=0 prices a page of rows before anything is charged.

import os import requests API = "https://api.specstream.ai" PAGE = "/data/expiring-contracts/window/2027-expirations/over-1m" info = requests.get(f"{API}/v1/data/lists", params={"page": PAGE}, timeout=30).json() print(info["rows"], info["price_usd"], info["columns"][:6]) # 48427 564.27 ['Expiration date', 'Potential end', 'Award ID', 'Incumbent contractor', 'UEI', 'Agency'] auth = {"Authorization": f"Bearer {os.environ['SPECSTREAM_API_KEY']}"} params = {"page": PAGE, "limit": 500, "max_cents": 0} quote = requests.get(f"{API}/v1/data/lists/rows", params=params, headers=auth, timeout=60).json() print(quote["rows_available"], quote["price_cents"]) params["max_cents"] = quote["price_cents"] batch = requests.get(f"{API}/v1/data/lists/rows", params=params, headers=auth, timeout=60).json() full = pd.DataFrame(batch["rows"]) # one dict per row, keyed by column name cursor = batch["next_cursor"] # pass it back as cursor= for the next page 

A row you already paid for comes again free, so the same call is safe to run on a schedule. Pass since=YYYY-MM-DD to read only rows dated on or after a day, or new_only=true to get only rows you have not seen.

Every agency, NAICS code, state, set aside, incumbent, value tier and window has its own list: 302,528 expiring federal contracts on 59,906 pages. Swap the PAGE path for any of them. On the website, the newest 100 rows of a list are $15, the full $1M 2027 list is $564.27, and the Monthly Pro Pass at $49 a month includes 5,000 rows a month and API access. New accounts get $2 of credit with no card.

To look up one incumbent, NAICS code or award without code, the expiring contract lookup searches the same records in the browser.

What the list does not tell you

USAspending says when a contract ends and who holds it. It does not say whether the agency plans to recompete, extend or cancel, or what the incumbent has said about it in public. For that, the SpecStream Search API answers from the live web with a source on each value, for questions like "has the Army posted a sources sought for this requirement" or "did this incumbent announce a protest".

The data