---
title: "Get Domain"
method: GET
path: "/domain/{hostname}"
---

# Get Domain

`GET /domain/{hostname}`

Returns the current data about the given domain. In addition to the current data, you also get the current statistics associated with a particular record. For example, for a records you'll get how many other domains have the same IP.

## Path parameters

- `hostname` string, required

## Query parameters

- `apikey` string, required

## Response `200`

200

- object
  - `hostname` string
  - `alexa_rank` integer
  - `current_dns` object
    - `a` object
      - `first_seen` string
      - `values` object[]
        - `ip` string
        - `ip_count` integer
    - `aaaa` object
      - `first_seen` string
      - `values` object[]
        - `ip` string
        - `ip_count` integer
    - `mx` object
      - `first_seen` string
      - `values` object[]
        - `priority` integer
        - `host` string
        - `host_count` integer
    - `ns` object
      - `first_seen` string
      - `values` object[]
        - `nameserver` string
        - `nameserver_count` integer
    - `soa` object
      - `first_seen` string
      - `values` object[]
        - `ttl` integer
        - `email` string
        - `email_count` integer
    - `txt` object
      - `first_seen` string
      - `values` object[]
        - `value` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/securitytrails/apis/securitytrails-api.md) · [All operations](https://skmtc.net/securitytrails/apis/securitytrails-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/securitytrails/securitytrails-api/versions/13cd180c20ab/schema)
