Searches List API
in progress
Illia Zub
in progress
Instead of
page=x
we'll use cursor-based pagination (before={id}
or after={id}
).During the last seven days, our DB was under 100% CPU load because of the concurrent requests to
/searches
with page=100500
and more. Cursor-based pagination is more common in many APIs because it's faster and will return the same results even when sending new searches.Reference specifications:
- JSON API Cursor Pagination
- Stripe API Pagination
J
JS
?
Julien Khaleghy
JS:Hi JS, we do have an unofficial way. Just make a request to https://serpapi.com/searches.json?api_key=x and you’ll get back a list of ids. You should be able to paginate here as well. (with page=x) We’ll be making this better soon.