{"id":369,"date":"2025-03-19T14:39:33","date_gmt":"2025-03-19T14:39:33","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/03\/19\/10840865-what-is-hostinger-api\/"},"modified":"2026-11-09T11:17:03","modified_gmt":"2026-11-09T11:17:03","slug":"10840865-what-is-hostinger-api","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/10840865-what-is-hostinger-api\/","title":{"rendered":"What is Hostinger API"},"content":{"rendered":"<p class=\"no-margin\">\u200bThe 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.<\/p>\n<p class=\"no-margin\">Key benefits include:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\"><b>Seamless Integration:<\/b> Connect Hostinger services to other applications, helping you create a more cohesive workflow.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Automation:<\/b> Whether it\u2019s restarting a server or fetching performance data, the API does it for you.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Real-Time Insights:<\/b> Easily monitor your VPS metrics like CPU, RAM, disk space, and network traffic.<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"h_d10e8c0c44\"><b>Generate a Hostinger API\u00a0<\/b>Token<\/h2>\n<p>To interact with the API, you must first create a secure authentication token within your hosting management panel.<\/p>\n<h3 id=\"h_d41217d330\" class=\"intercom-align-justify\">1. Obtain Your API Key from Hostinger dashboard<\/h3>\n<ol>\n<li>Log in to <a data-click-id=\"hgr-post-content-link-hostinger-dashboard\" href=\"https:\/\/www.hostinger.com\/support\/1583483-comprehensive-guide-to-hostinger-dashboard-at-hostinger\/\">Hostinger dashboard<\/a><\/li>\n<li>Navigate to <strong>API<\/strong> under the <strong>Dev<\/strong> tools section on the sidebar, head to <strong>API tokens<\/strong> then click <strong>New<\/strong> <strong>token<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-19809\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/public\" alt=\"\" width=\"1689\" height=\"777\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=1689,fit=scale-down 1689w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1689px) 100vw, 1689px\" \/><br \/>\n<\/strong><\/li>\n<li>Enter a token name and select an expiration date, then click <strong>Generate<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-11898\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_14-21.png\/public\" alt=\"\" width=\"592\" height=\"317\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_14-21.png\/w=592,fit=scale-down 592w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_14-21.png\/w=300,fit=scale-down 300w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/strong><\/li>\n<\/ol>\n<p>Once generated, <strong>Copy the generated API token and save it in a secure location.<\/strong><\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Your API key will not be shown after a page refresh for security reasons.<\/p>\n<\/div>\n<h3 id=\"h_d53a4b0d1e\">2. Explore the API and Its Features<\/h3>\n<h2 id=\"h-test-and-explore-hostinger-api-features\" data-path-to-node=\"10\">Test and explore Hostinger API features<\/h2>\n<p data-path-to-node=\"11\">After securing your token, familiarize yourself with the available endpoints and testing tools to understand how data is processed.<\/p>\n<ol start=\"1\" data-path-to-node=\"12\">\n<li>\n<p data-path-to-node=\"12,0,0\">Review the official <a data-click-id=\"hgr-post-content-link-api-documentation\" href=\"https:\/\/developers.hostinger.com\" target=\"_blank\" rel=\"noopener\">API documentation<\/a> to learn about the structure of available endpoints.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"12,1,0\">Use Postman to send test requests and inspect API responses without writing custom code, as described in <a data-click-id=\"hgr-post-content-link-using-hostinger-vps-api-with-postman-a-step-by-step-guide\" href=\"https:\/\/www.hostinger.com\/support\/11079560-using-hostinger-vps-api-with-postman-a-step-by-step-guide\/\">Using Hostinger VPS API with Postman: A step-by-step guide.<\/a><\/p>\n<\/li>\n<\/ol>\n<h2 id=\"h-integrate-the-api-into-your-workflows\" data-path-to-node=\"13\">Integrate the API into your workflows<\/h2>\n<p data-path-to-node=\"14\">Start with basic requests to establish your workflow before building complex integrations.<\/p>\n<ol start=\"1\" data-path-to-node=\"15\">\n<li>\n<p data-path-to-node=\"15,0,0\">Use commands to fetch performance data for your VPS, including CPU, RAM, disk space, and network traffic.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"15,1,0\">Incorporate these commands into automated alerts or custom monitoring scripts.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"15,2,0\">Connect the API to your daily operational software to manage your hosting ecosystem programmatically.<\/p>\n<\/li>\n<\/ol>\n<p>Hostinger API tools and libraries<\/p>\n<ul>\n<li><a data-click-id=\"hgr-post-content-link-introduction-to-hostinger-api-sdks\" href=\"https:\/\/www.hostinger.com\/support\/11080244-introduction-to-hostinger-api-sdks\/\">Introduction to Hostinger API SDKs<\/a>.<\/li>\n<li><a data-click-id=\"hgr-post-content-link-how-to-use-hostinger-api-cli\" href=\"https:\/\/www.hostinger.com\/support\/11679133-how-to-use-hostinger-api-cli\/\">How to use Hostinger API CLI<\/a>.<\/li>\n<li><a data-click-id=\"hgr-post-content-link-hostinger-api-mcp-server\" href=\"https:\/\/www.hostinger.com\/support\/11079316-hostinger-api-mcp-server\/\">Hostinger API MCP server.<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-getting-started-with-the-hostinger-terraform-provider\" href=\"https:\/\/www.hostinger.com\/support\/11080294-getting-started-with-the-hostinger-terraform-provider\/\">Getting started with the Hostinger Terraform provider.<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-using-hostinger-ansible-collection\" href=\"https:\/\/www.hostinger.com\/support\/11086323-using-hostinger-ansible-collection\/\">Using Hostinger Ansible collection<\/a>.<\/li>\n<li><a data-click-id=\"hgr-post-content-link-using-post-install-scripts-with-hostinger-api\" href=\"https:\/\/www.hostinger.com\/support\/11080657-using-post-install-scripts-with-hostinger-api\/\">Using post-install scripts with Hostinger API<\/a>.<\/li>\n<\/ul>\n<p>Connect the Hostinger API to third-party platforms<\/p>\n<ul>\n<li><a data-click-id=\"hgr-post-content-link-how-to-use-the-hostinger-api-n8n-community-node\" href=\"https:\/\/www.hostinger.com\/support\/11145020-how-to-use-the-hostinger-api-n8n-community-node\/\">How to use the Hostinger API n8n community node<\/a>.<\/li>\n<li><a data-click-id=\"hgr-post-content-link-how-to-connect-hostinger-with-ploi-io\" href=\"https:\/\/www.hostinger.com\/support\/11814190-how-to-connect-hostinger-with-ploi-io\/\">How to connect Hostinger with Ploi.io.<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-how-to-connect-hostinger-with-xcloud-host\" href=\"https:\/\/www.hostinger.com\/support\/11813985-how-to-connect-hostinger-with-xcloud-host\/\">How to connect Hostinger with xCloud.host.<\/a><\/li>\n<\/ul>\n<p data-path-to-node=\"16\">The Hostinger API is currently in beta, and community feedback is welcome to help improve its features.<\/p>\n<p data-path-to-node=\"17\">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&#8217;s MCP service (mcp.hostinger.com).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hostinger API lets you manage VPS, domains, and DNS programmatically. Generate an API token, then use SDKs, the CLI, MCP server, or Terraform.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[295],"tags":[],"class_list":["post-369","post","type-post","status-publish","format-standard","hentry","category-api"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/10840865-what-is-hostinger-api","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/10840865-que-es-la-api-de-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/10840865-qu-est-ce-que-l-api-de-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/10840865-apa-itu-hostinger-api","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/10840865-kas-yra-hostinger-api","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/10840865-o-que-e-a-api-da-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/10840865-\u0449\u043e-\u0442\u0430\u043a\u0435-api-hostinger","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=369"}],"version-history":[{"count":11,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":19813,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/369\/revisions\/19813"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}