Skip to content
L2 Calendar logo

How to use the L2 Calendar API in PHP

Lineage 2 private servers list with names, websites, chronicles, rates and opening dates. This guide calls it from PHP with code we've run against the live endpoint.

Online · 1046 msEndpoint tested Oct 24, 2026

1. What you need

PHP 7.4+ with the cURL extension (enabled by default on most hosts).

No API key or sign-up. Endpoint: https://l2calendar.com/api/servers

2. Make the request

PHP
<?php
$ch = curl_init("https://l2calendar.com/api/servers");
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 10]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($data);

3. The response

Trimmed from the live response on Oct 24, 2026.

JSON
[
  {
    "name": "L2 Warfront GvE",
    "website_url": "https://l2warfront.com/",
    "rate": "x999",
    "opening_date": "2026-10-30",
    "opening_time": "18:00:00",
    "opening_datetime_utc": null,
    "description": "",
    "is_vip": true,
    "vip_level": 4,
    "multiproff": false,
    "multicraft": false,
    "is_new": true
  },
  {
    "name": "L2Cygnus GvE",
    "website_url": "https://l2cygnus.com/",
    "rate": "999",
    "opening_date": "2026-10-17",
    "opening_time": "21:00:00",
    "opening_datetime_utc": "2026-10-17T16:00:00.000Z",
    "description": "",
    "is_vip": true,
    "vip_level": 3,
    "multiproff": false,
    "multicraft": false,
    "is_new": true
  },
  {
    "name": "L2 VINDICATION",
    "website_url": "https://www.vindication.gr/",
    "rate": "x4",
    "opening_date": "2026-10-23",
    "opening_time": "18:00:00",
    "opening_datetime_utc": null,
    "description": null,
    "is_vip": true,
    "vip_level": 3,
    "multiproff": false,
    "multicraft": false,
    "is_new": true
  }
]

4. Before you ship

  • Set a timeout and handle non-200 responses: free APIs can rate-limit or go down.
  • Cache responses where you can, instead of calling the API on every page view.
  • Read the official documentation ↗ for rate limits and terms of use.

FAQ

Does the L2 Calendar API need an API key in PHP?

No. The L2 Calendar API works without an API key, so the PHP example runs as-is.

Can I call the L2 Calendar API from the browser?

Yes. It sends CORS headers, so front-end JavaScript can call it directly.

What does the L2 Calendar API return?

JSON. The example response on this page is trimmed from a real response our health check received on Oct 24, 2026.

Same API in: Python · JavaScript · Node.js · Java · Go · Ruby · C#
L2 Calendar API: ratings & reviews · L2 Calendar API alternatives · more free APIs for PHP