Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Google Local API] Include higher quality thumbnails #2240

Open
sonika-serpapi opened this issue Dec 17, 2024 · 4 comments
Open

[Google Local API] Include higher quality thumbnails #2240

sonika-serpapi opened this issue Dec 17, 2024 · 4 comments
Labels
status: queued Ready to work on type: feature Something new to build

Comments

@sonika-serpapi
Copy link

sonika-serpapi commented Dec 17, 2024

Our Google Local API includes thumbnails which have a very low resolution of 90px/90px. A customer reported that when they show it on the mobile screen in their app, the quality is too low, so they are unable to use our APIs for their use case.

Screenshot 2024-12-17 at 8 40 09 PM Screenshot 2024-12-17 at 8 44 02 PM

Public links: Playground 1

Internal links: Intercom | Inspect

@sonika-serpapi sonika-serpapi added status: queued Ready to work on type: feature Something new to build labels Dec 17, 2024
@hilmanski
Copy link

I think it's the same size as Google Local provides. Link
Unless they provide a higher resolution, I don't think we're able to provide one.

When clicking one of the places, we can see the bigger version of the image (different size).

CleanShot 2024-12-18 at 06 04 21

Maybe we can open a new feature request for that.

@sonika-serpapi
Copy link
Author

sonika-serpapi commented Dec 18, 2024

Thanks @hilmanski for looking into this.
I saw that the image actually is available in a higher resolution 180x180, but it is only rendered on the page in 90x90. When clicking the image source link, I see a higher resolution image. Perhaps we can scrape this higher resolution image.

Example:
Screenshot 2024-12-18 at 6 02 02 PM

This looks like:
Screenshot 2024-12-18 at 6 08 45 PM

Example Google Local page: https://www.google.com/search?q=Coffee&hl=en&gl=us&tbm=lcl#r...

@hilmanski
Copy link

hilmanski commented Dec 18, 2024

Thank you for providing more context. I somehow can't see the Coffee In in the left sidebar, so I can't debug the image; it's only available on the right panel:

CleanShot 2024-12-19 at 06 48 28

Maybe we can share the:

  • "Inspect page" on SerpApi so it's easier to replicate
  • share the original link of the image you mentioned above.

On the sidenote, I'm currently seeing this URL for the image:
https://lh5.googleusercontent.com/p/AF1QipO7cD8jBjNbxh-hIbaHRDtFLuFoghBuqD8sNDQO=w90-h90-n-k-no

Where we can tweak the URL to
https://lh5.googleusercontent.com/p/AF1QipO7cD8jBjNbxh-hIbaHRDtFLuFoghBuqD8sNDQO=w180-h180-n-k-no to get a higher resolution. Not sure if this image URL is also available on the endpoint we're currently using.

@sonika-serpapi
Copy link
Author

sonika-serpapi commented Dec 19, 2024

Sure, I've added the inspect above. It does not provide the exact same image, but still represents the issue.

Here is an example image source link I see when I inspect the Google Local page:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QAqRXhpZgAASUkqAAgAAAABADEBAgAHAAAAGgAAAAAAAABHb29nbGUAAP/bAIQAAwICCwoKCgoLCg...
It's not really a link, I think it's a Base64-encoded image.

For thumbnails in our Google Local API response, I generally do see the links in the format you mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: queued Ready to work on type: feature Something new to build
Projects
None yet
Development

No branches or pull requests

2 participants