/api/v1

Documentation

One REST API for every current US officeholder — no key required to explore.

Quick start

The base URL is https://civiclens.io/api/v1. Every endpoint is a GET that returns JSON — this one selects a single Texas House seat.

GET /api/v1/members
$ curl "https://civiclens.io/api/v1/members\
?state=tx&chamber=lower&district=30"

{
  "id": "ocd-person/7f1c9e2a-41b6-4c8d-9a3e-5d2f8b6c0e14",
  "name": "Dana Whitfield",
  "party": "Republican",
  "government": {
    "level": "state",
    "chamber": "lower",
    "district": "30",
    "stateCode": "tx"
  },
  "contactInfo": { "email": "dana.whitfield@house.texas.gov" }
}

First time here? Start with Getting started.

Guides

Learn the API

Endpoints

Every endpoint

Reference

Field coverage

Per-field coverage figures, measured on a live sample and refreshed continuously.

See the spec sheet

Machine-readable

The full OpenAPI document is served at /api/v1/openapi.json with permissive CORS. Every page here renders from it, so the two cannot disagree.