serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
45 stars 3 forks source link

[Google Maps Photos API] [New API] Bulk Image Fetching for Google Maps Photos API #1664

Open ProV1X opened 3 weeks ago

ProV1X commented 3 weeks ago

The current Google Maps API approach to fetching business images presents challenges for user experience and efficiency:

  1. Low-Resolution Thumbnails: The API returns thumbnails that are too low in resolution for practical use in applications.
  2. Individual Requests for Full-Size Images: Developers must send individual requests to the Google Maps Photos API endpoint for each business in the local_results, causing significant delays when fetching images for multiple businesses.
  3. Suboptimal User Experience: The current approach can lead to delayed loading of complete business data, impacting end-user experience, even with Ludicrous Speed enabled.
  4. Increased Rate Limiting Risk: Making numerous individual requests for images increases the likelihood of hitting rate limits, especially for applications that fetch data for many businesses simultaneously.

Proposed Solution:

A new bulk image fetching endpoint for the Google Maps APIs could address these issues through two possible implementations:

Implementation 1: Bulk Image Fetching by Data IDs

Implementation 2: Bulk Image Fetching by Search ID

Benefits (Both Implementations):

Example Usage (Implementation 1):

curl --get https://serpapi.com/search \
 -d engine="bulk_google_maps_photos" \
 -d data_ids="data_id_1%2Cdata_id_2..." \
 -d api_key="YOUR_API_KEY"

Example Usage (Implementation 2):

curl --get https://serpapi.com/search \
 -d engine="bulk_google_maps_photos" \
 -d search_id="YOUR_SEARCH_ID" \
 -d api_key="YOUR_API_KEY"

I know this API would be a game-changer for me and a valuable addition to the awesome suite of APIs you already have available. Thank you for your consideration.

schaferyan commented 2 weeks ago

This customer also reached out to support:

Front | Intercom

I let them know this is probably out of scope for us and directed them to https://github.com/serpapi/public-roadmap/issues/66