Create Bulk API endpoint to allow batch searches submission. Batch searches will be non-realtime.
Possible request/response format
Create new batch
request example
curl 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 example
curl 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.