# Sort by Extension

One name under every extension, listed by extension.

Source: https://docs.deepinfo.com/reference/discovery/domain-search/examples/sort-by-extension/

Last updated: 2026-09-26

---
`POST https://api.deepinfo.com/v1/discovery/domain-search?page_size=25`

Example 2 of 9 in **Combinations › Sorting** · [Domain Search Examples](/reference/discovery/domain-search/examples/) · endpoint: [Domain Search](/reference/discovery/domain-search/)

Tags: `field` `domain.name` · `field` `type` · `operator` `eq` · `logic` `must` · `sort` `domain.extension.punycode` · `order` `asc`

One name under every extension, listed by extension.

## Request

| Parameter | In | Value |
|---|---|---|
| `page_size` | query | `25` |
| `filters.must[0].name` | body | `domain.name` |
| `filters.must[0].type` | body | `eq` |
| `filters.must[0].value` | body | `deepinfo` |
| `filters.must[1].name` | body | `type` |
| `filters.must[1].type` | body | `eq` |
| `filters.must[1].value` | body | `1` |
| `sort[0].field` | body | `domain.extension.punycode` |
| `sort[0].order` | body | `asc` |

```bash
curl -X POST 'https://api.deepinfo.com/v1/discovery/domain-search?page_size=25' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "filters": {
    "must": [
      {
        "name": "domain.name",
        "type": "eq",
        "value": "deepinfo"
      },
      {
        "name": "type",
        "type": "eq",
        "value": 1
      }
    ]
  },
  "sort": [
    {
      "field": "domain.extension.punycode",
      "order": "asc"
    }
  ]
}'
```

## Response

### 200 · OK

> Shortened for this page: results: 3 of 25 shown

`Content-Type: application/json` · `ratelimit-limit: 1000` · `ratelimit-remaining: 999` · `ratelimit-reset: 1` · `x-ratelimit-limit-hour: 100000` · `x-ratelimit-limit-minute: 10000` · `x-ratelimit-limit-second: 1000` · `x-ratelimit-remaining-hour: 99833` · `x-ratelimit-remaining-minute: 9984` · `x-ratelimit-remaining-second: 999` · `deepinfo-request-id: 5f0c6a8e-1b2d-4c3e-9f4a-7b8c9d0e1f2a`

```json
{
  "page": 1,
  "page_size": 25,
  "result_count": 30,
  "results": [
    {
      "punycode": "deepinfo.ai",
      "unicode": "deepinfo.ai",
      "is_idn": false,
      "subdomain": null,
      "subdomain_last": null,
      "subdomain_root": null,
      "name": {
        "punycode": "deepinfo",
        "unicode": "deepinfo",
        "is_idn": false,
        "contains_letter": true,
        "contains_number": false,
        "contains_hyphen": false,
        "length": 8,
        "lang": "en",
        "keywords": [
          "deep",
          "info"
        ],
        "keyword_count": 2,
        "latinized": [],
        "contains_confusable": false
      },
      "domain": {
        "punycode": "deepinfo.ai",
        "unicode": "deepinfo.ai",
        "is_idn": false,
        "name": {
          "punycode": "deepinfo",
          "unicode": "deepinfo",
          "is_idn": false,
          "contains_letter": true,
          "contains_number": false,
          "contains_hyphen": false,
          "length": 8,
          "lang": "en",
          "keywords": [
            "deep",
            "info"
          ],
          "keyword_count": 2
        },
        "extension": {
          "punycode": "ai",
          "unicode": "ai",
          "is_idn": false
        },
        "extension_root": {
          "punycode": "ai",
          "unicode": "ai",
          "is_idn": false
        },
        "extension_sub": null,
        "extension_type": 2,
        "reserved": null,
        "premium": null,
        "registered": true,
        "whois": {
          "create_date": "2023-04-10T20:57:53Z",
          "update_date": "2026-08-12T09:30:31Z",
          "expiry_date": "2033-04-10T20:57:53Z",
          "registrar": "godaddy.com, llc",
          "registrant": {
            "name": "registration private",
            "organization": "domains by proxy, llc",
            "street": null,
            "city": null,
            "state": null,
            "postal_code": null,
            "country": null,
            "phone": null,
            "email": null
          },
          "name_servers": [
            "ns47.domaincontrol.com",
            "ns48.domaincontrol.com"
          ],
          "domain_status": [
            "clientdeleteprohibited",
            "clientrenewprohibited",
            "clienttransferprohibited",
            "clientupdateprohibited"
          ],
          "whois_server": null,
          "check_date": "2026-09-22T13:05:25Z"
        },
        "whois_normalized": {
          "registrant": {
            "organization": "domainsbyproxyllc",
            "phone": null,
            "email": null,
            "email_fqdn_apex": null,
            "email_domain_apex": null
          }
        },
        "whois_last_check_date": "2026-09-22T13:05:25Z",
        "whois_create_date_historical": [
          "2023-04-10T20:57:53Z",
          "2023-04-10T20:57:53Z"
        ],
        "whois_last_change_date": "2026-09-22T13:09:25Z",
        "whois_registrant_email_historical": [
          "user@domainsbyproxy.com"
        ],
        "whois_privacy_enabled": true,
        "dns": {
          "a": {
            "update_date": "2026-09-08T10:38:54Z",
            "ip_addresses": [
              "43.153.75.47"
            ]
          }
        },
        "dns_last_change_date": "2026-08-29T01:06:34Z",
        "ip_history": [
          "43.153.75.47"
        ],
        "ssl": null,
        "ssl_last_change_date": null
      },
      "type": 1,
      "subdomain_level_count": 0,
      "dns": {
        "a": {
          "update_date": "2026-09-08T10:38:54Z",
          "ip_addresses": [
            "43.153.75.47"
          ]
        },
        "aaaa": {
          "update_date": "2026-09-08T10:38:54Z",
          "ip_addresses": []
        },
        "ns": {
          "update_date": "2026-09-08T10:38:54Z",
          "name_servers": [
            "ns47.domaincontrol.com",
            "ns48.domaincontrol.com"
          ]
        },
        "mx": {
          "update_date": "2026-09-08T10:38:54Z",
          "mail_servers": [
            "smtp.secureserver.net",
            "mailstore1.secureserver.net"
          ]
        },
        "soa": {
          "update_date": "2026-09-08T10:38:54Z",
          "mnames": [
            "ns47.domaincontrol.com"
          ],
          "rnames": [
            "dns.jomax.net"
          ],
          "rname_emails": [
            "user@jomax.net"
          ]
        },
        "txt": {
          "update_date": "2026-09-08T10:38:54Z",
          "values": [
            "\"D6996235\"",
            "\"v=spf1 include:secureserver.net -all\""
          ]
        },
        "cname": {
          "update_date": "2026-09-08T10:38:54Z",
          "values": []
        },
        "others": []
      },
      "dns_last_change_date": "2026-08-29T01:06:33Z",
      "ip_history": [
        "43.153.75.47"
      ],
      "ssl": null,
      "ssl_last_change_date": null,
      "webdata": {
        "connection_status": "refused",
        "html": null,
        "http": null
      }
    },
    {
      "punycode": "deepinfo.app",
      "unicode": "deepinfo.app",
      "is_idn": false,
      "subdomain": null,
      "subdomain_last": null,
      "subdomain_root": null,
      "name": {
        "punycode": "deepinfo",
        "unicode": "deepinfo",
        "is_idn": false,
        "contains_letter": true,
        "contains_number": false,
        "contains_hyphen": false,
        "length": 8,
        "lang": "en",
        "keywords": [
          "deep",
          "info"
        ],
        "keyword_count": 2,
        "latinized": [],
        "contains_confusable": false
      },
      "domain": {
        "punycode": "deepinfo.app",
        "unicode": "deepinfo.app",
        "is_idn": false,
        "name": {
          "punycode": "deepinfo",
          "unicode": "deepinfo",
          "is_idn": false,
          "contains_letter": true,
          "contains_number": false,
          "contains_hyphen": false,
          "length": 8,
          "lang": "en",
          "keywords": [
            "deep",
            "info"
          ],
          "keyword_count": 2
        },
        "extension": {
          "punycode": "app",
          "unicode": "app",
          "is_idn": false
        },
        "extension_root": {
          "punycode": "app",
          "unicode": "app",
          "is_idn": false
        },
        "extension_sub": null,
        "extension_type": 1,
        "reserved": null,
        "premium": null,
        "registered": true,
        "whois": {
          "create_date": "2020-05-01T15:31:12Z",
          "update_date": "2026-06-15T15:31:12Z",
          "expiry_date": "2027-05-01T15:31:12Z",
          "registrar": "uniregistrar corp",
          "registrant": {
            "name": null,
            "organization": null,
            "street": null,
            "city": null,
            "state": null,
            "postal_code": null,
            "country": null,
            "phone": null,
            "email": null
          },
          "name_servers": [
            "ns03.domaincontrol.com",
            "ns04.domaincontrol.com"
          ],
          "domain_status": [
            "clientdeleteprohibited",
            "clientrenewprohibited",
            "clienttransferprohibited",
            "clientupdateprohibited"
          ],
          "whois_server": null,
          "check_date": "2026-09-22T20:08:07Z"
        },
        "whois_normalized": {
          "registrant": null
        },
        "whois_last_check_date": "2026-09-22T20:08:07Z",
        "whois_create_date_historical": [
          "2020-05-01T15:31:12Z",
          "2020-05-01T15:31:12Z"
        ],
        "whois_last_change_date": "2026-06-15T16:49:14Z",
        "whois_registrant_email_historical": [
          "please query the whois server of the owning registrar identified in this output for information on how to contact the registrant, admin, or tech contact of the queried domain name."
        ],
        "whois_privacy_enabled": null,
        "dns": {
          "a": {
            "update_date": "2026-09-22T19:48:31Z",
            "ip_addresses": [
              "3.33.251.168",
              "15.197.225.128"
            ]
          }
        },
        "dns_last_change_date": "2026-06-28T18:15:51Z",
        "ip_history": [
          "34.102.221.37",
          "15.197.142.173",
          "3.33.152.147",
          "15.197.225.128",
          "3.33.251.168",
          "13.248.213.45",
          "76.223.67.189"
        ],
        "ssl": null,
        "ssl_last_change_date": null
      },
      "type": 1,
      "subdomain_level_count": 0,
      "dns": {
        "a": {
          "update_date": "2026-09-22T19:48:31Z",
          "ip_addresses": [
            "3.33.251.168",
            "15.197.225.128"
          ]
        },
        "aaaa": {
          "update_date": "2026-09-22T19:48:31Z",
          "ip_addresses": []
        },
        "ns": {
          "update_date": "2026-09-22T19:48:31Z",
          "name_servers": [
            "ns03.domaincontrol.com",
            "ns04.domaincontrol.com"
          ]
        },
        "mx": {
          "update_date": "2026-09-22T19:48:31Z",
          "mail_servers": []
        },
        "soa": {
          "update_date": "2026-09-22T19:48:31Z",
          "mnames": [
            "ns03.domaincontrol.com"
          ],
          "rnames": [
            "dns.jomax.net"
          ],
          "rname_emails": [
            "user@jomax.net"
          ]
        },
        "txt": {
          "update_date": "2026-09-22T19:48:31Z",
          "values": []
        },
        "cname": {
          "update_date": "2026-09-22T19:48:31Z",
          "values": []
        },
        "others": [
          {
            "update_date": "2023-09-07T08:23:43Z",
            "values": [],
            "type": "DNSKEY"
          },
          {
            "update_date": "2023-09-07T08:23:43Z",
            "values": [],
            "type": "DS"
          },
          {
            "update_date": "2023-09-07T08:23:43Z",
            "values": [],
            "type": "SPF"
          }
        ]
      },
      "dns_last_change_date": "2026-06-28T18:15:50Z",
      "ip_history": [
        "34.102.221.37",
        "15.197.142.173",
        "3.33.152.147",
        "15.197.225.128",
        "3.33.251.168",
        "13.248.213.45",
        "76.223.67.189"
      ],
      "ssl": null,
      "ssl_last_change_date": null,
      "webdata": {
        "connection_status": "success",
        "html": {
          "source_code_hash": "c4f476330b737f1b6172da9b2571ea3c37ddaa27e394bd4bfc85e43ca2215aae"
        },
        "http": {
          "status_code_first": 301,
          "status_code_last": 200,
          "redirection_history": [
            {
              "url": "http://deepinfo.app/",
              "status_code": 301
            },
            {
              "url": "https://www.deepinfo.com",
              "status_code": 200
            }
          ],
          "external_redirection": true,
          "final_url": "https://www.deepinfo.com",
          "final_fqdn": "www.deepinfo.com",
          "final_domain": "deepinfo.com",
          "headers": {
            "others": [
              {
                "name": "date",
                "value": "Sun, 20 Sep 2026 04:13:06 GMT"
              },
              {
                "name": "transfer_encoding",
                "value": "chunked"
              },
              {
                "name": "connection",
                "value": "keep-alive"
              },
              {
                "name": "report_to",
                "value": "{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=4uYZsxbCBB6VqrOr9on6nl%2BiGV1uuv2HfeC%2FH5ZYCM6JWi3xZv2vErLmmNFQXh3bNU%2FpjkaLfV9TSprqep%2FHg0%2F1A70EMDh8dPyb1Ln3YehmOZwqXDGdExF3VcM5tvp4y3Zw\"}]}"
              },
              {
                "name": "nel",
                "value": "{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"
              },
              {
                "name": "link",
                "value": "<https://fonts.googleapis.com>; rel=\"preconnect\""
              },
              {
                "name": "permissions_policy",
                "value": "camera=(), microphone=(), geolocation=(), payment=(), interest-cohort=()"
              },
              {
                "name": "vary",
                "value": "accept-encoding"
              },
              {
                "name": "cf_cache_status",
                "value": "DYNAMIC"
              },
              {
                "name": "cf_ray",
                "value": "a3ddfee45ea78ce1-ORD"
              }
            ],
            "access_control_allow_headers": null,
            "access_control_allow_methods": null,
            "access_control_allow_origin": "*",
            "cache_control": "public, max-age=0, must-revalidate",
            "clear_site_data": null,
            "content_encoding": "gzip",
            "content_security_policy": "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://static.cloudflareinsights.com https://widget.intercom.io https://*.intercomcdn.com 'unsafe-inline'; style-src 'self' https://fonts.googleapis.com https://*.intercomcdn.com 'unsafe-inline'; font-src 'self' https://fonts.gstatic.com https://*.intercomcdn.com; img-src 'self' data: https:; connect-src 'self' https://static.cloudflareinsights.com https://*.intercom.io wss://*.intercom.io https://*.intercomcdn.com; frame-ancestors 'none'",
            "content_type": "text/html; charset=utf-8",
            "cross_origin_embedder_policy": null,
            "cross_origin_opener_policy": null,
            "cross_origin_resource_policy": null,
            "expect_ct": null,
            "feature_policy": null,
            "last_modified": null,
            "permission_policy": null,
            "referrer_policy": "strict-origin-when-cross-origin",
            "server": "cloudflare",
            "set_cookie": null,
            "strict_transport_security": "max-age=31536000; includeSubDomains; preload",
            "x_content_type_options": "nosniff",
            "x_download_options": null,
            "x_frame_options": "DENY",
            "x_permitted_cross_domain_policies": null,
            "x_powered_by": null,
            "x_xss_protection": null
          },
          "cookies": []
        }
      }
    },
    {
      "punycode": "deepinfo.cc",
      "unicode": "deepinfo.cc",
      "is_idn": false,
      "subdomain": null,
      "subdomain_last": null,
      "subdomain_root": null,
      "name": {
        "punycode": "deepinfo",
        "unicode": "deepinfo",
        "is_idn": false,
        "contains_letter": true,
        "contains_number": false,
        "contains_hyphen": false,
        "length": 8,
        "lang": "en",
        "keywords": [
          "deep",
          "info"
        ],
        "keyword_count": 2,
        "latinized": [],
        "contains_confusable": false
      },
      "domain": {
        "punycode": "deepinfo.cc",
        "unicode": "deepinfo.cc",
        "is_idn": false,
        "name": {
          "punycode": "deepinfo",
          "unicode": "deepinfo",
          "is_idn": false,
          "contains_letter": true,
          "contains_number": false,
          "contains_hyphen": false,
          "length": 8,
          "lang": "en",
          "keywords": [
            "deep",
            "info"
          ],
          "keyword_count": 2
        },
        "extension": {
          "punycode": "cc",
          "unicode": "cc",
          "is_idn": false
        },
        "extension_root": {
          "punycode": "cc",
          "unicode": "cc",
          "is_idn": false
        },
        "extension_sub": null,
        "extension_type": 2,
        "reserved": null,
        "premium": null,
        "registered": true,
        "whois": {
          "create_date": "2025-08-23T14:31:14Z",
          "update_date": "2025-11-04T04:18:12Z",
          "expiry_date": "2028-08-23T14:31:14Z",
          "registrar": "alibaba cloud computing ltd. d/b/a hichina (www.net.cn)",
          "registrant": {
            "name": null,
            "organization": null,
            "street": null,
            "city": null,
            "state": "jiang su",
            "postal_code": null,
            "country": "cn",
            "phone": null,
            "email": "REDACTED FOR PRIVACY"
          },
          "name_servers": [
            "dns23.hichina.com",
            "dns24.hichina.com"
          ],
          "domain_status": [
            "ok"
          ],
          "whois_server": "grs-whois.hichina.com",
          "check_date": "2026-09-22T13:03:15Z"
        },
        "whois_normalized": {
          "registrant": null
        },
        "whois_last_check_date": "2026-09-22T13:03:15Z",
        "whois_create_date_historical": [
          "2025-08-23T14:31:14Z"
        ],
        "whois_last_change_date": "2025-12-11T10:55:12Z",
        "whois_registrant_email_historical": [
          "https://whois.aliyun.com/whois/whoisform"
        ],
        "whois_privacy_enabled": null,
        "dns": {
          "a": {
            "update_date": "2026-09-20T18:18:36Z",
            "ip_addresses": [
              "39.97.5.51"
            ]
          }
        },
        "dns_last_change_date": "2026-09-20T18:20:29Z",
        "ip_history": [
          "211.154.26.200",
          "120.26.223.153",
          "39.97.5.51"
        ],
        "ssl": null,
        "ssl_last_change_date": "2025-11-27T14:04:45Z"
      },
      "type": 1,
      "subdomain_level_count": 0,
      "dns": {
        "a": {
          "update_date": "2026-09-20T18:18:36Z",
          "ip_addresses": [
            "39.97.5.51"
          ]
        },
        "aaaa": {
          "update_date": "2026-09-20T18:18:36Z",
          "ip_addresses": []
        },
        "ns": {
          "update_date": "2026-09-20T18:18:36Z",
          "name_servers": [
            "dns23.hichina.com",
            "dns24.hichina.com"
          ]
        },
        "mx": {
          "update_date": "2026-09-20T18:18:36Z",
          "mail_servers": []
        },
        "soa": {
          "update_date": "2026-09-20T18:18:36Z",
          "mnames": [
            "dns23.hichina.com"
          ],
          "rnames": [
            "hostmaster.hichina.com"
          ],
          "rname_emails": [
            "user@hichina.com"
          ]
        },
        "txt": {
          "update_date": "2026-09-20T18:18:36Z",
          "values": []
        },
        "cname": {
          "update_date": "2026-09-20T18:18:36Z",
          "values": []
        },
        "others": []
      },
      "dns_last_change_date": "2026-09-20T18:20:27Z",
      "ip_history": [
        "211.154.26.200",
        "120.26.223.153",
        "39.97.5.51"
      ],
      "ssl": null,
      "ssl_last_change_date": "2025-11-27T14:04:43Z",
      "webdata": {
        "connection_status": "success",
        "html": {
          "source_code_hash": "022550fa8fd513f6dc98841d3efaf6e26029d02ae0b19e2f0e71e721b77c22b4"
        },
        "http": {
          "status_code_first": 200,
          "status_code_last": 200,
          "redirection_history": [
            {
              "url": "http://deepinfo.cc/",
              "status_code": 200
            }
          ],
          "external_redirection": null,
          "final_url": "http://deepinfo.cc/",
          "final_fqdn": "deepinfo.cc",
          "final_domain": "deepinfo.cc",
          "headers": {
            "others": [
              {
                "name": "date",
                "value": "Sun, 30 Aug 2026 21:21:14 GMT"
              },
              {
                "name": "content_length",
                "value": "18406"
              },
              {
                "name": "connection",
                "value": "keep-alive"
              },
              {
                "name": "x_pingback",
                "value": "http://www.sdsup.com/xmlrpc.php"
              },
              {
                "name": "link",
                "value": "<http://www.sdsup.com/wp-json/>; rel=\"https://api.w.org/\", <http://www.sdsup.com/wp-json/wp/v2/pages/4256>; rel=\"alternate\"; title=\"JSON\"; type=\"application/json\", <http://www.sdsup.com/>; rel=shortlink"
              },
              {
                "name": "vary",
                "value": "Accept-Encoding"
              }
            ],
            "access_control_allow_headers": null,
            "access_control_allow_methods": null,
            "access_control_allow_origin": null,
            "cache_control": null,
            "clear_site_data": null,
            "content_encoding": "gzip",
            "content_security_policy": null,
            "content_type": "text/html; charset=UTF-8",
            "cross_origin_embedder_policy": null,
            "cross_origin_opener_policy": null,
            "cross_origin_resource_policy": null,
            "expect_ct": null,
            "feature_policy": null,
            "last_modified": null,
            "permission_policy": null,
            "referrer_policy": null,
            "server": "nginx",
            "set_cookie": null,
            "strict_transport_security": null,
            "x_content_type_options": null,
            "x_download_options": null,
            "x_frame_options": null,
            "x_permitted_cross_domain_policies": null,
            "x_powered_by": "PHP/8.2.28",
            "x_xss_protection": null
          },
          "cookies": []
        }
      }
    }
  ]
}
```

## Related Examples

- [Sort by Two Fields](/reference/discovery/domain-search/examples/sort-by-two-fields/)
- [Sort by Name (A to Z)](/reference/discovery/domain-search/examples/sort-by-name/)
- [Must Not: Registrable Domains Outside .com](/reference/discovery/domain-search/examples/must-not-registrable-domains-outside-com/)
- [Soonest to Expire First](/reference/discovery/domain-search/examples/soonest-to-expire-first/)
- [Newest Registrations First](/reference/discovery/domain-search/examples/newest-registrations-first/)
- [Latest WHOIS Changes First](/reference/discovery/domain-search/examples/latest-whois-changes-first/)
