Update Settings
curl --request POST \
--url https://api.lobstr.io/v1/squids/{squid_hash} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.lobstr.io/v1/squids/{squid_hash}"
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'}
};
fetch('https://api.lobstr.io/v1/squids/{squid_hash}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/squids/{squid_hash}"
req, _ := http.NewRequest("POST", url, nil)
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}")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/squids/{squid_hash}")
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>'
response = http.request(request)
puts response.read_bodyGlassdoor Jobs Scraper
Update Settings
Configure Glassdoor Jobs Scraper settings
POST
/
v1
/
squids
/
{squid_hash}
Update Settings
curl --request POST \
--url https://api.lobstr.io/v1/squids/{squid_hash} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.lobstr.io/v1/squids/{squid_hash}"
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'}
};
fetch('https://api.lobstr.io/v1/squids/{squid_hash}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/squids/{squid_hash}"
req, _ := http.NewRequest("POST", url, nil)
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}")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/squids/{squid_hash}")
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>'
response = http.request(request)
puts response.read_bodyConfigure your Glassdoor Jobs Scraper squid settings.
Headers
string
required
Your API authentication token. Value:
Token YOUR_API_KEYstring
required
Must be application/json. Value:
application/jsonSquid Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| location | string | — | City, state or country to search in, e.g. ‘New York, NY’ |
| date_posted | string | Any time | Only collect jobs posted within this window: Any time, Last 24 hours, Last 3 days, Last 7 days, Last 14 days, Last 30 days |
| job_type | string | Any | Employment type: Any, Full-time, Part-time, Contract, Temporary, Intern |
| seniority | string | Any | Seniority level: Any, Internship, Entry Level, Mid Level, Senior Level, Director, Executive |
| remote_only | boolean | false | Only collect jobs flagged as remote |
| easy_apply | boolean | false | Only collect jobs that can be applied to directly on Glassdoor |
| salary_min | integer | — | Min yearly salary in local currency |
| salary_max | integer | — | Max yearly salary in local currency |
| company_rating | string | Any | Only collect jobs from companies rated at least this (2.0, 2.5, 3.0, 3.5, 4.0) |
| company_size | string | Any | Only from companies of this size |
| industry | string | Any | Only from companies in this industry |
| job_function | string | Any | Only jobs in this job function |
| radius | string | Within 50 km | How far around the location to search |
| sort_by | string | Relevance | Relevance or Most recent |
| job_details | boolean | true | Open every job to collect full description, employment type, salary, company info |
| max_results | integer | 900 | Max jobs per search (Glassdoor max ~900) |
| max_unique_results_per_run | integer | — | Max unique jobs across all tasks in the run |
| fetch_since | string | — | Only collect jobs posted after this threshold |
| fetch_since_timezone | string | — | Timezone for fetch_since |
Code Examples
curl -X POST https://api.lobstr.io/v1/squids/4bc153aae1e138d894b630bf165825ee \
-H "Authorization: Token YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"location": "New York, NY",
"date_posted": "Last 7 days",
"job_type": "Full-time",
"seniority": "Mid Level",
"job_details": true,
"max_results": 900
}'
import requests
response = requests.post(
"https://api.lobstr.io/v1/squids/4bc153aae1e138d894b630bf165825ee",
headers={
"Authorization": "Token YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"location": "New York, NY",
"date_posted": "Last 7 days",
"job_type": "Full-time",
"seniority": "Mid Level",
"job_details": True,
"max_results": 900,
},
)
print(response.json())
Response
201
{"params": {"location": "New York, NY", "date_posted": "Last 7 days", "job_type": "Full-time", "seniority": "Mid Level", "job_details": true, "max_results": 900}}