[Google Maps Photos API] Every second page of 10 photos is missing

Open
#4,661 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Domain
api

Research direction

This repository is a public roadmap with no source code, so the bug sits in SerpApi's hosted google_maps_photos engine, not in a file here. Reproduce by running the search_parameters in the body (data_id 0x47a7467ed1bc0f0f:0x7937b4b60da33ac4, category_id CgIgARICEAE) and following next-page links, comparing against the linked SerpApi inspect pages. Done means all 40 owner photos come back across pages, with the cause linked to public-roadmap issue 3788 if confirmed.

Written by the indexing model from the issue text.

Description

type: bug

The API only returns photos 1-10, 21-30, etc. skipping every second page of 10 photos when filtering by category.

Example

This location

The above location at the time of writing has exactly 40 owner photos (Category id: CgIgARICEAE)
The following searches have the pages returned by SerpAPI:
Page 1: 6b044a2d0ef330895d72f3d1 (has owner photos 1-10)
Page 2: 6b044a2e00a7fbd39650cbe8 (has owner photos 21-30)
Page 3: 6b044a2f1e04eee70b0f879f (returned empty)

How to reproduce

Search with these parameters:

"search_parameters": {
    "engine": "google_maps_photos",
    "data_id": "0x47a7467ed1bc0f0f:0x7937b4b60da33ac4",
    "hl": "en",
    "category_id": "CgIgARICEAE"
}

And follow the next page urls until the end.

Note

It might be connected to Issue 3788, as it concludes that the number of photos per page returned by Google was reduced from 20 to 10.

Dominant language
No language data
Stars
159
Forks
58
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from serpapi/public-roadmap

All issues in serpapi/public-roadmap

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.