Hostinger API

🚀 Getting started with Hostinger In this workspace, you’ll find collections and environments that make it easy to test and integrate the Hostinger API. Get started now! Reference collections These contain full API endpoint documentation and example requests. Use them to understand the structure, authentication, and expected responses. 🛟 Help and support If you have any questions, feedback or…

6 subscribers
59 endpoints
The in-depth APIMemo review for this API hasn't been published yet — the data below comes straight from the public marketplace listing.

Hostinger API endpoints

MethodEndpointDescription
Billing: Catalog
GET billing_getCatalogItemListV1
/api/billing/v1/catalog
This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as…
Billing: Orders
POST billing_createNewServiceOrderV1
/api/billing/v1/orders
This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons…
Billing: Payment methods
GET billing_getPaymentMethodListV1
/api/billing/v1/payment-methods
This endpoint retrieves a list of available payment methods that can be used for placing new orders. If you want to add new payment method, please use…
POST billing_setDefaultPaymentMethodV1
/api/billing/v1/payment-methods/{paymentMethodId}
This endpoint sets default payment method for your account.
DELETE billing_deletePaymentMethodV1
/api/billing/v1/payment-methods/{paymentMethodId}
This endpoint deletes a payment method from your account.
Billing: Subscriptions
DELETE billing_cancelSubscriptionV1
/api/billing/v1/subscriptions/{subscriptionId}
This endpoint cancels a subscription and stops any further billing.
GET billing_getSubscriptionListV1
/api/billing/v1/subscriptions
This endpoint retrieves a list of all subscriptions associated with your account.
Domains: Portfolio
GET domains_getDomainListV1
/api/domains/v1/portfolio
This endpoint retrieves a list of all domains associated with your account.
VPS: Data centers
GET VPS_getDataCentersListV1
/api/vps/v1/data-centers
This endpoint retrieves a list of all data centers available.
VPS: Firewall
POST VPS_createFirewallRuleV1
/api/vps/v1/firewall/{firewallId}/rules
This endpoint creates new firewall rule from a specified firewall. By default, the firewall drops all incoming traffic, which means you must add accept rules for all ports you…
GET VPS_getFirewallV1
/api/vps/v1/firewall/{firewallId}
This endpoint retrieves firewall by its ID and rules associated with it.
POST VPS_syncFirewallV1
/api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId}
This endpoint syncs a firewall for a specified virtual machine. Firewall can loose sync with virtual machine if the firewall has new rules added, removed or updated.
POST VPS_createNewFirewallV1
/api/vps/v1/firewall
This endpoint creates a new firewall.
GET VPS_getFirewallListV1
/api/vps/v1/firewall
This endpoint retrieves a list of all firewalls available.
POST VPS_activateFirewallV1
/api/vps/v1/firewall/{firewallId}/activate/{virtualMachineId}
This endpoint activates a firewall for a specified virtual machine. Only one firewall can be active for a virtual machine at a time.
PUT VPS_updateFirewallRuleV1
/api/vps/v1/firewall/{firewallId}/rules/{ruleId}
This endpoint updates a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will loose sync with the firewall and will have to…
POST VPS_deactivateFirewallV1
/api/vps/v1/firewall/{firewallId}/deactivate/{virtualMachineId}
This endpoint deactivates a firewall for a specified virtual machine.
DELETE VPS_deleteFirewallRuleV1
/api/vps/v1/firewall/{firewallId}/rules/{ruleId}
This endpoint deletes a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will loose sync with the firewall and will have to…
DELETE VPS_deleteFirewallV1
/api/vps/v1/firewall/{firewallId}
This endpoint deletes a specified firewall. Any virtual machine that has this firewall activated will automatically have it deactivated.
VPS: Post-install scripts
DELETE VPS_deleteAPostInstallScriptV1
/api/vps/v1/post-install-scripts/{postInstallScriptId}
This endpoint deletes a post-install script from your account.
POST VPS_createPostInstallScriptV1
/api/vps/v1/post-install-scripts
This endpoint allows you to add a new post-install script to your account, which can then be used run after the installation of a virtual machine instance. The script contents…
PUT VPS_updatePostInstallScriptV1
/api/vps/v1/post-install-scripts/{postInstallScriptId}
This endpoint updates a specific post-install script.
GET VPS_getPostInstallScriptV1
/api/vps/v1/post-install-scripts/{postInstallScriptId}
This endpoint retrieves post-install script by its ID.
GET VPS_getPostInstallScriptListV1
/api/vps/v1/post-install-scripts
This endpoint retrieves a list of post-install scripts associated with your account.
VPS: Public Keys
POST VPS_attachPublicKeyV1
/api/vps/v1/public-keys/attach/{virtualMachineId}
This endpoint attaches an existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine.
POST VPS_createNewPublicKeyV1
/api/vps/v1/public-keys
This endpoint allows you to add a new public key to your account, which can then be attached to virtual machine instances for secure access.
GET VPS_getPublicKeyListV1
/api/vps/v1/public-keys
This endpoint retrieves a list of public keys associated with your account.
DELETE VPS_deleteAPublicKeyV1
/api/vps/v1/public-keys/{publicKeyId}
This endpoint deletes a public key from your account. **Deleting public key from account does not remove it from virtual machine**
VPS: OS Templates
GET VPS_getTemplateListV1
/api/vps/v1/templates
This endpoint retrieves a list of available OS templates for virtual machines.
GET VPS_getTemplateV1
/api/vps/v1/templates/{templateId}
This endpoint retrieves details of a specific OS template for virtual machines.
VPS: Actions
GET VPS_getActionV1
/api/vps/v1/virtual-machines/{virtualMachineId}/actions/{actionId}
This endpoint retrieves details of a specific action performed on a specified virtual machine. This endpoint allows you to view detailed information about a particular action,…
GET VPS_getActionListV1
/api/vps/v1/virtual-machines/{virtualMachineId}/actions
This endpoint retrieves a list of actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as…
VPS: Backups
POST VPS_restoreBackupV1
/api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}/restore
This endpoint restores a backup for a specified virtual machine. The system will then initiate the restore process, which may take some time depending on the size of the backup.…
DELETE VPS_deleteBackupV1
/api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}
This endpoint deletes a specified backup for a virtual machine.
GET VPS_getBackupListV1
/api/vps/v1/virtual-machines/{virtualMachineId}/backups
This endpoint retrieves a list of backups for a specified virtual machine.
VPS: Virtual machine
PUT VPS_setPanelPasswordV1
/api/vps/v1/virtual-machines/{virtualMachineId}/panel-password
This endpoint sets the panel password for a specified virtual machine. If virtual machine does not use panel OS, the request will still be processed without any effect.…
POST VPS_setupNewVirtualMachineV1
/api/vps/v1/virtual-machines/{virtualMachineId}/setup
This endpoint will setup newly purchased virtual machine. Such virtual machines has `initial` state. New virtual machine can be purchased using…
POST VPS_startVirtualMachineV1
/api/vps/v1/virtual-machines/{virtualMachineId}/start
This endpoint starts a specified virtual machine. If the virtual machine is already running, the request will still be processed without any effect.
DELETE VPS_resetHostnameV1
/api/vps/v1/virtual-machines/{virtualMachineId}/hostname
This endpoint resets the hostname and PTR record of a specified virtual machine to the default value.
POST VPS_stopVirtualMachineV1
/api/vps/v1/virtual-machines/{virtualMachineId}/stop
This endpoint stops a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect.
PUT VPS_setNameserversV1
/api/vps/v1/virtual-machines/{virtualMachineId}/nameservers
This endpoint sets the nameservers for a specified virtual machine. Be aware, that improper nameserver configuration can lead to the virtual machine being unable to resolve…
POST VPS_recreateVirtualMachineV1
/api/vps/v1/virtual-machines/{virtualMachineId}/recreate
This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial…
PUT VPS_setHostnameV1
/api/vps/v1/virtual-machines/{virtualMachineId}/hostname
This endpoint sets the hostname for a specified virtual machine. Changing hostname does not update PTR record automatically. If you want your virtual machine to be reachable by a…
POST VPS_restartVirtualMachineV1
/api/vps/v1/virtual-machines/{virtualMachineId}/restart
This endpoint restarts a specified virtual machine. This is equivalent to fully stopping and starting the virtual machine. If the virtual machine was stopped, it will be started.
GET VPS_getMetricsV1
/api/vps/v1/virtual-machines/{virtualMachineId}/metrics
This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
GET VPS_getVirtualMachineV1
/api/vps/v1/virtual-machines/{virtualMachineId}
This endpoint retrieves detailed information about a specified virtual machine.
GET VPS_getVirtualMachineListV1
/api/vps/v1/virtual-machines
This endpoint retrieves a list of all available virtual machines.
PUT VPS_setRootPasswordV1
/api/vps/v1/virtual-machines/{virtualMachineId}/root-password
This endpoint sets the root password for a specified virtual machine. Requirements for the password is the same as in the [recreate virtual machine…
VPS: Malware scanner
POST VPS_installMonarxV1
/api/vps/v1/virtual-machines/{virtualMachineId}/monarx
This endpoint installs the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware…
DELETE VPS_uninstallMonarxV1
/api/vps/v1/virtual-machines/{virtualMachineId}/monarx
This endpoint uninstalls the Monarx malware scanner on a specified virtual machine. If Monarx is not installed, the request will still be processed without any effect.
+ 9 more endpoints on the provider's documentation.

Hostinger API pricing

PlanPriceRate limitQuotas
BASIC Free
  • Requests: 500,000 / monthly

More Business APIs

View all →
  • Instant domain search. Documentation available at https://domainr.com/docs/api

    BusinessFreemium
  • This API helps to query properties for sale, rent, sold,etc… to create a real estate site/application such…

    BusinessFreemium6.5k subscribers
  • This API helps to query real estate in UAE to create a real estate site/application

    BusinessFreemium
  • 👑 The only FULLY and TRULY working Crunchbase Data Scraper. New version! 💎

    BusinessFreemium
  • 🔥 Cheaper, Faster — and Accurate 🔥 Get 750 free requests/month to scrape UAE property info (UAE Real…

    BusinessFreemium
  • Instant trademark search, trademark keyword availabity, search trademarks from USPTO, filter on…

    BusinessFreemium1.5k subscribers