[Google Lens API] Update `knowledge_graph` example in the documentation
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:
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.
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.
Thanks @schaferyan and @martin-serpapi for reporting this issue.
Google still return knowldge_graph results for some searches. e.g:
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.
Hope this help.
We've updated our Google Lens document page to give more Knowledge Graph examples. Feel free to check it out. Best.
Link: https://serpapi.com/google-lens-api