const apiKey = "your api key here" // update with your api_key
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", `Bearer ${apiKey}`);
const raw = JSON.stringify({
"filters": {
"job_title": [
{
"v": "CEO",
"s": "i"
}
],
"job_title_level": [
"CXO"
],
"job_role": [
"finance"
],
"location": [
{
"v": "Toronto, Ontario, Canada",
"b": "city",
"s": "i"
}
],
"company_location": [
{
"v": "Ontario, Canada",
"b": "state",
"s": "i"
}
],
"company_size": [
"1-10",
"11-50"
],
"company_industry": [
"financial services"
],
"year_founded_start": "2010",
"year_founded_end": "2024"
}
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://wiza.co/api/prospects/search", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));