["next"]
page token is still providing
["serpapi_pagination"]["next"]
when there's no articles left.
The same goes if set result offset to something impossible, like
start=30000
, but the
["next"]
page token is still there (second screenshot).
In Python, this behavior causes
KeyError
:
for article in results["articles"]: KeyError: 'articles'
.