API

Endpoint

/wp-json/ez/v1/events

Restituisce in formato JSON gli eventi che iniziano nella data richiesta, filtrabili per città e lingua.

Returns in JSON format the events that start on the requested date, filterable by city and language.

Parametri

Parametro Dettagli
date
IT: Data per cui cercare gli eventi attivi.
EN: Date for which active events should be returned.
Obbligatorio: No
Formato: YYYY-MM-DD
Default: 2026-05-01
city
IT: Città cercata in modo parziale e senza distinzione tra maiuscole e minuscole nel campo event_place.
EN: City searched as a partial match and case-insensitively within event_place.
Obbligatorio: No
lang
IT: Lingua dei campi titolo e sommario.
EN: Language of title and summary fields.
Obbligatorio: No
Default: it
Valori ammessi: it, en

Campi restituiti

  • date
  • start_time
  • end_time
  • title
  • address
  • summary
  • event_start_date
  • event_end_date

Esempi

  • https://e-zine.it/wp-json/ez/v1/events
  • https://e-zine.it/wp-json/ez/v1/events?date=2026-03-26
  • https://e-zine.it/wp-json/ez/v1/events?date=2026-03-26&city=Roma&lang=it
  • https://e-zine.it/wp-json/ez/v1/events?city=Rome&lang=en

Output completo

{
    "endpoint": "/wp-json/ez/v1/events",
    "description_it": "Restituisce in formato JSON gli eventi che iniziano nella data richiesta, filtrabili per città e lingua.",
    "description_en": "Returns in JSON format the events that start on the requested date, filterable by city and language.",
    "parameters": {
        "date": {
            "format": "YYYY-MM-DD",
            "required": false,
            "default": "2026-05-01",
            "description_it": "Data per cui cercare gli eventi attivi.",
            "description_en": "Date for which active events should be returned."
        },
        "city": {
            "required": false,
            "description_it": "Città cercata in modo parziale e senza distinzione tra maiuscole e minuscole nel campo event_place.",
            "description_en": "City searched as a partial match and case-insensitively within event_place."
        },
        "lang": {
            "required": false,
            "allowed_values": [
                "it",
                "en"
            ],
            "default": "it",
            "description_it": "Lingua dei campi titolo e sommario.",
            "description_en": "Language of title and summary fields."
        }
    },
    "returned_fields": [
        "date",
        "start_time",
        "end_time",
        "title",
        "address",
        "summary",
        "event_start_date",
        "event_end_date"
    ],
    "examples": [
        "/wp-json/ez/v1/events",
        "/wp-json/ez/v1/events?date=2026-03-26",
        "/wp-json/ez/v1/events?date=2026-03-26&city=Roma&lang=it",
        "/wp-json/ez/v1/events?city=Rome&lang=en"
    ]
}