public-roadmap icon indicating copy to clipboard operation
public-roadmap copied to clipboard

[Google Lens API] Update `knowledge_graph` example in the documentation

Open martin-serpapi opened this issue 1 year ago • 2 comments

A user reported that the code generated from the Google Lens API documentation page results in a KeyError: 'knowledge_graph' after executing it. There is no longer a knowledge_graph returned in the results when using https://i.imgur.com/Jydn4Wb.jpeg URL:

image

Playground | Inspect

Intercom

martin-serpapi avatar Jan 11 '24 19:01 martin-serpapi

I tried to find another example of a Google Lens search with a Knowledge Graph and couldn't find anything.

It's possible Google Lens no longer returns that element at all, in which case we should just remove that example from the documentation.

schaferyan avatar Jan 13 '24 00:01 schaferyan

Another customer reached out about this. They don't have any examples of Google Lens searches with Knowledge Graph either, it's likely Google Lens no longer includes this element as we suspected.

Intercom

schaferyan avatar Apr 25 '24 20:04 schaferyan

Thanks @schaferyan and @martin-serpapi for reporting this issue.

Google still return knowldge_graph results for some searches. e.g:

Screenshot 2024-06-11 at 16 23 59

I found a tweet from Rajan Patel - "VP of Engineering at Google leading the Search experience, the Google app, Image Search, and Lens. Co-founded Lens, Gboard, and Google Podcasts." It seems like Google is working hard on the Knowledge graph and AI overview results.

Playground || Inspect

Hope this help.

andypple83 avatar Jun 11 '24 09:06 andypple83

We've updated our Google Lens document page to give more Knowledge Graph examples. Feel free to check it out. Best.

Screenshot 2024-06-17 at 15 35 48

Link: https://serpapi.com/google-lens-api

andypple83 avatar Jun 17 '24 08:06 andypple83

Another user confused about this.

Intercom

hilmanski avatar Jul 15 '24 05:07 hilmanski