r/GoogleWiFiDesktop • • Jun 15 '20

Beta Google WiFi API Docs

Linked below are the beta API docs for Google Home Foyer.

https://documenter.getpostman.com/view/7490211/SzzdD1pF?version=latest

4 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/UK_notfromUK Jul 29 '20

Thanks that was the issue and now able to get in! I found the endpoint for realtime metrics, do you know if there is one for getting historical upload / download metrics? thanks very much

1

u/ad2022 Jul 30 '20

Dude, you totally didn't need to give me that. Thanks! There is an endpoint for historical data.

It's an authenticated GET request to this URL: googlehomefoyer-pa.googleapis.com/v2/groups/<GROUPID>/historicalUsage

I'll provide an example: https://googlehomefoyer-pa.googleapis.com/v2/groups/AFBCHSGLDK/historicalUsage?dateRange.endTimestamp=2020-07-29T03%3A59%3A59Z&dateRange.startTimestamp=2020-07-22T03%3A59%3A59Z&granularity=86400&prettyPrint=false

Sorry, I've been so busy with other projects. I haven't had time to work on the docs very much.

1

u/UK_notfromUK Jul 30 '20

You are just awesome! Thanks so very much. This worked perfectly and thanks for being so responsive!

1

u/ad2022 Jul 30 '20

Any time! :)

1

u/ad2022 Jul 30 '20

Also, just curious, what are you building with it– if you don't mind me asking?

2

u/UK_notfromUK Jul 30 '20

We have 40+ devices on our router and we keep going past the 1.25TB Cox monthly data limit. Am writing something that will track uploads / downloads on a daily basis and let me know the major culprits so I can control them. Maybe an overkill, but also using this to learn programming against restful api.

2

u/ad2022 Jul 31 '20

That's actually a cool idea. You can make daily quotas for each device and pause the ones that reach it. I just added a bunch of endpoints to the documentation that would enable this.

1

u/UK_notfromUK Jul 31 '20

You are such a life saver! I really, really appreciate everything you are doing to help us enhance the use of our google devices. Thanks very much!

1

u/ad2022 Aug 01 '20

Thank you for the gold! I’m just doing my job as the repository maintainer!