Using python-genai with googleapis.com

Python integration

✓ Official SDK

Install

pip install python-genai

Quick start

import python-genai

client = python_genai.Client("YOUR_API_KEY")
Searches for political divisions by their natural name or OCD ID.
curl \
  https://civicinfo.googleapis.com/civicinfo/v2/divisions
List of available elections to query.
curl \
  https://civicinfo.googleapis.com/civicinfo/v2/elections
Looks up information relevant to a voter based on the voter's registered addr…
curl \
  https://civicinfo.googleapis.com/civicinfo/v2/voterinfo
SDK on GitHub 📄 API Docs
SDK
python-genai
Python
API
googleapis.com
googleapis.com:civicinfo

At a glance

Language Python
Endpoints5
Base URLhttps://civicinfo.googleapis.com
✓ Official