Skip to main content
GET
/
api
/
lists
/
{id}
/
contacts
JavaScript
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Enter your bearer token (your API key) in the Authorization header in the format Bearer {token}

Path Parameters

id
string
required

id

Query Parameters

segment
enum<string>
required

Specify the segment of contacts to return.

SegmentDescription
peopleAll contacts
validOnly valid contacts
riskyOnly risky contacts
Available options:
people,
valid,
risky
Example:

"people"

Response

successful

status
object
data
object[]