Skip to content

Instantly share code, notes, and snippets.

@AndrewHuffman
Forked from Zenexer/Google-Wifi-API.md
Created September 13, 2017 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewHuffman/45900e03e6795d8c94d724b738779d17 to your computer and use it in GitHub Desktop.
Save AndrewHuffman/45900e03e6795d8c94d724b738779d17 to your computer and use it in GitHub Desktop.
API for Google Wifi and OnHub; mostly untested

Endpoints

Default GET read timeout: 10 sec

Request headers:

X-XSRF-Protection: 1

Response formats

Arbitrary error response

  • error: string
  • code: int32

status response

  • wan
    • online: boolean
    • ethernetLink: boolean
    • pppoeDetected: boolean
    • invalidCredentials: boolean
  • system
    • deviceId: string
    • countryCode: string
  • software
    • updateStatus: string; one of:
      • checking
      • downloading
      • idle
      • unknown
      • updated
      • updating
      • waiting
    • updateProgress: float64
    • updateRequired: boolean

wan-configuration GET response

  • type: string; one of:
    • pppoe
    • static
    • dhcp

Request formats

join-group request

  • groupConfiguration: string
  • kek: string
  • mac: string

register-device request

  • ticketId: string
  • displayName: string

wan-configuration requests

Common properties:

  • type: string; one of:
    • pppoe
    • static
    • dhcp

Set PPPoE

  • type: string; "pppoe"
  • username: string
  • password: string

Set static IP address

  • type: string; "static"
  • ipAddress: string
  • netmask: string
  • gateway: string

Set DHCP

  • type: string; "dhcp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment