An unofficial web app for searching public property-tax and sanitation bills published by Connecticut municipalities at mytaxbill.org.
Enter a last name and first initial (for example Smith + J), pick one
or more towns, and the app returns every matching bill. Drill into a row to see
the full public record: assessments, exemptions, mill rates, installment
schedules, payment history, and other bills for the same account. Results can be
filtered and exported to CSV.
The app ships with a catalogue of all 169 Connecticut municipalities and lets you select up to 10 at once, so the same name can be compared across towns in a single search.
npm install
npm start
Open http://localhost:3000.
For development with automatic restarts:
npm run dev
Node.js 20 or newer is required.
The catalogue is in lib/towns.js and is served to the browser
by GET /api/towns.
Coverage can change. If a town starts or stops using mytaxbill.org, update the
UNAVAILABLE set in lib/towns.js and the catalogue test.
The browser only talks to this app. For each selected town, the Express server opens a separate session with that town’s mytaxbill.org search page, posts the same name-search form the official site uses, and parses the returned HTML with Cheerio. Detail pages, payment history, and “all bills” pages are fetched on demand using a session for the same town and cached.
Searches for different towns run with a small concurrency limit (default 3), and detail requests share an upstream limit (default 4). The app never stores credentials and does not initiate payments. It only reads public pages.
GET /api/townsReturns the full Connecticut catalogue:
{
"towns": [
{ "name": "Andover", "slug": "andover", "supported": true, "url": "…" },
{ "name": "Avon", "slug": "avon", "supported": false, "url": "…" }
],
"defaultTown": "hartford",
"maxTowns": 10,
"totalCount": 169,
"supportedCount": 160
}
GET /api/search| Query param | Description |
|---|---|
last |
Last name or business name (required) |
initial |
First initial (optional; extra letters ignored) |
towns |
Comma-separated town slugs, e.g. hartford,cromwell,portland |
town |
Single-town alias, e.g. hartford |
dataset |
tax (default) or sanitation |
recordType |
0 all (default), 1 due now, 2 balance due |
details |
1 to fetch full details for every result |
If no town is supplied, hartford is used. Town names such as
East Hampton are also accepted and normalized.
Example:
curl "http://localhost:3000/api/search?last=Smith&initial=J&towns=hartford,cromwell,portland"
The response includes query, towns (with per-town counts or errors),
count, summary, and results. Every result has town and townName
fields. When details=1, each result also has detail and payments objects.
Partial failures are reported per town: if one town fails, results from the other towns are still returned. The request only fails when every selected town fails.
GET /api/billFetch one bill’s full detail bundle.
| Query param | Description |
|---|---|
town |
Town slug, e.g. hartford |
year |
Bill year, e.g. 2025 |
type |
Bill type code, e.g. 3 |
num |
Bill number, e.g. 81220 |
dataset |
tax (default) or sanitation |
payments |
0 to skip payment history |
related |
0 to skip related bills |
Example:
curl "http://localhost:3000/api/bill?town=hartford&year=2025&type=3&num=81220"
GET /api/export.csvSame parameters as /api/search. Returns a UTF-8 CSV (with BOM for Excel)
including a Town column. Use details=1 to include assessment and payment
columns; this can take a while for large result sets.
curl -o smith.csv "http://localhost:3000/api/export.csv?last=Smith&initial=J&towns=hartford,cromwell&details=1"
GET /api/healthSimple liveness check, including the number of catalogued and available towns.
| Environment variable | Default | Purpose |
|---|---|---|
PORT |
3000 |
HTTP port |
UPSTREAM_CONCURRENCY |
4 |
Max simultaneous detail requests to mytaxbill.org |
SEARCH_TOWN_CONCURRENCY |
3 |
Max towns searched simultaneously |
MAX_TOWNS_PER_SEARCH |
10 |
Max towns in one search (capped at 169) |
MAX_DEEP_RESULTS |
250 |
Max results enriched in one details=1 search |
npm test
The tests use saved HTML fixtures and the town catalogue; they do not contact the live site. They cover the tax/sanitation parsers, bill details, payment history, related bills, and the full 169-town catalogue.