You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--fields silently disables --all-pages: only page 1 is returned #8
--fields and --all-pages are mutually incompatible in practice. Combining them returns page 1 only, exits 0, and prints nothing to stderr. The pagination flag is inert.
Runs 2 and 3 are byte-identical after jq -S '.organic_results'. adding --all-pages--max-pages 3 changes nothing.
Suspect
Passing --fields sets json_restrictor, which prunes the response server-side. That prune removes serpapi_pagination, the only thing the pagination loop reads to find the next page.
Activity
adarshdigievo commentedon Jul 27, 2026
@smrnjeet222 Thanks for the report.
Are you using the CLI built from this repo source? If so, can you test whether #9 solves this issue?
smrnjeet222 commentedon Jul 27, 2026
Yes, built from source
go build ./cmd/serpapiat @ 853dbae.Tested #9 just now against the live API. It fixes it:
853dbae: --fields + --all-pages --max-pages 3 → 8 results, 1 page
#9: same command → 17 results, 3 pages