NAV
Shell Node.js

Introduction

Welcome to the MadKudu API.

We have official language bindings in:

You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.

Authentication

# With shell, you can just pass the correct header with each request
curl "https://api.madkudu.com/v1/ping" \
  -H "Authorization: Basic QUJDRDEyMzQ6"
# Make sure to replace `QUJDRDEyMzQ6` with the correct value.
const madkudu = require("@madkudu/madkudu-node")("your_api_key");

The MadKudu API uses HTTP Basic Auth and requires using HTTPS on all API calls.

Your API Key should be used as the basic auth username. You do not need to provide a password.

For example, if your user’s API key was ABCD1234, you need to Base64 encode the string ABCD1234: (Please note the colon at the end) and prepend the string Basic`. In this case, this would result in a final header of:

Authorization: Basic QUJDRDEyMzQ6

Rate limiting

You can make up to 600 requests per endpoint per minute. Once you reach that limit, you will start receiving errors (HTTP code 429).

Demographics API

Companies

Our Company API lets you lookup a company profile via a domain name. It returns the predictive customer fit of the company (aka. demographics score), the top signals behind this score (ie. why is this company a good fit or not), and some light demographics information (eg. number of employees, industry, etc.).

curl "https://api.madkudu.com/v1/companies?domain=madkudu.com" \
  -H "Authorization: Basic QUJDRDEyMzQ6"
const company = await madkudu.company.find({ domain: 'madkudu.com' })
console.log(company);
});
{
  "object_type": "company",
  "domain": "madkudu.com",
  "properties": {
    "name": "MadKudu",
    "domain": "madkudu.com",
    "location": {
      "state": "California",
      "state_code": "CA",
      "country": "United States",
      "country_code": "US",
      "tags": ["english_speaking", "high_gdp_per_capita"]
    },
    "number_of_employees": 10,
    "industry": "Internet Software & Services",
    "customer_fit": {
      "segment": "good",
      "score": 37,
      "top_signals": [
        {
          "name": "employee count",
          "value": 10,
          "type": "negative"
        },
        {
          "name": "based in a country where gdp per capita",
          "value": "high",
          "type": "positive"
        },
        {
          "name": "capital raised",
          "value": 1370000,
          "type": "positive"
        },
        {
          "name": "belongs to industry where revenue per employee",
          "value": "high",
          "type": "positive"
        },
        {
          "name": "number of tech found on website",
          "value": 10,
          "type": "positive"
        },
        {
          "name": "web traffic volume",
          "value": "low",
          "type": "negative"
        }
      ],
      "top_signals_formated": "↑ based in a country where gdp per capita is high\n↑ capital raised is 1,370,000\n↑ belongs to industry where revenue per employee is high\n↑ number of tech found on website is 10\n✖ employee count is 10\n✖ web traffic volume is low"
    },
    "predicted_value": 327.4
  }
}

HTTP Request

GET https://api.madkudu.com/v1/companies?domain=:domain

Query Parameters

Parameter Description
domain string (required)

Company properties

Attribute Type Description
properties.name string The name of the company associated with this person
properties.domain string The domain of the company associated with this person
properties.location object The location of the company's headquarters
properties.location.state string The headquarters' state name
properties.location.state_code string The headquarters' two-character state code
properties.location.country string The headquarters's country
properties.location.country_code string The headquarters's two-character country code
properties.location.tags array An array of tags describing the location
properties.number_of_employees number The number of employees at the company
properties.industry string The industry of the company
properties.customer_fit object The standard MadKudu customer fit fields
properties.customer_fit.segment string The standard MadKudu Customer Fit segment which is either "low", "medium", "good" or "very good"
propoerties.customer_fit.score number The standard MadKudu Customer Fit score which ranges from 0 to 100
properties.customer_fit.top_signals array The standard MadKudu Customer Fit signals presented in array format where each signal line is shown in name, value and type
properties.customer_fit.top_signals_formatted string The standard MadKudu Customer Fit signals presented all in one string
properties.predicted_value number (Optional) The value of an account before they have reached the end of the funnel (aka made a purchase), based on the historical value of similar accounts who have made the purchase.

Companies (with payload)

This API endpoint is similar to the one above but it lets you provide your own enriched company data.

{
  "object_type": "company",
  "domain": "madkudu.com",
  "properties": {
    "name": "MadKudu",
    "domain": "madkudu.com",
    "location": {
      "state": "California",
      "state_code": "CA",
      "country": "United States",
      "country_code": "US",
      "tags": ["english_speaking", "high_gdp_per_capita"]
    },
    "number_of_employees": 10,
    "industry": "Internet Software & Services",
    "customer_fit": {
      "segment": "good",
      "score": 37,
      "top_signals": [
        {
          "name": "employee count",
          "value": 10,
          "type": "negative"
        },
        {
          "name": "based in a country where gdp per capita",
          "value": "high",
          "type": "positive"
        },
        {
          "name": "capital raised",
          "value": 1370000,
          "type": "positive"
        },
        {
          "name": "belongs to industry where revenue per employee",
          "value": "high",
          "type": "positive"
        },
        {
          "name": "number of tech found on website",
          "value": 10,
          "type": "positive"
        },
        {
          "name": "web traffic volume",
          "value": "low",
          "type": "negative"
        }
      ],
      "top_signals_formated": "↑ based in a country where gdp per capita is high\n↑ capital raised is 1,370,000\n↑ belongs to industry where revenue per employee is high\n↑ number of tech found on website is 10\n✖ employee count is 10\n✖ web traffic volume is low"
    },
    "predicted_value": 327.4
  }
}

HTTP Request

POST https://api.madkudu.com/v1/companies

Query Parameters

Parameter Description
domain string (required)
company object (required)

Properties

See Company properties

Persons

Our Person API lets you lookup a person profile via an email address. It returns the predictive customer fit of the lead (aka. demographics score), the top signals behind this score (ie. why is this lead a good fit or not), and some light demographics information (eg. type of email, spam detection, number of employees, industry, etc.).

curl "https://api.madkudu.com/v1/persons?email=paul@madkudu.com" \
  -H "Authorization: Basic QUJDRDEyMzQ6"
const person = await madkudu.person.find({ email: 'paul@madkudu.com' });
console.log(person);
});
{
  "object_type": "person",
  "email": "paul@madkudu.com",
  "properties": {
    "first_name": "Paul",
    "last_name": "Cothenet",
    "domain": "madkudu.com",
    "is_student": false,
    "is_spam": false,
    "is_personal_email": false,
    "customer_fit": {
      "segment": "good",
      "score": 37,
      "top_signals": [
        {
          "name": "employee count",
          "value": 10,
          "type": "negative"
        },
        {
          "name": "based in a country where gdp per capita",
          "value": "high",
          "type": "positive"
        },
        {
          "name": "capital raised",
          "value": 1370000,
          "type": "positive"
        },
        {
          "name": "belongs to industry where revenue per employee",
          "value": "high",
          "type": "positive"
        },
        {
          "name": "number of tech found on website",
          "value": 10,
          "type": "positive"
        },
        {
          "name": "web traffic volume",
          "value": "low",
          "type": "negative"
        }
      ],
      "top_signals_formated": "↑ based in a country where gdp per capita is high\n↑ capital raised is 1,370,000\n↑ belongs to industry where revenue per employee is high\n↑ number of tech found on website is 10\n✖ employee count is 10\n✖ web traffic volume is low"
    },
    "predicted_value": 327.4
  },
  "company": {
    "properties": {
      "name": "MadKudu Inc",
      "domain": "madkudu.com",
      "location": {
        "state": "California",
        "state_code": "CA",
        "country": "United States",
        "country_code": "US",
        "tags": ["english_speaking", "high_gdp_per_capita"]
      },
      "number_of_employees": 17000,
      "industry": "Software",
      "predicted_value": 327.4
    }
  }
}

HTTP Request

GET https://api.madkudu.com/v1/persons?email=:email

Query Parameters

Parameter Description
email string (required)

Person properties

Attribute Type Description
properties.first_name string First name of the person
properties.last_name string Last name of the the person
properties.domain string The domain associated with this email address
properties.is_student boolean true if the email is identified as a student email
properties.is_spam boolean true if the email is identified as a spam email
properties.is_personal_email boolean true if the email is identified as a personal (or disposable) email address (e.g. gmail.com)
properties.customer_fit object The standard MadKudu customer fit fields
properties.customer_fit.segment string The standard MadKudu Customer Fit segment which is either "low", "medium", "good" or "very good"
propoerties.customer_fit.score number The standard MadKudu Customer Fit score which ranges from 0 to 100
properties.customer_fit.top_signals array The standard MadKudu Customer Fit signals presented in array format where each signal line is shown in name, value and type
properties.customer_fit.top_signals_formatted string The standard MadKudu Customer Fit signals presented all in one string
properties.predicted_value number (Optional) The value of a lead before they have reached the end of the funnel (aka made a purchase), based on the historical value of similar leads who have made the purchase.

Company properties

See Company properties

Persons (with payload)

This API endpoint is similar to the one above but it lets you provide your own enriched person data. It's used to allow very high volume tenants to send us directly the Clearbit payload for us to score.

{
  "object_type": "person",
  "email": "paul@madkudu.com",
  "properties": {
    "first_name": "Paul",
    "last_name": "Cothenet",
    "domain": "madkudu.com",
    "is_student": false,
    "is_spam": false,
    "is_personal_email": false,
    "customer_fit": {
      "segment": "good",
      "score": 37,
      "top_signals": [
        {
          "name": "employee count",
          "value": 10,
          "type": "negative"
        },
        {
          "name": "based in a country where gdp per capita",
          "value": "high",
          "type": "positive"
        },
        {
          "name": "capital raised",
          "value": 1370000,
          "type": "positive"
        },
        {
          "name": "belongs to industry where revenue per employee",
          "value": "high",
          "type": "positive"
        },
        {
          "name": "number of tech found on website",
          "value": 10,
          "type": "positive"
        },
        {
          "name": "web traffic volume",
          "value": "low",
          "type": "negative"
        }
      ],
      "top_signals_formated": "↑ based in a country where gdp per capita is high\n↑ capital raised is 1,370,000\n↑ belongs to industry where revenue per employee is high\n↑ number of tech found on website is 10\n✖ employee count is 10\n✖ web traffic volume is low"
    },
    "predicted_value": 327.4
  },
  "company": {
    "properties": {
      "name": "MadKudu Inc",
      "domain": "madkudu.com",
      "location": {
        "state": "California",
        "state_code": "CA",
        "country": "United States",
        "country_code": "US",
        "tags": ["english_speaking", "high_gdp_per_capita"]
      },
      "number_of_employees": 17000,
      "industry": "Software",
      "predicted_value": 327.4
    }
  }
}

HTTP Request

POST https://api.madkudu.com/v1/persons

Sample payload

{
  "email": "maxime.gaudin@madkudu.com",
  "person": {
    "id": "dcf17bf2-1598-4433-92ef-320201e2190a",
    "name": {
      "fullName": "Maxime Gaudin",
      "givenName": "Maxime",
      "familyName": "Gaudin"
    },
    "email": "maxime.gaudin@madkudu.com",
    "gender": "male",
    "location": "Mountain View, CA, US",
    "timeZone": "America/Los_Angeles",
    "utcOffset": -7,
    "geo": {
      "city": "Mountain View",
      "state": "California",
      "stateCode": "CA",
      "country": "United States",
      "countryCode": "US",
      "lat": 37.3860517,
      "lng": -122.0838511
    },
    "bio": "Co-founder at @MadKudu / @Techstars Boulder 2015. \nI love mountains, coffee and suffering.",
    "site": "http://attackwithnumbers.com",
    "avatar": "https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/dcf17bf2-1598-4433-92ef-320201e2190a",
    "employment": {
      "domain": "madkudu.com",
      "name": "MadKudu",
      "title": "student",
      "role": "engineering",
      "seniority": "executive"
    },
    "facebook": {
      "handle": null
    },
    "github": {
      "handle": null,
      "id": null,
      "avatar": null,
      "company": null,
      "blog": null,
      "followers": null,
      "following": null
    },
    "twitter": {
      "handle": "maxigaud",
      "id": 16282042,
      "bio": "",
      "followers": 1799,
      "following": 1567,
      "statuses": 17904,
      "favorites": 1551,
      "location": "Mountain View, CA",
      "site": "",
      "avatar": "https://pbs.twimg.com/profile_images/615277398100066304/lx_J0fC0.png"
    },
    "linkedin": {
      "handle": "in/paulcothenet"
    },
    "googleplus": {
      "handle": null
    },
    "aboutme": {
      "handle": null,
      "bio": null,
      "avatar": null
    },
    "gravatar": {
      "handle": "paulkudu",
      "urls": [

      ],
      "avatar": "https://secure.gravatar.com/avatar/d0c0fdb4d8869e5e2523959cd019f03b",
      "avatars": [
        {
          "url": "https://secure.gravatar.com/avatar/d0c0fdb4d8869e5e2523959cd019f03b",
          "type": "thumbnail"
        }
      ]
    },
    "fuzzy": false,
    "emailProvider": false,
    "indexedAt": "2018-04-09T17:26:06.533Z"
  },
  "company": {
    "id": "a996c075-7bf1-4324-ad26-e59e97ba4fd2",
    "name": "MadKudu",
    "legalName": "MadKudu, Inc.",
    "domain": "madkudu.com",
    "domainAliases": [

    ],
    "site": {
      "phoneNumbers": [
      ],
      "emailAddresses": [
        "hello@madkudu.com",
        "privacy@madkudu.com",
        "hannah@madkudu.com",
        "stephanie@madkudu.com",
        "hac@madkudu.com",
        "paul@madkudu.com",
        "francis@madkudu.com",
        "sam@madkudu.com"
      ]
    },
    "category": {
      "sector": "Information Technology",
      "industryGroup": "Software & Services",
      "industry": "Internet Software & Services",
      "subIndustry": "Internet Software & Services",
      "sicCode": "48",
      "naicsCode": "51"
    },
    "tags": [
      "SAAS",
      "B2B",
      "Technology",
      "Information Technology & Services"
    ],
    "description": "Helping companies grow sales by consistently generating relevant conversations with qualified leads",
    "foundedYear": null,
    "location": "XXX Diericx Dr, Mountain View, CA 94040, USA",
    "timeZone": "America/Los_Angeles",
    "utcOffset": -7,
    "geo": {
      "streetNumber": "13150",
      "streetName": "Diericx Drive",
      "subPremise": null,
      "city": "Mountain View",
      "postalCode": "94040",
      "state": "California",
      "stateCode": "CA",
      "country": "United States",
      "countryCode": "US",
      "lat": 37.3695439,
      "lng": -122.0664999
    },
    "logo": "https://logo.clearbit.com/madkudu.com",
    "facebook": {
      "handle": "682334211804512",
      "likes": 75
    },
    "linkedin": {
      "handle": "company/madkudu"
    },
    "twitter": {
      "handle": "madkudu",
      "id": "2558168940",
      "bio": "Turn trials into sales. MadKudu analyzes what users do and who they are to find signals they are ready to convert or that they need help.",
      "followers": 499,
      "following": 350,
      "location": "Mountain View, CA",
      "site": "http://t.co/FQPmdhrlUD",
      "avatar": "https://pbs.twimg.com/profile_images/664136410526429184/04OG2Ua3_normal.png"
    },
    "crunchbase": {
      "handle": "organization/madkudu"
    },
    "emailProvider": false,
    "type": "private",
    "ticker": null,
    "identifiers": {
      "usEIN": "471324672"
    },
    "phone": "+1 650-650-6500",
    "metrics": {
      "alexaUsRank": null,
      "alexaGlobalRank": 816099,
      "employees": 10,
      "employeesRange": "1-10",
      "marketCap": null,
      "raised": 1370001,
      "annualRevenue": null,
      "estimatedAnnualRevenue": "$1M-$10M",
      "fiscalYearEnd": 12
    },
    "indexedAt": "2018-04-16T01:30:47.249Z",
    "tech": [
      "aws_route_53",
      "google_cloud",
      "optimizely",
      "google_apps",
      "piwik",
      "mad_kudu",
      "intercom",
      "hubspot",
      "hotjar",
      "segment"
    ],
    "parent": {
      "domain": null
    }
  }
}

Job changes API

Set Watch List

You can define with this endpoint which person do you want to track with the job changes features. Posting a new watch list will replace the previous one (if existing).

curl "https://api.madkudu.com/v1/integrations/job_changes/watch-list/csv" \
  -H "Authorization: Basic QUJDRDEyMzQ6" \
  --form 'watch_list_csv=@"/bruce/files/watch-list-2024.csv"'
// example of csv file

email
nick.cage@cage.com
bruce.willis@willis.com

HTTP Request

POST https://api.madkudu.com//v1/integrations/job_changes/watch-list/csv

Form Data

Key Type Description
watch_list_csv file (required) The csv file containing your watchlist, it should include at least one column containing the email

Utilities

Ping

curl "https://api.madkudu.com/v1/ping"
  -H "Authorization: Basic QUJDRDEyMzQ6"

If the authorization is valid, the API will return:

{
  "status": "ok"
}

Errors

Status codes

Our API returns standard HTTP codes.

For errors, we will also include extra information about what went wrong encoded in the response as JSON. The various HTTP status codes we might return are listed below:

Error Code Title Meaning
400 Bad Request Make sure you entered all the required parameters
401 Unauthorized Your API key is invalid
404 Not Found The resource does not exist
50x Internal server error An error occurred on our end. Not your fault, we’re looking into it

Example error response:

{
  "message": "Authorization error: Invalid API Key"
}