Sidebar API, or doing READ_CHAT without all the IDs? #136
-
|
I am trying to write a small JavaScript file to be a Zotero translator (basically gets metadata from a page), and I'd like to use similar stuff you are doing with the API since the DOM doesn't show the date. But when I tried to use your methods, I didn't have all the ids, so I got back no information... I think this is a Gemini limitation I might not be able to overcome, but if there is an API call that shows all the chats (basically show the sidebar) that could probably help. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
The RPC id for listing recent chats should be
I believe there should be a param controlling the number of chats it returns but haven't tested yet. Probably |
Beta Was this translation helpful? Give feedback.
-
|
Sample response: |
Beta Was this translation helpful? Give feedback.
-
|
Ok, that really helped. But I now want to try and figure out if there is a shared link. I tried to scrape https://gemini.google.com/sharing but since it renders the html client side, that didn't work. I am hoping there might be an API call I can make to get that list? |
Beta Was this translation helpful? Give feedback.
-
|
There should and must be. Unfortunately I'm used to turning off activity history so I'm not pretty sure about the RPC id. You may try
I'd suggest you to open web inspector on your sharing page, hit refresh, wait, and then search for |
Beta Was this translation helpful? Give feedback.
The RPC id for listing recent chats should be
MaZiqcand here's the payload:f.req: [[["MaZiqc","[13,null,[0,null,1]]",null,"generic"]]]I believe there should be a param controlling the number of chats it returns but haven't tested yet. Probably
13.