{"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-10-07T10:29:32","modified_gmt":"2026-10-07T10:29:32","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\">The Hostinger API enables you to interact with your services programmatically. This allows you to automate repetitive tasks, fetch real-time VPS performance metrics, and integrate hosting management directly into custom dashboards or third-party applications.<br>\n&#8203;<\/p><p class=\"no-margin\">Key benefits include:<\/p><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&rsquo;s 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><h2 id=\"h_d10e8c0c44\"><b>Generate a Hostinger API&nbsp;<\/b>Token<\/h2><p>To interact with the API, you must first create a secure authentication token within your hosting management panel.<\/p><h3 id=\"h_d41217d330\" class=\"intercom-align-justify\">1. Obtain Your API Key from Hostinger dashboard<\/h3><ol>\n<li>Log in to Hostinger dashboard<\/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:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\" alt=\"\" width=\"1689\" height=\"777\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png 1689w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17-300x138.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17-1024x471.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17-768x353.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17-1536x707.png 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:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_14-21.png\" alt=\"\" width=\"592\" height=\"317\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_14-21.png 592w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_14-21-300x161.png 300w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/strong><\/li>\n<\/ol><p>Once generated, <strong>Copy the generated API token and save it in a secure location.<\/strong><\/p><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><h3 id=\"h_d53a4b0d1e\">2. Explore the API and Its Features<\/h3><h2 data-path-to-node=\"10\" id=\"h-test-and-explore-hostinger-api-features\">Test and explore Hostinger API features<\/h2><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><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.<\/p>\n<\/li>\n<\/ol><h2 data-path-to-node=\"13\" id=\"h-integrate-the-api-into-your-workflows\">Integrate the API into your workflows<\/h2><p data-path-to-node=\"14\">Start with basic requests to establish your workflow before building complex integrations.<\/p><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><p data-path-to-node=\"16\">The Hostinger API is currently in beta, and community feedback is welcome to help improve its features.<\/p><p data-path-to-node=\"17\">You can now programmatically monitor and manage your Hostinger VPS using your new API token.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Our API is in beta, and we welcome your feedback. Whether you&rsquo;re reporting an issue or suggesting a new feature, your input is invaluable.<\/p>\n<\/div><p class=\"no-margin\">\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn more about Hostinger API, with steps on how to set it up.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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":8,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":19814,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/369\/revisions\/19814"}],"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}]}}