RepsContact API Docs

Find Your Representatives

Enter your zip code to look up your senators and house representative, with direct contact information.

Embed on your site

The easiest way to let your visitors find and contact their representatives, anywhere in the USA. Add one line of HTML.

All representatives

<iframe src="https://reps-contact.option-zero.workers.dev/embed"
  width="100%" height="600" style="border:none; max-width:700px;">
</iframe>

Senate only

<iframe src="https://reps-contact.option-zero.workers.dev/embed?type=senate"
  width="100%" height="500" style="border:none; max-width:700px;">
</iframe>

House only

<iframe src="https://reps-contact.option-zero.workers.dev/embed?type=house"
  width="100%" height="500" style="border:none; max-width:700px;">
</iframe>

Options

Parameter Values Description
type all, senate, house Which representatives to show (default: all)
zip 5-digit zip Pre-fill zip code and auto-search on load
theme light, dark Color scheme (default: light)

Live preview

Free API

One call. Zip, address, or coordinates in. Representatives, contact info, and photos out. No API key, no rate limit, no sign-up.

By zip code

GET /api/reps?zip=98101

By address

GET /api/reps?address=1600+Pennsylvania+Ave+NW,+Washington,+DC

By coordinates

GET /api/reps?lat=38.9072&lng=-77.0369

Why not just use…

The Census Geocoder

Returns FIPS codes and district numbers, not representatives. You still need to cross-reference against a separate legislator dataset, handle FIPS-to-state mapping, and filter by current term dates. RepsContact does all of that for you.

Google Civic Information API

Requires an API key, a Google Cloud project, and is being deprecated. RepsContact needs none of that.

congress.gov / GovTrack

Great for research, but no zip-to-representative lookup. You can browse by name or state, but there's no "who represents this address?" endpoint.