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.3

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.3
File Size Uploaded Provenance Actions
googlewifiapi-0.1.3.tar.gz 7.3 kB With provenance Details for googlewifiapi-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 13.8 kB

Release files / googlewifiapi-0.1.3.tar.gz

Download URL googlewifiapi-0.1.3.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
57ce96d34232da6eaf9a3f3045e0c597c2ebf19b3cbf16b4bd14913cec47355d
BLAKE2b-256 checksum
How to use checksums
52ac82da636f8cc0357a8fbb77e2f5fa5b4a66be3e6aff43900e40a7d74a0245
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

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

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

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 Nov 5, 2026.

Transparency log

Security for googlewifiapi 0.1.3

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.3.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 Nov 5, 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