# Hostinger

> Read Hostinger subscriptions, domains, DNS and virtual machine details.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/hostinger

## Actions

### Check DNS propagation

Check DNS propagation.

**Inputs**

- Domain (`domain`, text, required): Domain or host name to check, either a domain or a subdomain.
- Type (`type`, text, required): DNS record type to check, uppercase. One of: A, AAAA, CAA, CNAME, DNAME, DNSKEY, HTTPS, LOC, MX, NS, PTR, SOA, SRV, SSHFP, SVCB, TLSA, TXT, URI. PTR takes the reverse name, e.g. 10.2.0.192.in-addr.arpa, not the IP address. SOA exists only at a zone's apex. DS and ALIAS cannot be checked.

**Outputs**

- `data` (object): The response from Hostinger.

**Example output**

```json
{
  "data": {
    "authoritative": {
      "nameservers": [
        {
          "nameserver": "example",
          "records": [
            "example"
          ],
          "ttl": 1
        }
      ],
      "zone": "example"
    },
    "vantage_points": [
      {
        "country": "example",
        "ip": "example",
        "is_propagated": true,
        "latitude": 1,
        "location": "example",
        "longitude": 1,
        "provider": "example",
        "records": [
          "example"
        ]
      }
    ]
  }
}
```

### Check domain availability

Check domain availability.

**Inputs**

- Domain (`domain`, text, required): Domain name (without TLD).
- Tlds (`tlds`, list, required): TLDs list.
- With alternatives (`with_alternatives`, true/false): Should response include alternatives.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "domain": "example",
      "is_alternative": true,
      "is_available": true,
      "is_premium": true,
      "restriction": "example"
    }
  ]
}
```

### Get DNS snapshot

Get DNS snapshot.

**Inputs**

- Domain (`domain`, text, required): Domain name.
- Snapshot ID (`snapshot_id`, number, required): Snapshot ID.

**Outputs**

- `data` (object): The response from Hostinger.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "id": 1,
    "reason": "example",
    "snapshot": [
      {
        "name": "example",
        "records": [
          {}
        ],
        "ttl": 1,
        "type": "example"
      }
    ]
  }
}
```

### Get domain

Get domain.

**Inputs**

- Domain (`domain`, text, required): Domain name.

**Outputs**

- `data` (object): The response from Hostinger.

**Example output**

```json
{
  "data": {
    "60_days_lock_expires_at": "example",
    "child_name_servers": [
      [
        "example"
      ]
    ],
    "contact_verification": {
      "contact_name": {
        "ends_at": "example",
        "status": "example"
      },
      "email": {
        "ends_at": "example",
        "status": "example"
      },
      "phone": {
        "ends_at": "example",
        "status": "example"
      }
    },
    "created_at": "example",
    "domain": "example",
    "domain_contacts": {
      "admin_id": 1,
      "billing_id": 1,
      "owner_id": 1,
      "tech_id": 1
    },
    "expires_at": "example",
    "is_lockable": true,
    "is_locked": true,
    "is_privacy_protected": true,
    "is_privacy_protection_allowed": true,
    "message": "example",
    "name_servers": {
      "ns1": "example",
      "ns2": "example"
    },
    "registered_at": "example",
    "status": "example",
    "updated_at": "example"
  }
}
```

### Get domain renewal information

Get domain renewal information.

**Inputs**

- Domain (`domain`, text, required): Domain name.

**Outputs**

- `data` (object): The response from Hostinger.

**Example output**

```json
{
  "data": {
    "domain": "example",
    "expires_at": "example",
    "grace_period_ends_at": "example",
    "is_grace_period": true,
    "is_redemption_period": true,
    "is_renewable": true,
    "redemption_period_ends_at": "example",
    "status": "example"
  }
}
```

### Get virtual machine

Get virtual machine.

**Inputs**

- Virtual machine (`virtual_machine_id`, number, required): Virtual Machine ID.

**Outputs**

- `data` (object): The response from Hostinger.

**Example output**

```json
{
  "data": {
    "actions_lock": "example",
    "bandwidth": 1,
    "cpus": 1,
    "created_at": "example",
    "data_center_id": 1,
    "disk": 1,
    "firewall_group_id": 1,
    "hostname": "example",
    "id": 1,
    "ipv4": [
      {
        "address": "example",
        "id": 1,
        "ptr": "example"
      }
    ],
    "ipv6": [
      {
        "address": "example",
        "id": 1,
        "ptr": "example"
      }
    ],
    "memory": 1,
    "ns1": "example",
    "ns2": "example",
    "plan": "example",
    "state": "example",
    "subscription_id": "example",
    "template": {
      "description": "example",
      "documentation": "example",
      "id": 1,
      "name": "example"
    }
  }
}
```

### Get virtual machine metrics

Get virtual machine metrics.

**Inputs**

- Virtual machine (`virtual_machine_id`, number, required): Virtual Machine ID.
- Date from (`date_from`, date, required): Date from.
- Date to (`date_to`, date, required): Date to.

**Outputs**

- `data` (object): The response from Hostinger.

**Example output**

```json
{
  "data": {
    "cpu_usage": {
      "unit": "example",
      "usage": {}
    },
    "disk_space": {
      "unit": "example",
      "usage": {}
    },
    "incoming_traffic": {
      "unit": "example",
      "usage": {}
    },
    "outgoing_traffic": {
      "unit": "example",
      "usage": {}
    },
    "ram_usage": {
      "unit": "example",
      "usage": {}
    },
    "uptime": {
      "unit": "example",
      "usage": {}
    }
  }
}
```

### List catalog items

List catalog items.

**Inputs**

- Category (`category`, text): Filter catalog items by category. One of: `DOMAIN`, `VPS`, `EMAIL`, `HOSTING`.
- Name (`name`, text): Filter catalog items by name. Use * for wildcard search, e.g. .COM* to find .com domain.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "category": "example",
      "id": "example",
      "metadata": {},
      "name": "example",
      "prices": [
        {
          "currency": "example",
          "first_period_price": 1,
          "id": "example",
          "name": "example",
          "period": 1,
          "period_unit": "example",
          "price": 1
        }
      ]
    }
  ]
}
```

### List DNS records

List DNS records.

**Inputs**

- Domain (`domain`, text, required): Domain name.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "name": "example",
      "records": [
        {
          "content": "example",
          "is_disabled": true
        }
      ],
      "ttl": 1,
      "type": "example"
    }
  ]
}
```

### List DNS snapshots

List DNS snapshots.

**Inputs**

- Domain (`domain`, text, required): Domain name.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "id": 1,
      "reason": "example"
    }
  ]
}
```

### List domain folders

List domain folders.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "domains_count": 1,
      "id": 1,
      "name": "example",
      "sort_order": 1,
      "updated_at": "example"
    }
  ]
}
```

### List domains

List domains.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "domain": "example",
      "expires_at": "example",
      "folders": [
        {
          "id": 1,
          "name": "example"
        }
      ],
      "id": 1,
      "status": "example",
      "type": "example",
      "verification": {
        "type": "example"
      }
    }
  ]
}
```

### List hosting datacenters

List hosting datacenters.

**Inputs**

- Order (`order_id`, number, required): Order ID.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "code": "example",
      "coordinates": {
        "latitude": 1,
        "longitude": 1
      },
      "title": "example"
    }
  ]
}
```

### List hosting orders

List hosting orders.

**Inputs**

- Page (`page`, number): Page number.
- Per page (`per_page`, number): Number of items per page. At most 100.
- Statuses (`statuses`, list): Filter by order statuses. One or more of: `active`, `deleting`, `deleted`, `suspended`.
- Order IDS (`order_ids`, list): Filter by specific order IDs.

**Outputs**

- `data` (object): The response from Hostinger.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "client_id": 1,
        "created_at": "example",
        "id": 1,
        "plan": {
          "name": "example"
        },
        "status": "example",
        "subscription_id": "example"
      }
    ],
    "meta": {
      "current_page": 1,
      "per_page": 1,
      "total": 1
    }
  }
}
```

### List subscriptions

List subscriptions.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "billing_period": 1,
      "billing_period_unit": "example",
      "created_at": "example",
      "currency_code": "example",
      "expires_at": "example",
      "id": "example",
      "is_auto_renewed": true,
      "name": "example",
      "next_billing_at": "example",
      "renewal_price": 1,
      "status": "example",
      "total_price": 1
    }
  ]
}
```

### List virtual machine actions

List virtual machine actions.

**Inputs**

- Virtual machine (`virtual_machine_id`, number, required): Virtual Machine ID.
- Page (`page`, number): Page number.

**Outputs**

- `data` (object): The response from Hostinger.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "state": "example",
        "updated_at": "example"
      }
    ],
    "meta": {
      "current_page": 1,
      "per_page": 1,
      "total": 1
    }
  }
}
```

### List virtual machine backups

List virtual machine backups.

**Inputs**

- Virtual machine (`virtual_machine_id`, number, required): Virtual Machine ID.
- Page (`page`, number): Page number.

**Outputs**

- `data` (object): The response from Hostinger.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "id": 1,
        "location": "example",
        "restore_time": 1,
        "size": 1
      }
    ],
    "meta": {
      "current_page": 1,
      "per_page": 1,
      "total": 1
    }
  }
}
```

### List virtual machine Docker projects

List virtual machine Docker projects.

**Inputs**

- Virtual machine (`virtual_machine_id`, number, required): Virtual Machine ID.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "containers": [
        {
          "command": "example",
          "health": "example",
          "id": "example",
          "image": "example",
          "name": "example",
          "ports": [
            {}
          ],
          "state": "example",
          "stats": {},
          "status": "example"
        }
      ],
      "name": "example",
      "path": "example",
      "state": "example",
      "status": "example"
    }
  ]
}
```

### List virtual machine SSH keys

List virtual machine SSH keys.

**Inputs**

- Virtual machine (`virtual_machine_id`, number, required): Virtual Machine ID.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "data": "example",
      "key": "example",
      "name": "example",
      "type": "example"
    }
  ]
}
```

### List virtual machines

List virtual machines.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Hostinger.

**Example output**

```json
{
  "data": [
    {
      "actions_lock": "example",
      "bandwidth": 1,
      "cpus": 1,
      "created_at": "example",
      "data_center_id": 1,
      "disk": 1,
      "firewall_group_id": 1,
      "hostname": "example",
      "id": 1,
      "ipv4": [
        {
          "address": "example",
          "id": 1,
          "ptr": "example"
        }
      ],
      "ipv6": [
        {
          "address": "example",
          "id": 1,
          "ptr": "example"
        }
      ],
      "memory": 1,
      "ns1": "example",
      "ns2": "example",
      "plan": "example",
      "state": "example",
      "subscription_id": "example",
      "template": {
        "description": "example",
        "documentation": "example",
        "id": 1,
        "name": "example"
      }
    }
  ]
}
```
