Skip to main content

googlewifiapi

An asynchronous Python client for reading status from the local JSON API exposed by Google Wifi routers. The package is designed for integrations such as Home Assistant, but can be used by any Python application that needs router status data.

About this README

This README was generated by AI with human review. All code is either written by a human or is thoroughly reviewed. I'll try to keep the README updated, but sometimes I might forget.

Requirements

  • Python 3.13 or newer
  • A Google Wifi router reachable on the local network

Installation

pip install googlewifiapi

Usage

Pass an aiohttp.ClientSession to the client so your application controls the session lifecycle:

import asyncio

import aiohttp

from googlewifiapi import GoogleWifiAPI


async def main() -> None:
    async with aiohttp.ClientSession() as session:
        router = GoogleWifiAPI(host="192.168.86.1", sess=session)
        await router.async_update()

        if router.data is not None:
            print(router.data.wan.online)
            print(router.data.software.software_version)
            print(router.data.system.last_restart)


asyncio.run(main())

The host defaults to 192.168.86.1. After a successful update:

  • router.raw_data contains the raw JSON response.
  • router.data contains a validated, typed GoogleWifiStatus.
  • IP address fields are parsed as IPv4Address or IPv6Address objects.
  • system.last_restart is calculated from the router's uptime.

The status object exposes dns, software, system, and wan sections. Their fields use Python names such as software_version, gateway_ip_address, and ip_prefix_length, while the client handles the router API's camelCase keys.

Errors

All library errors inherit from GoogleWifiException:

  • GoogleWifiClientError indicates a request, connection, timeout, or JSON decoding failure.
  • GoogleWifiDataValidationError indicates that the response does not match the expected status schema.

Development

Install the test dependencies and run the test suite with uv:

uv sync --group test
uv run pytest

License

This project is licensed under the MIT License. See LICENSE.txt.

Disclaimer

This is an independent, community-developed project and is not affiliated with or endorsed by Google LLC. It relies on a local API that Google may change or remove without notice.

Metadata

Release files for googlewifiapi 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for googlewifiapi 0.1.2
File Size Uploaded Provenance Actions
googlewifiapi-0.1.2.tar.gz 7.1 kB With provenance Details for googlewifiapi-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for googlewifiapi 0.1.2
File Interpreter ABI Platform Actions
googlewifiapi-0.1.2-py3-none-any.whl Python 3 none any Details for googlewifiapi-0.1.2-py3-none-any.whl

Total release size: 13.6 kB

Release files / googlewifiapi-0.1.2.tar.gz

Download URL googlewifiapi-0.1.2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0779790754b5332c98c6b7469a6bd272a837ad490ca75a1255d7b75285ea0f90
BLAKE2b-256 checksum
How to use checksums
e4c749885c04f5231ab825a8fa3e90cd92487ab10b0d12275a23174858517e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / googlewifiapi-0.1.2-py3-none-any.whl

Download URL googlewifiapi-0.1.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ae70c9e234896fe0042892458ecdfcd22a8548a48756c9999f43c157db23861
BLAKE2b-256 checksum
How to use checksums
278a4aeba796f44768fe3ad25d28e82311fae82929b2968f0f23ff0745692f91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Security for googlewifiapi 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for googlewifiapi-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page