---
title: "List available PHP versions for a website"
method: GET
path: "/api/agency-hosting/v1/websites/{website_uid}/php-settings/versions"
tags: ["Agency Hosting: PHP"]
---

# List available PHP versions for a website

`GET /api/agency-hosting/v1/websites/{website_uid}/php-settings/versions`

Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.

## Path parameters

- `website_uid` string, required

## Response `200`

Success response

- AgencyHostingV1PhpVersionResource[] — Array of [`AgencyHosting.V1.Php.VersionResource`](#model/agencyhostingv1phpversionresource)
  - `version` string — PHP version available for the website.

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

## Changes

- **2026-08-17** `8b0328d323ca` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/agency-hosting/v1/websites/:website_uid/php-settings/versions/get.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
