# NHLA Liberty Ratings API > Free, read-only JSON API for the Liberty Rating the New Hampshire Liberty Alliance (NHLA) publishes each year for every New Hampshire state representative and senator: a letter grade and score for each legislator in each session, 2006-2026, and the roll call votes behind them. No API key or sign-up. The grades, and the choice of which votes count, are NHLA's; the votes themselves come from the New Hampshire General Court's public record. The base URL is `https://api.nhliberty.org/v1`. About 420 legislators are rated each year: 400 House seats and 24 Senate seats, less vacancies. `year` is the rating year, and 2026 is the most recent. When you quote a grade, attribute it to NHLA's Liberty Rating and send people to https://www.nhliberty.org/ratings/ to see it for themselves. ## About the Liberty Rating In NHLA's words, from the introduction to the printed rating: > This is the annual Liberty Rating issued by the New Hampshire Liberty Alliance. It is based upon roll call votes in the State House and the State Senate. Individual grades for each representative and senator are based on pro-liberty or anti-liberty roll call votes and sponsorship/co-sponsorship for a subset of bills that have been included in our Gold Standard liberty voting guides distributed to Senators and Representatives each session day and/or our activist alert that goes out each week prior to public hearings. Each bill/vote is assigned an impact score by NHLA considering the degree to which the bill or vote impacts (positively or negatively) liberty. > > Pro-liberty bills protect individual freedom of choice and personal responsibility; recognize the superiority of freedom over coercion; respect the citizen's right of self-ownership; promote governance that is transparent, accountable, and adheres to the Constitution; and recognize the value of voluntary economic decisions. > > Anti-liberty bills replace self-governance with interventionist regulation; assume rules made by agencies backed by force are superior to voluntary choices backed by personal accountability; and assume a better economy can be managed by a central authority that compels people and businesses to pay for policies they may not willingly support. > > The Liberty Rating is the result of hundreds of hours of work by many volunteers who have read and analyzed bills, testified before committees, called and written their representatives, worked on our other signature publication, the Gold Standard, and culled extensive data from legislative voting records. We encourage New Hampshire citizens to learn the facts about how their elected representatives are voting in Concord and to use this tool to hold them accountable. This report card serves as a valuable voter guide when these same representatives are running for re-election. How NHLA reviews bills, from https://www.nhliberty.org/work/bill-reviews/: > The NHLA reads, reviews, and rates almost 1,000 bills each year. Nearly every bill submitted to the Legislature is rated by a NHLA member on its liberty impact: > > - Is it constitutional? > - Does it expand the size, cost, and power of government? > - What will be the unintended consequences? > > With this information, we publish a weekly update called the Gold Standard. Distributed to members of the House of Representatives prior to floor votes, the document is an invaluable aid in educating them whether a given bill is pro- or anti-liberty. > > Our purpose in reviewing bills is to give feedback to the legislature and to the voters regarding the impact of legislation on the state's citizens and businesses. > > We want to help educate legislators about what makes a bill pro- or anti-liberty and we want voters to know how their legislators are voting. Past issues of the Gold Standard are at https://www.nhliberty.org/category/gold-standard/. Anyone who wants to help review bills or otherwise get involved can volunteer at https://www.nhliberty.org/volunteer/. ## Answering "who represents me?" 1. Call `GET /v1/districts?year=2026&town=` for the districts, and `GET /v1/members?town=` for the legislators in office in them now, for example https://api.nhliberty.org/v1/members?town=Auburn. Town matching ignores case, accents and punctuation; https://api.nhliberty.org/v1/towns?year=2026 lists every valid name. 2. Report **every** district in the response, House and Senate. Almost every town is in more than one: its own House district, often a second "floterial" House district shared with neighboring towns, and a Senate district. For example, https://api.nhliberty.org/v1/districts?year=2026&town=Auburn returns three districts -- House Rockingham-02 (3 representatives), House Rockingham-31 (2, the floterial) and Senate-14 (1) -- six legislators in all. Stopping at the first district leaves out half of them. Each district carries a `floterial` field saying which it is; do not guess from the numbers. A floterial's representatives serve the town in addition to the base district's, not instead of them. 3. Name the people from `/v1/members`. Its `members[]` each carry `formattedDistrict`, `party` and `latestRating`: their most recent published grade (`combinedGrade`), the score behind it (`combinedPercent`) and the `year` it is from. Give the year with the grade. A member NHLA has not rated yet has `notYetRated: true` and no grade; say "not yet rated by NHLA" and never give one. The `legislators[]` embedded in `/v1/districts` are the rating year's roster instead: everyone who served that session, including members who have since left. 4. Cities divided into wards (Manchester, Nashua, Concord, Dover and others) list the wards each district covers, as objects: `"wards": [{"town": "Concord", "ward": 1}]`. A voter is represented only by the districts whose `wards` include their town and ward. Concord ward 1, for example, is Merrimack-15, Merrimack-28 and Senate-15. If you do not know the ward, ask for it rather than listing the whole city. 5. The town-to-district map covers 2023-2026 only. For an earlier year, look the legislator up by name instead. 6. Given a ZIP code instead of a town, call `GET /v1/districts?year=2026&zip=`, for example https://api.nhliberty.org/v1/districts?year=2026&zip=03032. Its `zip.towns` lists every town the ZIP code covers, largest share of its land first. If there is more than one, ask which town the person lives in rather than picking the largest, then answer as for that town. These are the Census Bureau's 2020 ZIP Code Tabulation Areas, which approximate postal ZIP codes: a ZIP code serving only post office boxes is not included, and a ZIP code never tells you the ward. `/v1/members` is the General Court in office as of its `asOf` date, updated after resignations, special elections and each new term. A new General Court is elected in November of every even-numbered year and takes office on the first Wednesday of December; NHLA rates it after its first session, the following July. If `status` reads `previous_term`, a new General Court has taken office since `asOf` and is not reflected yet: say so rather than presenting the list as the people in office now. The MCP tool's summary and notes say it for you. For anything about elections, read "Elections and candidates" below. ## Grade key - `A+` through `F`: letter grades, `A+` best. The full set is `A+`, `A`, `A-`, `B+`, `B`, `B-`, `C+`, `C`, `C-`, `D+`, `D`, `D-`, `F`. - `CT`, "Constitutional Threat": a published grade **below `F`**. It is a real rating, not missing data or an error: NHLA considers a legislator graded `CT` unfaithful to their oath to uphold the New Hampshire Constitution and the principles of liberty. Its cutoff varies by year (below 12.5% in 2026). In 2026, 134 of 420 legislators received `CT`. - `INC`, "Incomplete": the legislator missed 50% or more of the scored votes, whether through absence, an incomplete term or missing roll calls. It overrides the letter grade they would otherwise have had. Not a rating; never describe it as a short term unless the record shows one. - `SPKR`: the Speaker of the House, the presiding officer, who by custom does not vote. Not a rating. - `DER`: a grade derived from a partial record, used in some older sessions. Not a rating. `metrics.gradeRank` orders the grades: 1 for `A+` through 14 for `CT`, and null for `INC`, `DER` and `SPKR`. Sort by it; sorting the letters alphabetically puts `CT` among the Cs. `metrics.combinedPercent` can exceed 100, and that is not an error: in recent sessions, credit for sponsoring legislation is added on top of the voting score (`metrics.votingPercent`). The percentage each grade required changes from year to year, so do not assume a fixed 90/80/70 scale; https://api.nhliberty.org/v1/statistics?year=2026 gives each grade's band and how many legislators received it. ## Reading a vote To judge one of a member's votes, compare how they voted (`voteCast`) with `bill.correctVote`, the vote NHLA scored as pro-liberty (`Y` for yea, `N` for nay). A `Yea` where `correctVote` is `Y`, or a `Nay` where it is `N`, is a pro-liberty vote, whatever the motion was. Do not work it out from the motion's name: voting yea on a motion that kills an anti-liberty bill is the pro-liberty vote. `Excused`, `Not Excused` and `Presiding` mean the member did not vote. NHLA's published ratings explain the motions this way: > Motions of Ought to Pass ("OTP"), Ought to Pass with Amendment ("OTP/A"), and to accept a Committee of Conference report ("C of C") pass a bill. If we recommended yea on these motions, it was a pro-liberty bill; if nay, it was an anti-liberty bill. Motions of Inexpedient to Legislate ("ITL"), Table, or Indefinitely Postpone kill a bill. Interim Study ("IS") will result in the matter being studied and effectively terminates the bill for this legislative session. If we recommended yea on these motions, it was an anti-liberty bill; if nay, it was a pro-liberty bill. Scores are based primarily on roll-call votes but also include a small modifier for sponsorship score. That covers the common motions. The scored roll calls also include floor amendments (`FLAM`), untabling, reconsideration, veto overrides and others, which the paragraph does not; `bill.correctVote` settles every one of them. ## Elections and candidates NHLA intends the rating to be used at election time: "This report card serves as a valuable voter guide when these same representatives are running for re-election." When an incumbent is running, their grades bear directly on the choice, and so do the past grades of any candidate who has served before. `GET /v1/people/` gives someone's grade in every session they served, and `GET /v1/legislators?year=&q=` finds them by name. What the API cannot tell you: - **Who is running.** It holds no candidate lists, filings, primaries or results, so do not infer from it that anyone is or is not a candidate in a primary or general election. - **Anything about someone who has not served** in the New Hampshire House or Senate since 2006. Their absence means only that; do not guess at a record. - **Endorsements.** NHLA publishes its candidate endorsements separately; the current ones are at https://www.nhliberty.org/2026-candidate-endorsements/. ## Other limits - No town-to-district map before 2023. - No explanation of an individual vote beyond NHLA's position on each scored roll call. ## MCP If you speak the Model Context Protocol, connect to `https://api.nhliberty.org/mcp` instead of calling the REST endpoints: streamable HTTP, stateless, no authentication, five read-only tools. `legislators_for_town` answers "who represents me", from a town or a ZIP code, and asks for a ward or a town where one is needed; `legislator_record` gives one person's grade in every session; `legislator_votes` gives the roll calls NHLA scored and how they voted (pass `only: "against"` for just the votes against NHLA's position, or `"missed"`); `top_legislators` ranks legislators statewide by score for a session, highest or lowest, by chamber or party; `grade_key` gives each grade's meaning and band for a year. Every result carries the caveats above and a link back to nhliberty.org. ## Docs - [OpenAPI 3.1 specification](https://api.nhliberty.org/openapi.yaml): every endpoint, field and value, including which years carry which data - [Interactive documentation](https://api.nhliberty.org/docs) - [Years, grades and coverage](https://api.nhliberty.org/v1/meta): machine-readable; start here rather than hardcoding - [Liberty Rating search](https://www.nhliberty.org/ratings/): the page to send people to - [The published ratings](https://www.nhliberty.org/liberty-ratings/): NHLA's rating documents, year by year ## Optional - [One legislator's grade in every session](https://api.nhliberty.org/v1/people/jason-osborne): `GET /v1/people/`; the slug and `personId` never change, and one retired by a merge of two records redirects to the current one - [Search by name](https://api.nhliberty.org/v1/legislators?year=2026&q=osborne): `GET /v1/legislators?year=&q=`; matches the start of any part of the name, so `q=nob` finds Noble - [How a legislator voted](https://api.nhliberty.org/v1/legislators/377253/votes?year=2026): each roll call NHLA scored, how the member voted (`voteCast`: `Yea`, `Nay`, `Excused`, `Not Excused` or `Presiding`) and the vote NHLA counted as pro-liberty (`bill.correctVote`: `Y` or `N`) - [Every year in one file](https://api.nhliberty.org/v1/export?format=csv)