Google shut down the Civic Information API on April 30, 2025 — leaving thousands of voter-guide apps, news tools, and nonprofits with no drop-in replacement. PoliAPI is built specifically for that migration.
If you used the official Google Civic JS client, swap the base URL and rotate the key. The response shape is a superset.
- const civic = google.civicinfo({ version: 'v2', auth: GOOGLE_API_KEY });
- const res = await civic.elections.voterInfoQuery({ address });
+ const res = await fetch(`https://api.poliapi.dev/v1/ballot?address=${encodeURIComponent(address)}`, {
+ headers: { Authorization: `Bearer ${POLIAPI_KEY}` }
+ }).then(r => r.json());
// res.contests, res.pollingLocations, res.election — same field names, same OCD-IDs.A non-exhaustive map of integrations affected by the shutdown — every one of them is a target customer.