API-Dokumentation Webhosting für alle LWS besuchen

Verlängerungspreise abrufen

GET https://api.lws.net/v1/hosting/{hosting}/pricerenew

operationIdgetHostingPricerenew

Ruft den Verlängerungspreis des Hostings und der Domain in Euro (€) sowie deren Status ab.

Pfadparameter

hosting string erforderlich

Der Domainname, dessen Verlängerungspreis und Status Sie abrufen möchten

Beispiel: example.com

Antworten

200

Daten erfolgreich abgerufen

{
  "code": 200,
  "info": "Retrieved Hosting and Domain renew prices (Euro (€)/month)",
  "data": [
    {
      "price": {
        "total": 91.62,
        "hosting": 6.99,
        "domain": 0.75,
        "support": 60,
        "backup": 23.88
      },
      "status": {
        "hosting_status": {
          "expired": 6,
          "expired_info": "Hosting has expired 6 days ago",
          "to_renew": false,
          "status": "string",
          "status_info": "string",
          "txt": "string"
        },
        "domain_status": {
          "expired": 4,
          "expired_info": "Domain has expired 4 days ago",
          "to_renew": true,
          "status": "quarantine",
          "status_info": "Domain is in quarantine and will soon be deleted",
          "txt": "string"
        }
      }
    }
  ]
}
Felder der Antwort 24
  • code integer

    Beispiel: 200

  • info string

    Beispiel: Retrieved Hosting and Domain renew prices (Euro (€)/month)

  • data object[]
  • price object
  • total number

    Gesamtpreis für die vollständige Verlängerung, in Euro (€)

    Beispiel: 91.62

  • hosting number

    Preis für die alleinige Verlängerung des Hostings, in Euro (€)

    Beispiel: 6.99

  • domain number

    Preis für die alleinige Verlängerung der Domain, in Euro (€)

    Beispiel: 0.75

  • support number

    Preis für die Verlängerung der Option Technischer Support, in Euro (€)

    Beispiel: 60

  • backup number

    Preis für die Verlängerung der Backup-Option, in Euro (€)

    Beispiel: 23.88

  • status object
  • hosting_status object

    Details zum Hostingstatus

  • expired integer

    Anzahl der Tage seit Ablauf des Hostings. -1, wenn nicht abgelaufen

    Beispiel: 6

  • expired_info string

    Informationen zum Ablauf des Hostings

    Beispiel: Hosting has expired 6 days ago

  • to_renew boolean

    Gibt an, ob das Hosting verlängert werden muss

    Beispiel: false

  • status string

    Aktueller Status des Hostings

  • status_info string

    Informationen zum Hostingstatus

  • txt string

    Möglicherweise nicht behandelter Status

  • domain_status object

    Details zum Domainstatus

  • expired integer

    Anzahl der Tage seit Ablauf der Domain. -1, wenn nicht abgelaufen

    Beispiel: 4

  • expired_info string

    Informationen zum Ablauf der Domain

    Beispiel: Domain has expired 4 days ago

  • to_renew boolean

    Gibt an, ob die Domain verlängert werden muss

    Beispiel: true

  • status string

    Aktueller Status der Domain

    Beispiel: quarantine

  • status_info string

    Informationen zum Domainstatus

    Beispiel: Domain is in quarantine and will soon be deleted

  • txt string

    Möglicherweise nicht behandelter Status

314

Domain im Konto nicht gefunden

314 ist kein registrierter HTTP-Statuscode. Er ist spezifisch für diese API.

{
  "code": 314,
  "info": "Provided domain has not been found on your account. You must own this domain to manage it."
}
Felder der Antwort 2
  • code integer

    Beispiel: 314

  • info string

    Beispiel: Provided domain has not been found on your account. You must own this domain to manage it.

400

Ungültige Eingabe

{
  "code": 400,
  "info": "No hosting provided",
  "data": []
}
Felder der Antwort 3
  • code integer

    Beispiel: 400

  • info string

    Beispiel: No hosting provided

  • data any[]
401

Nicht autorisiert - Authentifizierungs-Header fehlen

{
  "code": 401,
  "info": "Unauthorized access to the API. Please specify X-Auth-Pass and X-Auth-Login to proceed."
}
Felder der Antwort 2
  • code integer

    Beispiel: 401

  • info string

    Beispiel: Unauthorized access to the API. Please specify X-Auth-Pass and X-Auth-Login to proceed.

429

Anfragelimit überschritten

{
  "code": 429,
  "info": "Rate limit exceeded. Please try again later."
}
Felder der Antwort 2
  • code integer

    Beispiel: 429

  • info string

    Beispiel: Rate limit exceeded. Please try again later.

500

Interner Serverfehler

{
  "code": 500,
  "info": "Internal Server Error",
  "data": "Error message"
}
Felder der Antwort 3
  • code integer

    Beispiel: 500

  • info string

    Beispiel: Internal Server Error

  • data string

    Beispiel: Error message

502

Ungültiges Gateway

{
  "code": 502,
  "info": "Invalid response from upstream server",
  "data": []
}
Felder der Antwort 3
  • code integer

    Beispiel: 502

  • info string

    Beispiel: Invalid response from upstream server

  • data object
Codebeispiele und Testkonsole anzeigen
GET /hosting/{hosting}/pricerenew
LWS_AUTH_LOGIN='…'LWS_AUTH_PASS='…'curl -X GET \  "https://api.lws.net/v1/hosting/example.com/pricerenew" \  -H "X-Auth-Login: $LWS_AUTH_LOGIN" \  -H "X-Auth-Pass: $LWS_AUTH_PASS"
$lwsAuthLogin = '…';$lwsAuthPass = '…';$ch = curl_init("https://api.lws.net/v1/hosting/example.com/pricerenew");curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_HTTPHEADER, [    "X-Auth-Login: " . $lwsAuthLogin,    "X-Auth-Pass: " . $lwsAuthPass,]);$res = json_decode(curl_exec($ch), true);
import requestsLWS_AUTH_LOGIN = "…"LWS_AUTH_PASS = "…"res = requests.get(    "https://api.lws.net/v1/hosting/example.com/pricerenew",    headers={        "X-Auth-Login": LWS_AUTH_LOGIN,        "X-Auth-Pass": LWS_AUTH_PASS,    },)print(res.json())
const LWS_AUTH_LOGIN = "…";const LWS_AUTH_PASS = "…";const res = await fetch("https://api.lws.net/v1/hosting/example.com/pricerenew", {  method: "GET",  headers: {    "X-Auth-Login": LWS_AUTH_LOGIN,    "X-Auth-Pass": LWS_AUTH_PASS,  },});const data = await res.json();
lwsAuthLogin := "…"lwsAuthPass := "…"req, _ := http.NewRequest("GET",    "https://api.lws.net/v1/hosting/example.com/pricerenew", nil)req.Header.Set("X-Auth-Login", lwsAuthLogin)req.Header.Set("X-Auth-Pass", lwsAuthPass)resp, err := http.DefaultClient.Do(req)