mgocobachi/domaintools

Access to the Domaintools API

v1.0.0 2017-02-26 10:46 UTC

This package is auto-updated.

Last update: 2024-05-16 19:31:56 UTC


README

Build Status Latest Stable Version License

DomainTools API

The DomainTools API provides direct access to the same data that drives the powerful research tools on DomainTools.com.

What is DomainTools?

DomainTools helps security analysts turn threat data into threat intelligence. We take indicators from your network, including domains and IPs, and connect them with nearly every active domain on the Internet. Those connections inform risk assessments, help profile attackers, guide online fraud investigations, and map cyber activity to attacker infrastructure.

Endpoints supported

How to use

To use the package is defined a helper function called as 'domantools()', it accept two parameters, the username and the API key. However, if you leave it in blank you will hit the API as anonymous and limited calls.

<?php
$dt = domaintools('myusername', 'my_long_api_key');

Examples

If you like to know the profile information of domaintools.com:

<?php
$profile = domaintools()->profile('domaintools.com');

If you like to know the reputation of domaintools.com (remember, more higher more risk).

<?php
$reputation = domaintools()->reputation('domaintools.com');

If you like to know the results of any term search

In this example we are filtering by those domains active only, and when get the results then, search and filter where char_count is greater than 15.

<?php
$search = domaintools()->search('domain tools', [
  'active_only'   => 'true',
]);

$results = collection($search->results)->filter(function ($result) {
    return $result->char_count > 15;
});

Other example could be applying it immediately.

<?php
$results = collection(domaintools()->search('domain tools', [
  'active_only' => 'true',
])->results)->filter(function ($result) {
    return $result->char_count > 15;
});

More information

For more information please contact domaintols.com about API details or documentation.