# WHOIS for .mg (nic.mg)

The WHOIS record of nic.mg, in the .mg registry's format.

Source: https://docs.deepinfo.com/reference/lookup/domain-whois/examples/mg/

Last updated: 2026-09-24

---
`GET https://api.deepinfo.com/v1/lookup/whois?domain=nic.mg`

The WHOIS record of nic.mg, in the .mg registry's format.

Example 131 of 231 in **Country-Code** · [Domain WHOIS Examples by TLD](/reference/lookup/domain-whois/examples/) · endpoint: [Domain WHOIS](/reference/lookup/domain-whois/)

Tags: `tld` `.mg` · `type` `country-code`

`.mg` is the country-code top-level domain of Madagascar.

The example requests the WHOIS record of `nic.mg`, the registry's own domain by convention, so the response shows the `.mg` registry's WHOIS format: compare `raw`, the text as the WHOIS server returned it, with `parsed`, the same record in Deepinfo's fields.

## Request

| Parameter | In | Value |
|---|---|---|
| `domain` | query | `nic.mg` |

```bash
curl 'https://api.deepinfo.com/v1/lookup/whois?domain=nic.mg' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

## Response

### 200 · OK

`Content-Type: application/json` · `ratelimit-limit: 10` · `ratelimit-remaining: 9` · `ratelimit-reset: 1` · `x-ratelimit-limit-second: 10` · `x-ratelimit-remaining-second: 9` · `deepinfo-request-id: 5f0c6a8e-1b2d-4c3e-9f4a-7b8c9d0e1f2a`

```json
{
  "domain_name": "nic.mg",
  "raw": "Domain Name: nic.mg\nRegistry Domain ID: 8-nicmg\nUpdated Date: 2025-09-30T06:20:01Z\nCreation Date: 2009-06-18T07:58:26Z\nRegistry Expiry Date: 2040-12-30T21:00:00Z\nRegistrar Registration Expiration Date: 2040-12-30T21:00:00Z\nRegistrar: NIC MG\nRegistrar Street Address: BP 7735 Antanimena\nRegistrar City: Antananarivo\nRegistrar State: Antananarivo\nRegistrar Postal Code: 101\nRegistrar Email: user@nic.mg\nDomain Status: active https://icann.org/epp#active\nDomain Status: serverTransferProhibited https://icann.org/epp#serverTransferProhibited\nDomain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited\nDomain Status: serverDeleteProhibited https://icann.org/epp#serverDeleteProhibited\nName Server: ns.nicmgdns.mg\nName Server: dns-tld.ird.fr\nDNSSEC: unsigned\n>>> Last update of WHOIS database: 2026-09-23T17:08:46.374Z <<<\n\nFor more information on domain status codes, please visit https://icann.org/epp\n\nTERMS OF USE: You are not authorized to access or query our Whois\ndatabase through the use of electronic processes that are high-volume and\nautomated.  Whois database is provided by NIC-MG as a service to the internet\ncommunity on behalf of NIC-MG members. \n\nThe data is for information purposes only. NIC-MG does not\nguarantee its accuracy. By submitting a Whois query, you agree to abide\nby the following terms of use: You agree that you may use this Data only\nfor lawful purposes and that under no circumstances will you use this Data\nto: (1) allow, enable, or otherwise support the transmission of mass\nunsolicited, commercial advertising or solicitations via e-mail, telephone,\nor facsimile; or (2) enable high volume, automated, electronic processes\nthat apply to NIC-MG it's members (or NIC-MG or member computer systems). The\ncompilation, repackaging, dissemination or other use of this Data is\nexpressly prohibited.",
  "parsed": {
    "uid": "b8747cd56f6f066fc4fdae597e2b7de6",
    "create_date": "2009-06-18T07:58:26Z",
    "update_date": "2025-09-30T06:20:01Z",
    "expiry_date": "2040-12-30T21:00:00Z",
    "registrar": "nic mg",
    "registrant": {
      "name": null,
      "organization": null,
      "street": null,
      "city": null,
      "state": null,
      "postal_code": null,
      "country": null,
      "phone": null,
      "email": null
    },
    "name_servers": [
      "dns-tld.ird.fr",
      "ns.nicmgdns.mg"
    ],
    "domain_status": [
      "active",
      "serverdeleteprohibited",
      "servertransferprohibited",
      "serverupdateprohibited"
    ],
    "whois_server": null
  },
  "check_date": "2026-09-23T17:09:12Z",
  "parse_code": null
}
```

## Related Examples

- [WHOIS for .me (nic.me)](/reference/lookup/domain-whois/examples/me/)
- [WHOIS for .mh (nic.mh)](/reference/lookup/domain-whois/examples/mh/)
- [WHOIS for .md (nic.md)](/reference/lookup/domain-whois/examples/md/)
- [WHOIS for .mk (nic.mk)](/reference/lookup/domain-whois/examples/mk/)
- [WHOIS for .mc (nic.mc)](/reference/lookup/domain-whois/examples/mc/)
- [WHOIS for .ml (nic.ml)](/reference/lookup/domain-whois/examples/ml/)
