Subdomains

The subdomain endpoint allows you to find subdomains for a given domain.

Registered and pro users are getting more results. See our various plans to get access.

GET /api/subdomains/:domain

Parameters

name placement comment
accept header Must be set to application/json
api-key header Your API key
domain url path Must contain the domain

Curl example

1curl -H 'accept: application/json' "https://leakix.net/api/subdomains/leakix.net"

Successful response

Receiving 200 means the request was successful and a JSON array for subdomains is returned :

 1[
 2  {
 3    "subdomain": "www.leakix.net",
 4    "distinct_ips": 1,
 5    "last_seen": "2023-01-20T11:25:41.243Z"
 6  },
 7  {
 8    "subdomain": "staging.leakix.net",
 9    "distinct_ips": 1,
10    "last_seen": "2023-01-20T11:23:03.404Z"
11  },
12  {
13    "subdomain": "blog.leakix.net",
14    "distinct_ips": 1,
15    "last_seen": "2021-05-13T06:43:31.441Z"
16  },
17  {
18    "subdomain": "checkout.leakix.net",
19    "distinct_ips": 1,
20    "last_seen": "2022-09-20T14:05:28.251Z"
21  },
22  {
23    "subdomain": "cftest.leakix.net",
24    "distinct_ips": 1,
25    "last_seen": "2023-01-20T11:26:07.057Z"
26  },
27  {
28    "subdomain": "scan.leakix.net",
29    "distinct_ips": 1,
30    "last_seen": "2023-02-23T11:23:57.141Z"
31  }
32]

Rate limiting

All requests to LeakIX.net's API are limited at ~1 request per second.

If the limit is reached, the API will return a 429 http status code and a x-limited-for header.

The client MUST wait for the duration of x-limited-for before the next request.

1HTTP/1.1 429 Rate-limited
2Date: Mon, 27 Jul 2009 12:28:53 GMT
3x-limited-for: 344.24ms