Batch processing
Example one - searching for multiple queries at one location
curl -X POST 'https://api.webit.live/api/v1/batch/serp' \
--header 'Authorization: Basic <credential string>' \
--header 'Content-Type: application/json' \
--data-raw '{
"requests": [
{ "query": "Restaurants" },
{ "query": "Theaters" },
{ "query": "Cafes" }
],
"coordinates": {
"latitude": "40.7123695",
"longitude": "-74.0357317"
},
"search_engine": "google_maps_search",
"storage_type": "s3",
"storage_url": "s3://Your.Repository.Path/",
"callback_url": "https://your.callback.url/path"
}'import requests
url = 'https://api.webit.live/api/v1/batch/serp'
headers = {
'Authorization': 'Basic <credential string>',
'Content-Type': 'application/json'
}
data = {
"requests": [
{ "query": "Restaurants" },
{ "query": "Theaters" },
{ "query": "Cafes" }
],
"coordinates": {
"latitude": "40.7123695",
"longitude": "-74.0357317"
},
"search_engine": "google_maps_search",
"storage_type": "s3",
"storage_url": "s3://Your.Repository.Path/",
"callback_url": "https://your.callback.url/path"
}
response = requests.post(url, headers=headers, json=data)
print(response.status_code)
print(response.json())Example two - searching for one query at multiple locations
Example three - combining queries and locations
Request options
Parameter
Required
Type
Description
Response
Checking batch progress and status
Checking Batch List
Parameters
Parameter
Required
Description
Retrieving Batch Summary
Response Codes
Status
Description
Last updated












