15

The Google Home assistant has a default feature called Shopping List, that lets you keep a shopping list using the Google Assistant. Using the web UI it is possible to create named lists, share them with others, check items etc.

I have searched for this unsuccessfully: is there any way to access these features or just access the shopping list data through an API, getting user permission using OAuth? Any docs, samples?

Maarten
  • 1,941
  • 1
  • 15
  • 14
  • There isn't an API, but you can use Google Takeout and only check the Google Assistant lists and stuff box. Maybe this might help: https://gist.github.com/stewartmcgown/7f5dcbf4ccd385637786f9581b620e6a – KTibow Jun 30 '20 at 15:36

5 Answers5

7

Unfortunately at this time there's no API for Google Shopping (or for Google Keep, which is fairly similar)

Is there a Google Keep API?

domdomegg
  • 1,498
  • 11
  • 20
1

Also looking for the same. Have been browsing around with no results. Wrote them feedback but I doubt that they will do anything as the page seems so empty...

Although I found that Amazon Alexa has all the needed documentation to access shopping lists and todo lists: https://developer.amazon.com/docs/custom-skills/access-the-alexa-shopping-and-to-do-lists.html

I think its shamefull for me, just this weekend I already gave up of using Google TTS and started using (Amazon) AWS Polly for the simplicity of installation and use, and now it seems Google has no API for shopping list while Alexa does... I guess its time to sell my Google Home

Vasco Baptista
  • 653
  • 2
  • 8
  • 15
0

You can get the JSON from this endpoint, assuming you're authenticated. You'll have to pass the cookie and maybe a few other headers - not sure. But, it could get the job done...

Sign into your account and go to https://shoppinglist.google.com. From there, open up your networking tab in your dev console, check the requests. You'll see one called lookup:

https://shoppinglist.google.com/u/0/_/list/textitem/lookup

The query params are important for auth. I don't know how auth works here and if you can easily hit it or not, but it's there, the JSON in the request. You'll just need to auth and pass the right query params.

Jacob Thomason
  • 3,062
  • 2
  • 17
  • 21
-1

You can export shopping lists in a CSV format using https://takeout.google.com. A download link can be emailed or a file can be dropped in Drive, Dropbox etc. This can be configured to export every two months for 1 year.

The data contains the name of the item, the quantity, if it is checked or not, and any additional notes.

pblesi
  • 534
  • 2
  • 6
-8

(Almost?) All public software products of Google have some sort of API. Thumb rule: You can access the product via app, website or similar? Then there will be an API.

You can however create a thread over on googles suggestion site and request an api for the shopping list, if no one has done so. :)

Basti
  • 17
  • 5
  • While this is true, many of their products (such as this one) don't have a public API, so this isn't particularly useful for most cases. I guess you could inspect the web traffic to reverse engineer the API – askvictor Sep 23 '19 at 05:11