Skip to main content

Developers: the FairCounty county data API

Last updated November 15, 2026

FairCounty publishes county purchasing facts, open bids and meeting schedules as free, read-only JSON. It returns what a signed-out visitor sees on this website, collected from each county's own public pages. There is no key to request and no sign-in.

Endpoints

Public API endpoints
OperationAddress (GET)What it returns
find_county/api/v1/public/countiesSearch counties by name, optionally in one state (q, state, limit, offset, fields).
county_overview/api/v1/public/counties/{state}/{slug}Facts: bid platform, where bids are posted, purchasing contact, agenda source, next meeting, open bid count, coverage.
open_bids/api/v1/public/counties/{state}/{slug}/bidsOpen bids, newest first (status open or closing_soon, limit, offset, fields).
upcoming_meetings/api/v1/public/counties/{state}/{slug}/meetingsMeetings (when upcoming, recent or all) with whether an agenda or minutes exist.

Start with find_county: it returns the state_code and slug that the other calls need. Example:

curl "https://www.faircounty.com/api/v1/public/counties?q=travis&state=tx&limit=5"

Machine-readable description

The OpenAPI document is at https://www.faircounty.com/openapi.json. It lists only these public routes. Each operation has a stable operation id (the names in the first column).

Fields, paging and caching

  • fields keeps only the fields you name, for example the title and due date. An unknown name is an error that lists the allowed ones.
  • Lists use limit (1 to 100, default 25) and offset. The answer says the total and the next_offset, or null on the last page.
  • Every answer has an ETag and a public Cache-Control. Send If-None-Match and an unchanged answer returns 304 with no body.

Rate limits

By default 60 requests a minute and 1,200 an hour for each address (the site operator can change these limits). A batch to the tool server counts one request for each tools/call it holds. Above the limit the API answers 429 with a Retry-After header in seconds. Please cache answers and use ETag.

What is and is not included

  • County facts, open bids and meeting dates are returned with a link to the page on this site.
  • A county that asks us to link to its own page returns its facts and a display block with that link, and no bids or meetings.
  • Bid numbers and direct agenda and minutes links are plan features. In this API they are null with locked set to true, and each county answer carries the schedule and minutes pages on this site.
  • A signed-out visitor sees the next meeting date only, so meetings returns the next upcoming meeting (whatever when says) with locked set to true, and the total and hidden_count of the upcoming meetings.
  • Times are ISO 8601 in UTC, for example 2026-11-20T18:00:00Z.
  • No account, staff or private data is available through this API.

Attribution

If you show this data, say "Source: FairCounty", link to the county page on https://www.faircounty.com, and link to the county's own page when you show a bid. Show the date we last checked the county where you can. Facts can change between checks, so tell people to confirm on the county's own site before they bid.

Tool server for AI assistants

A read-only MCP server exposes the same four lookups as tools: find_county, county_overview, open_bids and upcoming_meetings. It is at https://www.faircounty.com/mcp (JSON-RPC 2.0 over HTTP POST), needs no key, has the same default limits and gates, and is described at https://www.faircounty.com/.well-known/mcp.json.

The tool server is off by default, so today both addresses answer 404 (this is intended, not a fault). Use the JSON API above, which is always on. The site owner turns the tool server on by setting FW_PUBLIC_MCP_ENABLED=true on the API container and restarting it; nothing else changes, and the two addresses start answering at once.

Your own account: API keys

If you have an account, you can read what your account already sees (matches, bid log, follows, saved searches) from your own scripts. Create a key in Settings, API keys. The key starts with fwc_ and is shown once. Send it in the Authorization header. It is read-only: no writes, no export, no offsets. A key cannot reach account settings or create other keys.

Who am I, and what is left today

curl -H "Authorization: Bearer fwc_YOUR_KEY" https://www.faircounty.com/api/v1/me/whoami

Your newest matches, only the fields you name

curl -H "Authorization: Bearer fwc_YOUR_KEY" "https://www.faircounty.com/api/v1/me/matches?limit=10&fields=id,level,bid.title"

The next page (use the next_cursor from the last answer)

curl -H "Authorization: Bearer fwc_YOUR_KEY" "https://www.faircounty.com/api/v1/me/matches?cursor=NEXT_CURSOR"

Lists answer {"items": [...], "next_cursor": "..."}. Pass next_cursor back as cursor to get the next page; it is null on the last page. Use fields to keep only what you need.

Limits for keys

Account API keys are not switched on yet. The limits will show here when they are.

The limits are for the whole account, all keys together. Over a limit the API answers 429 with a Retry-After header and no data. Every answer carries RateLimit-Remaining and X-Records-Remaining-Today. Repeated misuse (for example reading counties in sorted order) suspends the account's keys for a while.

Webhooks and checking the signature

Add an https address in Settings, Webhooks and we send it a signed JSON message when something happens (event match.strong; ping for a test). Each message has the headers X-FactWise-Signature (t=<unix seconds>,v1=<hex>), X-FactWise-Event and X-FactWise-Delivery (a unique id; we retry, so de-duplicate on it). v1 is HMAC-SHA256 of "<t>.<raw body>" with your secret. Reject a message when t is more than 5 minutes from your clock, or when the signatures differ (compare in constant time). Use the raw body, not re-encoded JSON.

Python

import hmac, hashlib, time
def verify(secret: str, header: str, raw_body: bytes, tolerance=300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t, got = int(parts["t"]), parts["v1"]
    if abs(time.time() - t) > tolerance:
        return False
    want = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, got)

Node.js

const crypto = require("crypto");
function verify(secret, header, rawBody, tolerance = 300) {
  const p = Object.fromEntries(header.split(",").map((s) => s.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(p.t)) > tolerance) return false;
  const want = crypto.createHmac("sha256", secret).update(`${p.t}.${rawBody}`).digest("hex");
  return want.length === p.v1.length && crypto.timingSafeEqual(Buffer.from(want), Buffer.from(p.v1));
}

Shell

# the signature, by hand (SECRET, T = the t= value, BODY = the raw body)
printf '%s.%s' "$T" "$BODY" | openssl dgst -sha256 -hmac "$SECRET"

Failed messages are retried a few times with growing waits, then marked failed. After many failures in a row the address is switched off and you are emailed; switch it on again after fixing it. The delivery log in Settings shows each try.

Licence for key and webhook data

Data licence and acceptable use (draft for counsel). The FairCounty service, including its compilation of county purchasing facts, open bids, meeting schedules and the structure and selection of that data, is protected by copyright, database rights, contract and other law. You may view and use individual records for your own or your organisation's internal purchasing decisions. You must not (a) use automated means such as scrapers, crawlers, scripts or bots to access or collect data except search engines and answer engines we name in robots.txt and the documented public API within its limits; (b) copy, store, resell, sublicense, redistribute or republish the data in bulk or as a substantial part; (c) use the data to build, train or improve a competing product, dataset or directory; (d) evade rate limits, blocks or access controls, or use multiple addresses or accounts to do so; or (e) share account access. A customer API key gives only its owner's own access, is read-only, is limited per key and per day, must not be shared or resold, and may be suspended or revoked without notice if it is used to harvest data; data received through a key or a webhook is not licensed for building a competing dataset. We may limit or block access that looks like any of these, and we place fictitious records in the data to detect copying. Licensed access for partners is available by agreement.

Sent with every key answer as the X-Data-Licence header: Not licensed for scraping, resale, redistribution, key sharing or building a competing dataset; personal and internal use of individual records only; terms: https://www.faircounty.com/terms; licensed access: george@faircounty.com

See the full terms of use. For licensed access, write to george@faircounty.com.

Questions and corrections

If a county fact is wrong, use the feedback link on that county's page. The about page explains how we collect and check the data.