const apiKey = "your api key here" // update with your api_key
const listId = 0 // update with the id of the list that you would like returned
const myHeaders = new Headers();
myHeaders.append("Authorization", `Bearer ${apiKey}`);
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch(`https://wiza.co/api/lists/${listId}/contacts?segment=people`, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));{
"status": {
"code": 200,
"message": ""
},
"data": [
{
"list_name": "from api1",
"email_type": "work",
"email_status": "risky",
"email": "stephen@wiza.co",
"full_name": "Stephen Hakami",
"first_name": "Stephen",
"last_name": "Hakami",
"title": "Founder, Chief Executive Officer",
"location": "New York / Toronto",
"linkedin": "https://www.linkedin.com/in/stephen-hakami-5babb21b0/",
"domain": "wiza.co",
"company": "Wiza",
"company_domain": "wiza.co",
"company_industry": "<string>",
"company_subindustry": "<string>",
"company_size": "<string>",
"company_size_range": "<string>",
"company_founded": "<string>",
"company_revenue": "<string>",
"company_funding": "<string>",
"company_type": "<string>",
"company_linkedin": "https://www.linkedin.com/company/wizainc/",
"company_twitter": "<string>",
"company_facebook": "<string>",
"company_description": "<string>",
"company_last_funding_round": "<string>",
"company_last_funding_amount": "<string>",
"company_last_funding_at": "<string>",
"company_location": "<string>",
"company_street": "<string>",
"company_locality": "<string>",
"company_region": "<string>",
"company_country": "<string>"
}
]
}Get contacts for a list.
By default a json response is returned. To get a csv response, append .csv to the url path.
const apiKey = "your api key here" // update with your api_key
const listId = 0 // update with the id of the list that you would like returned
const myHeaders = new Headers();
myHeaders.append("Authorization", `Bearer ${apiKey}`);
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch(`https://wiza.co/api/lists/${listId}/contacts?segment=people`, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));{
"status": {
"code": 200,
"message": ""
},
"data": [
{
"list_name": "from api1",
"email_type": "work",
"email_status": "risky",
"email": "stephen@wiza.co",
"full_name": "Stephen Hakami",
"first_name": "Stephen",
"last_name": "Hakami",
"title": "Founder, Chief Executive Officer",
"location": "New York / Toronto",
"linkedin": "https://www.linkedin.com/in/stephen-hakami-5babb21b0/",
"domain": "wiza.co",
"company": "Wiza",
"company_domain": "wiza.co",
"company_industry": "<string>",
"company_subindustry": "<string>",
"company_size": "<string>",
"company_size_range": "<string>",
"company_founded": "<string>",
"company_revenue": "<string>",
"company_funding": "<string>",
"company_type": "<string>",
"company_linkedin": "https://www.linkedin.com/company/wizainc/",
"company_twitter": "<string>",
"company_facebook": "<string>",
"company_description": "<string>",
"company_last_funding_round": "<string>",
"company_last_funding_amount": "<string>",
"company_last_funding_at": "<string>",
"company_location": "<string>",
"company_street": "<string>",
"company_locality": "<string>",
"company_region": "<string>",
"company_country": "<string>"
}
]
}Enter your bearer token (your API key) in the Authorization header in the format Bearer {token}
id
Specify the segment of contacts to return.
| Segment | Description |
|---|---|
| people | All contacts |
| valid | Only valid contacts |
| risky | Only risky contacts |
people, valid, risky "people"