For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Reference

How to authenticate against the Hostinger API, where to find the full endpoint reference, and the other ways to automate Hostinger — the CLI, the SDKs, the MCP server, and the Hostinger Connector.

The Hostinger API is a mostly RESTful API over HTTPS. Every endpoint is documented under Endpoints, grouped by product — hosting, domains, DNS, email, VPS, WordPress, ecommerce, and billing.

Those pages are rendered from the same OpenAPI specification that produces the CLI, the SDKs, and the MCP server, so the reference cannot drift from the API itself.

Authentication

  1. Generate an API token in hPanel → API. Tokens inherit the permissions of the user who created them and can be set to expire. See Security & Access for how they're managed.

  2. Send the token as a bearer header on every request:

curl https://developers.hostinger.com/api/hosting/v1/websites \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Requests must use Content-Type: application/json. POST, PUT, and PATCH accept a JSON body.

Rate limits

The API allows 90 requests per minute per IP address. Exceeding it returns 429 Too Many Requests, and every response carries X-RateLimit-Limit, X-RateLimit-Remaining, and Retry-After headers so you can pace your calls. Repeatedly hitting the limit can get your IP temporarily blocked.

Trying endpoints from the browser

Each endpoint page has a Test it panel. Paste an API token into it and the request runs against the live API from your browser — the same call the code samples show.

Test requests count against your rate limit and act on your real account. Prefer read-only endpoints while exploring.

Other ways to automate Hostinger

  • Hostinger CLI — the official command-line client, generated from this same specification. Install it and sign in from your browser; no API token needed:

  • Scripting with the CLI — piping JSON output into scripts and CI

  • SDKs — official client libraries for PHP, Python, and TypeScript

  • Email SDKs — libraries and a CLI for the separate Mail API, which reads and sends mail from your mailboxes

  • Hostinger Connector — manage Hostinger from your code editor through an AI assistant, powered by this API

  • MCP server — the @hostinger/mcp npm package exposes the API as 372 Model Context Protocol tools for any AI assistant, or connect to the hosted remote server at https://mcp.hostinger.com with no install


Last updated: September 2, 2026

Last updated

Was this helpful?