What is Hostinger API

Hostinger API lets you manage VPS, domains, and DNS programmatically. Generate an API token, then use SDKs, the CLI, MCP server, or Terraform.

Updated 4 weeks ago

​The Hostinger API lets you manage your Hostinger services programmatically, for example to automate repetitive tasks, fetch real-time VPS performance metrics, and connect hosting management to custom dashboards or third-party applications. To start, generate an API token in the Hostinger dashboard, test the API endpoints, and then add API requests to your workflows.

Key benefits include:

  • Seamless Integration: Connect Hostinger services to other applications, helping you create a more cohesive workflow.

  • Automation: Whether it’s restarting a server or fetching performance data, the API does it for you.

  • Real-Time Insights: Easily monitor your VPS metrics like CPU, RAM, disk space, and network traffic.

Generate a Hostinger API Token

To interact with the API, you must first create a secure authentication token within your hosting management panel.

1. Obtain Your API Key from Hostinger dashboard

  1. Log in to Hostinger dashboard
  2. Navigate to API under the Dev tools section on the sidebar, head to API tokens then click New token

  3. Enter a token name and select an expiration date, then click Generate

Once generated, Copy the generated API token and save it in a secure location.

Your API key will not be shown after a page refresh for security reasons.

2. Explore the API and Its Features

Test and explore Hostinger API features

After securing your token, familiarize yourself with the available endpoints and testing tools to understand how data is processed.

  1. Review the official API documentation to learn about the structure of available endpoints.

  2. Use Postman to send test requests and inspect API responses without writing custom code, as described in Using Hostinger VPS API with Postman: A step-by-step guide.

Integrate the API into your workflows

Start with basic requests to establish your workflow before building complex integrations.

  1. Use commands to fetch performance data for your VPS, including CPU, RAM, disk space, and network traffic.

  2. Incorporate these commands into automated alerts or custom monitoring scripts.

  3. Connect the API to your daily operational software to manage your hosting ecosystem programmatically.

Hostinger API tools and libraries

Connect the Hostinger API to third-party platforms

The Hostinger API is currently in beta, and community feedback is welcome to help improve its features.

Your Hostinger API token is now ready to automate and manage your Hostinger services, including VPS, domains, and DNS, from your own scripts and tools. An entry named GuzzleHttp or hostinger-remote-mcp, marked as Direct API, appears when an AI agent such as ChatGPT, Claude or Cursor connects to your Hostinger account through Hostinger’s MCP service (mcp.hostinger.com).