Skip to main content
What Is Hostinger API

Learn more about Hostinger API, with steps on how to set it up.

Updated this week

The Hostinger API allows you to interact with your Hostinger account programmatically. Instead of manually checking server stats or managing your VPS, you can use the API to perform these tasks with a few simple commands. This means you can build your custom dashboards, set up automated alerts, or even integrate your hosting management into other tools you already use.

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.

Getting Started with the Hostinger API

1. Get a VPS plan

If you’re not already a Hostinger customer, sign up for an account to enjoy the full benefits of our hosting services and API access. You can check our plans here.

2. Obtain Your API Key from hPanel

2.1. Head to your VPS and search for API in the side menu


2.2. Generate a new token

2.3. Name your new token and set the preferred expiration date


2.4. Copy your API token and save it somewhere safe

Note: your API key will not be shown after a page refresh for security reasons.

3. Explore the API and Its Features

Once you have your API key, dive into the API Documentation to learn about the various endpoints available.

With your API key in hand, the quickest way to get comfortable with Hostinger’s API is by using Postman - a free, user‑friendly tool that lets you send requests and inspect responses without writing any code.

4. Start Integrating

Begin by using simple commands to interact with your account. For example, you can fetch your VPS metrics with a straightforward call. As you grow more comfortable, integrate these capabilities into your daily workflows - whether through a custom dashboard, automated alerts, or even connecting with other software solutions.

If you need help with the Hostinger API, visit our dedicated support channel on GitHub Discussions - our team is ready to guide you every step of the way.

Our API is in beta, and we welcome your feedback. Whether you’re reporting an issue or suggesting a new feature, your input is invaluable.

Did this answer your question?