Moving from Google Civic

Google retired its two Representatives methods, representativeInfoByAddress and representativeInfoByDivision, on 2025-04-30. Source: developers.google.com/civic-information/docs/v2, read 2026-11-08: the page footer reads "Last updated 2025-04-30 UTC", and the Representatives method pages (representatives/representativeInfoByAddress and representatives/representativeInfoByDivision) answer HTTP 404. We could not retrieve the text of Google’s own notice on that day, so the shutdown date is the page’s last-updated date and the date we recorded earlier, not a quotation.

Read this first: the replacement covers federal, state, county, city and school officials for an address, but it is not a drop-in for the Google responses. Office contact is served for federal and state officials, and a county office’s phone and email where we hold one we can serve; the last list below says what it leaves out.

Retired Google methods and what replaces them
GoogleRallybaseNote
representativeInfoByAddress (address in the query string, key in the query string)GET /api/v2/lookup with the address in the x-geocode-address header and the key in Authorization: BearerFederal, state, county, city and school officials for the address. A key or an address in the URL is refused with 400.
representativeInfoByDivision (an OCD division id in the path)GET /api/v2/lookup?ocd_id=<a county's OCD division id> or ?county=<5-digit FIPS>, or coordinates in the x-rb-lat and x-rb-lng headersA county's OCD division id is taken as it is, and answers the county level only, as a county code does. An id for any other kind of division (a state, a district, a city) is refused with unsupported_division: send an address or a point for those. Each row carries its ocd_id where the published list has one.
Response fields, Google to Rallybase
Google fieldRallybase fieldNote
officials[].nameofficials[].nameThe holder's name as served.
offices[].nameofficials[].office_label (and officials[].office, a stable key)The office as the county page prints it, with the holder's name taken out.
offices[].divisionIdofficials[].ocd_id (and officials[].district_key, officials[].jurisdiction)The Open Civic Data id, where the published list carries the division. Else it is null. district_key names a city or school district that OCD does not type.
offices[].levels, offices[].rolesofficials[].levelOne of federal, state, county, place (a city or town), school or local (any other local government).
officials[].phones, officials[].emailsofficials[].phone, officials[].emailThe office's published phone and email. State officials have both. So does a county office where we hold one we can serve. Members of Congress have a phone, but their email is null: they take messages through a form on their website. City and school rows have neither, and so does a county row we hold none for.
officials[].urlsofficials[].website and officials[].source_urlwebsite is the office's own site (federal and state). source_url is a different thing: the public page our row was read from, on each row.
officials[].partyofficials[].partyAs the source gives it, or null. County rosters publish none.
officials[].id (none in Google)officials[].idThe same id across lookups while our record of that person is the same. The site uses it too. A state legislator first read from the legislature's own page has a state-row- id. Once Open States lists them, it is a state-ocd-person/ id.
normalizedInputnoneWe do not echo or store the address.

What we hold that Google never did

  • A source page on each row (source_url). Where we hold it, the day it was read (read_at); when we do not, read_basis says why. Google's responses carried neither.
  • A finding for each level (coverage.levels). "none held", "could not check" and "held, not redistributed" are different findings. None of them says a government has no officials.
  • The districts that hold the point, and the governing bodies with their seat counts (point.districts, point.bodies). Seat counts are read from charter or statute.
  • The snapshot the answer came from (snapshot.id, snapshot.built_at) and the licence that applies to the data (license).
  • A credit the source requires you to show, when one is owed (attribution).

What we do not hold

  • Phone numbers and email addresses for city and school officials. Websites for county, city and school officials. We serve the published contact of federal and state offices. We serve a county office's phone and email where we hold one we can serve. For the rest, the contact details are on the source page.
  • Mailing addresses, photographs and social media channels, for any official. The fields Google returned for these (address, photoUrl, channels) have no match here.
  • Lookup by the OCD division id of anything but a county. Rows carry the id. The lookup takes an address, a point, a county FIPS code or a county's division id.
  • Complete local coverage. A county we have not read is reported as "not yet read". A city whose roster we do not hold is listed in point.place_rosters as not_yet.