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));{
"status": {
"code": 200,
"message": ""
},
"data": {
"total": 15,
"profiles": [
{
"full_name": "Stephen Hakami",
"linkedin_url": "linkedin.com/in/stephen-hakami-5babb21b0",
"industry": "Computer Software",
"job_title": "Founder, Chief Executive Officer",
"job_title_role": null,
"job_title_sub_role": null,
"job_company_name": "Wiza",
"job_company_website": "wiza.co",
"location_name": "Toronto, Ontario, Canada"
}
]
}
}Find the number of prospects that match your search filters
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));{
"status": {
"code": 200,
"message": ""
},
"data": {
"total": 15,
"profiles": [
{
"full_name": "Stephen Hakami",
"linkedin_url": "linkedin.com/in/stephen-hakami-5babb21b0",
"industry": "Computer Software",
"job_title": "Founder, Chief Executive Officer",
"job_title_role": null,
"job_title_sub_role": null,
"job_company_name": "Wiza",
"job_company_website": "wiza.co",
"location_name": "Toronto, Ontario, Canada"
}
]
}
}Enter your bearer token (your API key) in the Authorization header in the format Bearer {token}