API

There's no specific API endpoint, instead you should request JSON from the usual URLs

By setting application/json in the Accept http header of your request, the results will be returned to you as JSON instead of HTML. All fields in the response are searchable.

API key

Registering a API key is free for researchers and will grant you access to the whole index, you can use it by specifying the api-key header during your request :

$ curl -sqH'api-key: OdSLLMwk7XuTksJdIVFCb_AUcjtMohXIQLUkvrlzEBqMnVbY' -H'Accept: application/json' 'https://leakix.net/host/78.47.222.185'|jq

Query a single host

Will reply two lists, Services and Leaks. There respective schema can be found below.

$ curl -sqH'Accept: application/json' 'https://leakix.net/host/78.47.222.185'|jq
{"Services":[...services...], "Leaks":[...leaks...]}

Example service reponse

Will return services results :

$ curl -sqH'Accept: application/json' 'https://leakix.net/search?q=*&scope=service'|jq
[
{
    "ip": "160.16.133.197",
    "port": "80",
    "type": "http",
    "time": "2020-06-12T14:05:00+02:00",
    "date": 1591963500,
    "data": "Upgrade : h2\nConnection : Upgrade\nX-Powered-By : PHP/7.2.9\nCache-Control : no-cache, must-revalidate,",
    "headers": {
      "Cache-Control": [
        "no-cache, must-revalidate, max-age=0"
      ],
      "Content-Length": [
        "0"
      ],
      "Content-Type": [
        "text/html; charset=UTF-8"
      ],
      "Date": [
        "Fri, 12 Jun 2020 12:04:59 GMT"
      ],
      "Expires": [
        "Wed, 11 Jan 1984 05:00:00 GMT"
      ],
      "Location": [
        "http://160.16.133.197/"
      ],
      "Server": [
        "Apache/2.4.34 (codeit) OpenSSL/1.1.0i mod_fcgid/2.3.9 PHP/7.2.9"
      ],
      "Upgrade": [
        "h2"
      ],
      "X-Powered-By": [
        "PHP/7.2.9"
      ]
    },
    "plugin": "",
    "network": {
      "organization_name": "SAKURA Internet Inc.",
      "asn": 9370
    },
    "geoip": {
      "continent_name": "Asia",
      "region_iso_code": "JP-27",
      "city_name": "Osaka",
      "country_iso_code": "JP",
      "country_name": "Japan",
      "region_name": "Ōsaka",
      "location": {
        "lat": 34.6833,
        "lon": 135.5167
      }
    },
    "credentials": null,
    "software": {
      "name": "Apache",
      "version": "2.4.34",
      "os": "codeit",
      "modules": [
        {
          "name": "PHP",
          "version": "7.2.9",
          "os": "",
          "modules": null
        },
        {
          "name": "OpenSSL",
          "version": "1.1.0i",
          "os": "",
          "modules": null
        },
        {
          "name": "mod_fcgid",
          "version": "2.3.9",
          "os": "",
          "modules": null
        }
      ]
    }
  }]

Example leak reponse

Will return leak results

$ curl -sqH'Accept: application/json' 'https://leakix.net/search?q=*&scope=leak'|jq
[{
    "ip": "78.47.222.185",
    "port": "9200",
    "type": "elasticsearch",
    "time": "2020-06-12T13:09:18+02:00",
    "date": 1591960158,
    "data": "NoAuth\nIndices:\nFound index access_logs_local with 71 documents (105.9kb)\nFound index .triggered_watches with 0 documents (297b)\nFound index error_logs with 16188 documents (2.7mb)\nFound index .monitoring-es-7-2020.05.31 with 8639 documents (2.5mb)\nFound index .monitoring-es-7-2020.05.30 with 8640 documents (2.4mb)\nFound index laravel_logs_local with 3295 documents (1mb)\nFound index .monitoring-es-7-2020.06.10 with 8629 documents (2.5mb)\nFound index .monitoring-es-7-2020.06.11 with 8633 documents (2.5mb)\nFound index .kibana_task_manager_1 with 2 documents (11kb)\nFound index .monitoring-es-7-2020.06.12 with 3 documents (1mb)\nFound index .monitoring-es-7-2020.05.29 with 8639 documents (2.5mb)\nFound index .ml-annotations-6 with 0 documents (283b)\nFound index .monitoring-es-7-2020.05.28 with 8640 documents (2.5mb)\nFound index .monitoring-es-7-2020.05.27 with 8640 documents (2.5mb)\nFound index .monitoring-es-7-2020.05.26 with 8638 documents (2.5mb)\nFound index .monitoring-es-7-2020.05.25 with 7005 documents (2mb)\nFound index .apm-agent-configuration with 0 documents (283b)\nFound index .monitoring-es-7-2020.05.23 with 247513 documents (149mb)\nFound index .monitoring-es-7-2020.05.22 with 398393 documents (219.4mb)\nFound index .monitoring-es-7-2020.05.21 with 398390 documents (220.2mb)\nFound index .monitoring-es-7-2020.05.20 with 398347 documents (217.8mb)\nFound index .ml-state with 3 documents (737.4kb)\nFound index ilm-history-1-000002 with 173 documents (1.1mb)\nFound index ilm-history-1-000001 with 112 documents (41.2kb)\nFound index kibana_sample_data_logs with 14074 documents (11.7mb)\nFound index .ml-notifications-000001 with 8 documents (19.5kb)\nFound index .monitoring-es-7-2020.05.19 with 398392 documents (224.4mb)\nFound index .monitoring-es-7-2020.05.18 with 398347 documents (215mb)\nFound index .monitoring-es-7-2020.05.17 with 398393 documents (217.1mb)\nFound index .monitoring-logstash-7-2020.05.25 with 110587 documents (6.3mb)\nFound index .monitoring-kibana-7-2020.05.17 with 8639 documents (1.8mb)\nFound index .ml-config with 2 documents (16.6kb)\nFound index .monitoring-kibana-7-2020.05.19 with 8639 documents (1.9mb)\nFound index .monitoring-kibana-7-2020.05.18 with 8640 documents (1.9mb)\nFound index .monitoring-alerts-7 with 19 documents (3.3mb)\nFound index access_logs with 800839 documents (408.7mb)\nFound index .watches with 0 documents (11.7kb)\nFound index .monitoring-kibana-7-2020.05.24 with 8639 documents (1.7mb)\nFound index .monitoring-kibana-7-2020.05.23 with 8639 documents (1.9mb)\nFound index .watcher-history-10-2020.05.18 with 15840 documents (13mb)\nFound index laravel_logs with 135810903 documents (22.6gb)\nFound index .monitoring-kibana-7-2020.05.25 with 1625 documents (387.8kb)\nFound index .monitoring-kibana-7-2020.05.20 with 8639 documents (1.9mb)\nFound index .monitoring-kibana-7-2020.05.22 with 8640 documents (1.9mb)\nFound index .watcher-history-10-2020.05.17 with 15840 documents (12.9mb)\nFound index .monitoring-kibana-7-2020.05.21 with 8639 documents (2mb)\nFound index .ml-anomalies-shared with 2573 documents (757.5kb)\nFound index .kibana_1 with 94 documents (261.6kb)\nFound index .security-7 with 36 documents (96.9kb)\nFound index .monitoring-es-7-2020.06.01 with 8640 documents (2.5mb)\nFound index .monitoring-es-7-2020.06.02 with 8639 documents (2.5mb)\nFound index .monitoring-es-7-2020.06.03 with 8640 documents (2.5mb)\nFound index .monitoring-es-7-2020.06.04 with 8639 documents (2.5mb)\nFound index .monitoring-es-7-2020.06.05 with 8640 documents (2.5mb)\nFound index .monitoring-es-7-2020.06.06 with 8640 documents (2.5mb)\nFound index .monitoring-es-7-2020.06.07 with 8639 documents (2.4mb)\nFound index .monitoring-es-7-2020.06.08 with 8640 documents (2.5mb)\nFound index .monitoring-es-7-2020.06.09 with 8639 documents (2.5mb)\n",
    "headers": null,
    "plugin": "ElasticSearchExplorePlugin",
    "network": {
      "organization_name": "Hetzner Online GmbH",
      "asn": 24940
    },
    "geoip": {
      "continent_name": "Europe",
      "region_iso_code": "",
      "city_name": "",
      "country_iso_code": "DE",
      "country_name": "Germany",
      "region_name": "",
      "location": {
        "lat": 51.2993,
        "lon": 9.491
      }
    },
    "credentials": null,
    "software": {
      "name": "",
      "version": "",
      "os": "",
      "modules": null
    }
  }]