Update Account Limits
curl --request POST \
--url https://api.lobstr.io/v1/accounts \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"account": "<string>",
"type": "<string>",
"params": {}
}
'import requests
url = "https://api.lobstr.io/v1/accounts"
payload = {
"account": "<string>",
"type": "<string>",
"params": {}
}
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({account: '<string>', type: '<string>', params: {}})
};
fetch('https://api.lobstr.io/v1/accounts', 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/accounts",
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([
'account' => '<string>',
'type' => '<string>',
'params' => [
]
]),
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/accounts"
payload := strings.NewReader("{\n \"account\": \"<string>\",\n \"type\": \"<string>\",\n \"params\": {}\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/accounts")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"account\": \"<string>\",\n \"type\": \"<string>\",\n \"params\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/accounts")
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 \"account\": \"<string>\",\n \"type\": \"<string>\",\n \"params\": {}\n}"
response = http.request(request)
puts response.read_body{
"params.default": {},
"params.user": {},
"params.user.batch.current": 123,
"params.user.batch.last_batch_at": "<string>",
"params.user.[attribute].value": 123,
"params.user.[attribute].timestamp": 123
}Account
Update Account Limits
Configure account-specific operational limits for rate limiting and batch processing
POST
/
v1
/
accounts
Update Account Limits
curl --request POST \
--url https://api.lobstr.io/v1/accounts \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"account": "<string>",
"type": "<string>",
"params": {}
}
'import requests
url = "https://api.lobstr.io/v1/accounts"
payload = {
"account": "<string>",
"type": "<string>",
"params": {}
}
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({account: '<string>', type: '<string>', params: {}})
};
fetch('https://api.lobstr.io/v1/accounts', 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/accounts",
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([
'account' => '<string>',
'type' => '<string>',
'params' => [
]
]),
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/accounts"
payload := strings.NewReader("{\n \"account\": \"<string>\",\n \"type\": \"<string>\",\n \"params\": {}\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/accounts")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"account\": \"<string>\",\n \"type\": \"<string>\",\n \"params\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/accounts")
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 \"account\": \"<string>\",\n \"type\": \"<string>\",\n \"params\": {}\n}"
response = http.request(request)
puts response.read_body{
"params.default": {},
"params.user": {},
"params.user.batch.current": 123,
"params.user.batch.last_batch_at": "<string>",
"params.user.[attribute].value": 123,
"params.user.[attribute].timestamp": 123
}To update account-specific operational limits (like daily profile visits, search limits, or batch size), use this endpoint. The
params object contains the updated values for batch size, daily limits per action, or time gaps between batches.
Parameter Keys
| Param Key | Type | Description |
|---|---|---|
| batch | integer | (Optional) Updated batch size per launch. Controls how many actions run per batch |
| batch_hours | integer | (Optional) Delay in hours between each batch run |
| [attribute] | integer | (Optional) Daily limit for the specific attribute like profiles, searches, or messages |
Headers
string
required
Your API authentication token. Value:
Token YOUR_API_KEYstring
required
Must be application/json. Value:
application/jsonRequest Body
string
required
Account hash to update. Example:
"2372242060b59e03ac39f7691765bbf8"string
required
Account type identifier. Example:
"sales-nav-sync"object
required
Object containing limit parameters to update. Example:
{"batch": 20, "profiles": 150, "searches": 199, "batch_hours": 2}Response Field Explanations
object
Default account limits for this account type. Example:
{...}object
User-configured limits with current usage tracking. Example:
{...}integer
Current batch count. Example:
0string
Timestamp of last batch execution. Example:
"18/07/2022 21:47:09"integer
Current usage count for this attribute today. Example:
0integer
Unix timestamp when the daily counter resets. Example:
1716508800Adjust batch and batch_hours to control how aggressively your account scrapes. Lower values help avoid platform rate limits.
Don’t exceed the max values defined in the account type’s default params. Higher limits may trigger anti-bot measures.
The params.user object tracks real-time usage. Use it to monitor how close you are to daily limits.
Set conservative limits initially and increase gradually based on your account’s health and platform tolerance.
Code Examples
curl -X POST "https://api.lobstr.io/v1/accounts" \
-H "Authorization: Token YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"account": "2372242060b59e03ac39f7691765bbf8",
"type": "sales-nav-sync",
"params": {
"batch": 20,
"profiles": 150,
"searches": 199,
"batch_hours": 2
}
}'
import requests
url = "https://api.lobstr.io/v1/accounts"
headers = {
"Authorization": "Token YOUR_API_KEY",
"Content-Type": "application/json"
}
# Update limits for a Sales Navigator account
payload = {
"account": "2372242060b59e03ac39f7691765bbf8",
"type": "sales-nav-sync",
"params": {
"batch": 20, # Profiles per launch
"profiles": 150, # Daily profile limit
"searches": 199, # Daily search limit
"batch_hours": 2 # Hours between batches
}
}
response = requests.post(url, headers=headers, json=payload)
data = response.json()
print(f"Account: {data['username']}")
print(f"Status: {data['status_code_info']}")
print(f"\nUpdated limits:")
user_params = data['params']['user']
print(f" Batch size: {user_params['batch']['max']}")
print(f" Profiles/day: {user_params['profiles']['max']}")
print(f" Searches/day: {user_params['searches']['max']}")
print(f" Batch interval: {user_params['batch_hours']['max']} hours")
Response
200
{
"id": "2372242060b59e03ac39f7691765bbf8",
"object": "account",
"username": "user@domain.com",
"created_at": "2022-06-16T05:26:31Z",
"last_synchronization_time": "2022-06-17T14:01:08Z",
"status": "200",
"status_code_info": "synchronized",
"status_code_description": "Success!",
"type": "sales-nav-sync",
"params": {
"default": {
"batch": {
"max": 20,
"default": 20,
"attribute": "profiles",
"description": "Number of profiles visited per launch"
},
"profiles": {
"max": 150,
"default": 150,
"description": "Maximum number of profile requests per day"
},
"searches": {
"max": 200,
"default": 200,
"description": "Maximum number of searches per day"
},
"batch_hours": {
"max": 2,
"default": 2,
"description": "Hours between each launch during a day"
}
},
"user": {
"batch": {
"max": 20,
"current": 0,
"default": 20,
"attribute": "profiles",
"start_time": null,
"last_batch_at": "18/07/2022 21:47:09"
},
"profiles": {
"max": 150,
"value": 0,
"default": 150,
"timestamp": 1716508800,
"start_time": null
},
"searches": {
"max": 199,
"value": 0,
"default": 200,
"timestamp": 1716508800,
"start_time": null
},
"batch_hours": {
"max": 2,
"value": 0,
"default": 2,
"description": "Hours between each launch during a day"
}
}
},
"updated_at": "2025-03-20T11:49:01Z",
"account_type_hash": "cf67cafe03776e796f02a29f29ab2866",
"squids": [],
"baseurl": "https://www.linkedin.com",
"cookies": [
{"name": "li_at", "required": true},
{"name": "JSESSIONID", "required": true},
{"name": "li_a", "required": true}
],
"icon": "<base64 image data>"
}
400
{
"detail": "Invalid parameters. Check account hash and type."
}
404
{
"detail": "Account not found."
}
⌘I