Skip to main content
POST
/
api
/
blind
/
layoffs
/
search
/blind/layoffs/search
curl --request POST \
  --url https://api.anysite.io/api/blind/layoffs/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "keyword": "",
  "industry": "",
  "location": "",
  "date_from": "",
  "date_to": "",
  "sort": "recent"
}
'
import requests

url = "https://api.anysite.io/api/blind/layoffs/search"

payload = {
"count": 2,
"timeout": 300,
"keyword": "",
"industry": "",
"location": "",
"date_from": "",
"date_to": "",
"sort": "recent"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
count: 2,
timeout: 300,
keyword: '',
industry: '',
location: '',
date_from: '',
date_to: '',
sort: 'recent'
})
};

fetch('https://api.anysite.io/api/blind/layoffs/search', 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.anysite.io/api/blind/layoffs/search",
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([
'count' => 2,
'timeout' => 300,
'keyword' => '',
'industry' => '',
'location' => '',
'date_from' => '',
'date_to' => '',
'sort' => 'recent'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);

$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.anysite.io/api/blind/layoffs/search"

payload := strings.NewReader("{\n \"count\": 2,\n \"timeout\": 300,\n \"keyword\": \"\",\n \"industry\": \"\",\n \"location\": \"\",\n \"date_from\": \"\",\n \"date_to\": \"\",\n \"sort\": \"recent\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

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.anysite.io/api/blind/layoffs/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 2,\n \"timeout\": 300,\n \"keyword\": \"\",\n \"industry\": \"\",\n \"location\": \"\",\n \"date_from\": \"\",\n \"date_to\": \"\",\n \"sort\": \"recent\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/blind/layoffs/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 2,\n \"timeout\": 300,\n \"keyword\": \"\",\n \"industry\": \"\",\n \"location\": \"\",\n \"date_from\": \"\",\n \"date_to\": \"\",\n \"sort\": \"recent\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "company_name": "<string>",
    "@type": "BlindLayoff",
    "company_alias": "<string>",
    "company_image": "<string>",
    "industries": [],
    "headquarters": "<string>",
    "layoff_location": "<string>",
    "layoff_date": "<string>",
    "date_precision": "<string>",
    "laid_off_count": 123,
    "laid_off_percent": 123,
    "total_employees_before": 123,
    "status": "<string>",
    "severity": "<string>",
    "is_verified": true,
    "source_url": "<string>",
    "discussion_url": "<string>",
    "news_url": "<string>",
    "news_title": "<string>",
    "news_source": "<string>",
    "news_summary": "<string>",
    "notes": "<string>",
    "created_at": 123,
    "updated_at": 123
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required
Required range: x >= 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
keyword
string
default:""
status
enum<string> | null
Available options:
rumor,
confirmed,
in_progress,
completed
severity
enum<string> | null
Available options:
small,
medium,
large
industry
string
default:""
location
string
default:""
date_from
string
default:""
date_to
string
default:""
sort
enum<string>
default:recent
Available options:
recent,
oldest,
most_laid_off,
company

Response

Successful Response

id
string
required
company_name
string
required
@type
string
default:BlindLayoff
company_alias
string | null
company_image
string | null
industries
string[]
headquarters
string | null
layoff_location
string | null
layoff_date
string | null
date_precision
string | null
laid_off_count
integer | null
laid_off_percent
number | null
total_employees_before
integer | null
status
string | null
severity
string | null
is_verified
boolean | null
source_url
string | null
discussion_url
string | null
news_url
string | null
news_title
string | null
news_source
string | null
news_summary
string | null
notes
string | null
created_at
integer | null
updated_at
integer | null