Configure Chain
curl --request POST \
--url https://api.lobstr.io/v1/squids/{squid_hash}/chain \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"target_module_id": "<string>",
"field_map": {},
"autostart": true,
"cluster_name": "<string>",
"cluster_concurrency": 123
}
'import requests
url = "https://api.lobstr.io/v1/squids/{squid_hash}/chain"
payload = {
"target_module_id": "<string>",
"field_map": {},
"autostart": True,
"cluster_name": "<string>",
"cluster_concurrency": 123
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
target_module_id: '<string>',
field_map: {},
autostart: true,
cluster_name: '<string>',
cluster_concurrency: 123
})
};
fetch('https://api.lobstr.io/v1/squids/{squid_hash}/chain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/squids/{squid_hash}/chain",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'target_module_id' => '<string>',
'field_map' => [
],
'autostart' => true,
'cluster_name' => '<string>',
'cluster_concurrency' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/squids/{squid_hash}/chain"
payload := strings.NewReader("{\n \"target_module_id\": \"<string>\",\n \"field_map\": {},\n \"autostart\": true,\n \"cluster_name\": \"<string>\",\n \"cluster_concurrency\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.lobstr.io/v1/squids/{squid_hash}/chain")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"target_module_id\": \"<string>\",\n \"field_map\": {},\n \"autostart\": true,\n \"cluster_name\": \"<string>\",\n \"cluster_concurrency\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/squids/{squid_hash}/chain")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"target_module_id\": \"<string>\",\n \"field_map\": {},\n \"autostart\": true,\n \"cluster_name\": \"<string>\",\n \"cluster_concurrency\": 123\n}"
response = http.request(request)
puts response.read_bodyGoogle Maps Leads Scraper
Configure Chain
Automatically feed Google Maps leads into a Google Maps Reviews scrape
POST
/
v1
/
squids
/
{squid_hash}
/
chain
Configure Chain
curl --request POST \
--url https://api.lobstr.io/v1/squids/{squid_hash}/chain \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"target_module_id": "<string>",
"field_map": {},
"autostart": true,
"cluster_name": "<string>",
"cluster_concurrency": 123
}
'import requests
url = "https://api.lobstr.io/v1/squids/{squid_hash}/chain"
payload = {
"target_module_id": "<string>",
"field_map": {},
"autostart": True,
"cluster_name": "<string>",
"cluster_concurrency": 123
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
target_module_id: '<string>',
field_map: {},
autostart: true,
cluster_name: '<string>',
cluster_concurrency: 123
})
};
fetch('https://api.lobstr.io/v1/squids/{squid_hash}/chain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/squids/{squid_hash}/chain",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'target_module_id' => '<string>',
'field_map' => [
],
'autostart' => true,
'cluster_name' => '<string>',
'cluster_concurrency' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/squids/{squid_hash}/chain"
payload := strings.NewReader("{\n \"target_module_id\": \"<string>\",\n \"field_map\": {},\n \"autostart\": true,\n \"cluster_name\": \"<string>\",\n \"cluster_concurrency\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.lobstr.io/v1/squids/{squid_hash}/chain")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"target_module_id\": \"<string>\",\n \"field_map\": {},\n \"autostart\": true,\n \"cluster_name\": \"<string>\",\n \"cluster_concurrency\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/squids/{squid_hash}/chain")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"target_module_id\": \"<string>\",\n \"field_map\": {},\n \"autostart\": true,\n \"cluster_name\": \"<string>\",\n \"cluster_concurrency\": 123\n}"
response = http.request(request)
puts response.read_bodyOnce your Google Maps Leads Scraper squid collects place URLs, you can chain it to a Google Maps Reviews Scraper so that reviews are fetched automatically for every place found — no manual steps required.
When a leads run completes with a status of
DONE, the scheduler extracts the url field from each result and queues it as a task on the reviews squid, then starts a new run. Runs that end in ERROR do not trigger the chain.
Headers
string
required
Your API authentication token. Value:
Token YOUR_API_KEYstring
required
Must be application/json. Value:
application/jsonRequest Body
string
required
Hash ID of the Google Maps Reviews Scraper crawler. Retrieve it from
GET /v1/crawlers.object
required
Maps the
url field from leads results to the url input on the reviews crawler. Always {"url": "url"} for this chain.boolean
Whether the reviews run starts automatically. Defaults to
true.string
Name for the auto-created reviews squid. Example:
"Google Maps Reviews (chained)".integer
Concurrency for the reviews squid. Defaults to
1.Code Examples
curl -X POST "https://api.lobstr.io/v1/squids/YOUR_LEADS_SQUID_HASH/chain" \
-H "Authorization: Token YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"target_module_id": "GOOGLE_MAPS_REVIEWS_CRAWLER_HASH",
"field_map": {"url": "url"},
"autostart": true,
"cluster_name": "Google Maps Reviews (chained)",
"cluster_concurrency": 3
}'
import requests
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.lobstr.io/v1"
headers = {
"Authorization": f"Token {API_KEY}",
"Content-Type": "application/json"
}
leads_squid_id = "YOUR_LEADS_SQUID_HASH"
response = requests.post(
f"{BASE_URL}/squids/{leads_squid_id}/chain",
headers=headers,
json={
"target_module_id": "GOOGLE_MAPS_REVIEWS_CRAWLER_HASH",
"field_map": {"url": "url"},
"autostart": True,
"cluster_name": "Google Maps Reviews (chained)",
"cluster_concurrency": 3
}
)
chain = response.json()
print(f"Chain configured: {chain['id']}")
print(f"Target crawler: {chain['target_module']['public_name']}")
print(f"Autostart: {chain['autostart']}")
Response
201
{
"id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"target_module": {
"id": "9a3f1c8b2e7d4a56f0e1b2c3d4e5f678",
"public_name": "Google Maps Reviews Scraper",
"name": "googlemapreviews_matrix",
"max_concurrency": 10
},
"target_cluster": null,
"field_map": {"url": "url"},
"is_active": true,
"autostart": true,
"cluster_name": "Google Maps Reviews (chained)",
"cluster_concurrency": 3,
"created_at": "2026-04-28T10:00:00Z"
}
target_cluster is null until the first leads run completes and triggers the chain. After that it will contain the auto-created reviews squid.Set
autostart: false if you want to review the queued tasks before the reviews run starts.⌘I