Hostinger

App · 20 actions

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

Actions

ActionWhat it does
Check DNS propagationCheck DNS propagation.
Check domain availabilityCheck domain availability.
Get DNS snapshotGet DNS snapshot.
Get domainGet domain.
Get domain renewal informationGet domain renewal information.
Get virtual machineGet virtual machine.
Get virtual machine metricsGet virtual machine metrics.
List catalog itemsList catalog items.
List DNS recordsList DNS records.
List DNS snapshotsList DNS snapshots.
List domain foldersList domain folders.
List domainsList domains.
List hosting datacentersList hosting datacenters.
List hosting ordersList hosting orders.
List subscriptionsList subscriptions.
List virtual machine actionsList virtual machine actions.
List virtual machine backupsList virtual machine backups.
List virtual machine Docker projectsList virtual machine Docker projects.
List virtual machine SSH keysList virtual machine SSH keys.
List virtual machinesList virtual machines.

Check DNS propagation

Check DNS propagation.

Inputs

DomaindomaintextRequired
Domain or host name to check, either a domain or a subdomain.
TypetypetextRequired
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

dataobject
The response from Hostinger.
Example output
{
  "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

DomaindomaintextRequired
Domain name (without TLD).
TldstldslistRequired
TLDs list.
With alternativeswith_alternativestrue/false
Should response include alternatives.

Outputs

datalist
The response from Hostinger.
Example output
{
  "data": [
    {
      "domain": "example",
      "is_alternative": true,
      "is_available": true,
      "is_premium": true,
      "restriction": "example"
    }
  ]
}

Get DNS snapshot

Get DNS snapshot.

Inputs

DomaindomaintextRequired
Domain name.
Snapshot IDsnapshot_idnumberRequired
Snapshot ID.

Outputs

dataobject
The response from Hostinger.
Example output
{
  "data": {
    "created_at": "example",
    "id": 1,
    "reason": "example",
    "snapshot": [
      {
        "name": "example",
        "records": [
          {}
        ],
        "ttl": 1,
        "type": "example"
      }
    ]
  }
}

Get domain

Get domain.

Inputs

DomaindomaintextRequired
Domain name.

Outputs

dataobject
The response from Hostinger.
Example output
{
  "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

DomaindomaintextRequired
Domain name.

Outputs

dataobject
The response from Hostinger.
Example output
{
  "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 machinevirtual_machine_idnumberRequired
Virtual Machine ID.

Outputs

dataobject
The response from Hostinger.
Example output
{
  "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 machinevirtual_machine_idnumberRequired
Virtual Machine ID.
Date fromdate_fromdateRequired
Date from.
Date todate_todateRequired
Date to.

Outputs

dataobject
The response from Hostinger.
Example output
{
  "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

Categorycategorytext
Filter catalog items by category.One of: DOMAIN, VPS, EMAIL, HOSTING.
Namenametext
Filter catalog items by name. Use * for wildcard search, e.g. .COM* to find .com domain.

Outputs

datalist
The response from Hostinger.
Example output
{
  "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

DomaindomaintextRequired
Domain name.

Outputs

datalist
The response from Hostinger.
Example output
{
  "data": [
    {
      "name": "example",
      "records": [
        {
          "content": "example",
          "is_disabled": true
        }
      ],
      "ttl": 1,
      "type": "example"
    }
  ]
}

List DNS snapshots

List DNS snapshots.

Inputs

DomaindomaintextRequired
Domain name.

Outputs

datalist
The response from Hostinger.
Example output
{
  "data": [
    {
      "created_at": "example",
      "id": 1,
      "reason": "example"
    }
  ]
}

List domain folders

List domain folders.

Inputs

None.

Outputs

datalist
The response from Hostinger.
Example output
{
  "data": [
    {
      "created_at": "example",
      "domains_count": 1,
      "id": 1,
      "name": "example",
      "sort_order": 1,
      "updated_at": "example"
    }
  ]
}

List domains

List domains.

Inputs

None.

Outputs

datalist
The response from Hostinger.
Example output
{
  "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

Orderorder_idnumberRequired
Order ID.

Outputs

datalist
The response from Hostinger.
Example output
{
  "data": [
    {
      "code": "example",
      "coordinates": {
        "latitude": 1,
        "longitude": 1
      },
      "title": "example"
    }
  ]
}

List hosting orders

List hosting orders.

Inputs

Pagepagenumber
Page number.
Per pageper_pagenumber
Number of items per page.At most 100.
Statusesstatuseslist
Filter by order statuses.One or more of: active, deleting, deleted, suspended.
Order IDSorder_idslist
Filter by specific order IDs.

Outputs

dataobject
The response from Hostinger.
Example output
{
  "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

datalist
The response from Hostinger.
Example output
{
  "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 machinevirtual_machine_idnumberRequired
Virtual Machine ID.
Pagepagenumber
Page number.

Outputs

dataobject
The response from Hostinger.
Example output
{
  "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 machinevirtual_machine_idnumberRequired
Virtual Machine ID.
Pagepagenumber
Page number.

Outputs

dataobject
The response from Hostinger.
Example output
{
  "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 machinevirtual_machine_idnumberRequired
Virtual Machine ID.

Outputs

datalist
The response from Hostinger.
Example output
{
  "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 machinevirtual_machine_idnumberRequired
Virtual Machine ID.

Outputs

datalist
The response from Hostinger.
Example output
{
  "data": [
    {
      "data": "example",
      "key": "example",
      "name": "example",
      "type": "example"
    }
  ]
}

List virtual machines

List virtual machines.

Inputs

None.

Outputs

datalist
The response from Hostinger.
Example output
{
  "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"
      }
    }
  ]
}

On this page