Add Bulk API endpoint
in progress
Illia Zub
Create Bulk API endpoint to allow batch searches submission. Batch searches will be non-realtime.
Possible request/response format
Create new batch
request examplecurl https://serpapi.com/bulk -d '[{"q": "coffee"}, {"q": "tea"}, {"q": "ice cream"}]' -H "Content-Type: application/json" -X POST
Create new batch
response example{"id": "5f4d19e8e53e066add18ecf0","url": "https://serpapi.com/bulk-jobs/5f4d19e8e53e066add18ecf0", "status": "Queued | Processing | Error | Completed", }
Get batch results
request examplecurl https://serpapi.com/bulk-jobs/5f4d19e8e53e066add18ecf0
Get batch results
response example[
{"job_id": "5f4d19e8e53e066add18ecf0", "id": "5f4d19e8e53e066add18ecf2", "q": "tea", "scheduled_at": Date, "status": "Processing"},
{"job_id": "5f4d19e8e53e066add18ecf0", "id": "5f4d19e8e53e066add18ecf1", "q": "coffee", "scheduled_at": Date, "status": "Queued"},
{"job_id": "5f4d19e8e53e066add18ecf0", "id": "5f4d19e8e53e066add28ecf1", "q": "ice cream", "scheduled_at": Date, "status": "Completed"},
]
Rate limits
Limit up to 100 searches per batch. Amount of batches per hour will depend on search limits per hour for each plan.
Client libraries
Support batch requests in Ruby, Golang, Python, .NET and Node.js wrappers.
Emirhan Akdeniz
The issue has been moved to: https://github.com/serpapi/public-roadmap/issues/66
Emirhan Akdeniz
The issue has been moved to: https://github.com/serpapi/public-roadmap/issues/66
Bill Frischling
Plus 1,000%! We have a whole internal tool built for this using Google Sheets and SERP. Would love not to support it and palm it off on y'all!
Ali
Bill Frischling: Hello Bill,
Not our whole API will work this way. We will still have our real time API.
Bill Frischling
Ali: Of course! No worries. When we use SERP it's usually for things like "{{COMPANYNAME}} official site -site:sec.gov -site:nasdaq.com" on a list of 5,000 names. If there was a native way to batch that (per the ticket) we'd rather than than our own hack. Even capped at 100 searches (higher is better), we're down.
Illia Zub
in progress