{"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-06-29T15:27:31","modified_gmt":"2026-06-29T15:27:31","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><p class=\"no-margin\">&#8203;<\/p><h3 id=\"h_d41217d330\" class=\"intercom-align-justify\">1. Obtain Your API Key from hPanel<\/h3><p id=\"h_b53e73db5c\">From your hPanel dashboard sidebar, under<strong> Dev Tools, <\/strong>select<strong> API<\/strong><\/p><p><img decoding=\"async\" class=\"aligncenter wp-image-12126 size-medium\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-18-161x300.png\" alt=\"\" width=\"161\" height=\"300\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-18-161x300.png 161w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-18-550x1024.png 550w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-18.png 676w\" sizes=\"(max-width: 161px) 100vw, 161px\" \/><\/p><p>Next, click on <strong>Generate Token:<\/strong><\/p><p><img decoding=\"async\" class=\"aligncenter wp-image-12127 size-large\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-20-1024x550.png\" alt=\"\" width=\"1024\" height=\"550\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-20-1024x550.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-20-300x161.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-20-768x413.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-20-1536x825.png 1536w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-20-2048x1101.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p><p>Then, enter a descriptive name for your new token and select your preferred expiration date. Click on <strong>Generate.<\/strong><\/p><p><img decoding=\"async\" class=\"aligncenter wp-image-12128 size-large\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-22-1024x552.png\" alt=\"\" width=\"1024\" height=\"552\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-22-1024x552.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-22-300x162.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-22-768x414.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-22.png 1064w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p><p>Once generated, <strong>Copy the generated API token and save it in a secure location.<\/strong><\/p><p><img decoding=\"async\" class=\"aligncenter wp-image-12129 size-large\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-23-1024x270.png\" alt=\"\" width=\"1024\" height=\"270\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-23-1024x270.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-23-300x79.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-23-768x202.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-23-1536x405.png 1536w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-29_23-23.png 1942w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Note: 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 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---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":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":12130,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/369\/revisions\/12130"}],"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}]}}