Skip to content

DettingenConnect – Handbook for interfaces

This handbook is for you if you want to show events and other public content from DettingenConnect somewhere else: on your club's website, in the calendar on your phone, on an information screen or in a newsletter. It explains which interfaces there are, what they deliver and how to connect to them, with examples you can copy.

Good to know: All addresses in this handbook point to this installation (https://dettingenconnect.de). Each community has its own installation with its own address.

1. Overview

What there is

  • Events as JSON: the next public events, for all organisations or for one. For websites, WordPress, scripts and information screens (chapter 2).
  • Events as a calendar (iCal): a subscription link for all events, one per organisation and a file for a single event. For Google Calendar, iPhone, Outlook and Thunderbird (chapter 3).
  • Links, QR codes and pages: filtered event lists, short links, QR codes for posters, the sitemap and structured data for search engines (chapter 4).

Rules for all interfaces

  • Public content only. You get exactly what guests without an account see in the app. Events for members only or internal events are never included, and neither is any information about people (who has signed up, who takes part).
  • No account, no key. The interfaces work without signing in. There is nothing to apply for.
  • Read only. You can't create, change or sign up for anything through the interfaces. That only works in the app.
  • Fetch in moderation. Each address allows 60 requests per minute; after that the server answers with 429 Too Many Requests for one minute. Cache the response on your side (for example for 15 minutes) instead of fetching it again on every visit to your page.
  • Times in UTC. All times are in Coordinated Universal Time with the offset (2026-11-14T18:30:00+00:00). Convert them to your time zone for display, for example Europe/Berlin.
  • Links lead into the app. Every event and every organisation comes with its address in the app. Link to it, so people can sign up there, ask questions and get notified.

2. Events as JSON

Addresses

  • All organisations: https://dettingenconnect.de/api/public/events/upcoming
  • One organisation: https://dettingenconnect.de/api/public/groups/<short-name>/events/upcoming

You'll find an organisation's short name in the address of its page in the app: for https://dettingenconnect.de/en/organisationen/musikverein it is musikverein.

The response is a list of the next events, sorted by start. An event stays in the list until it has ended. Cancelled events stay in as well and are marked as cancelled, so you can show the cancellation.

Other websites may also fetch these addresses directly in the browser (the server sends Access-Control-Allow-Origin: *). So you don't need a server of your own for it (chapter 6).

Parameters

  • limit: how many events, 1 to 20, 5 if not given.
  • offset: skip this many events, for paging. Example: ?limit=20&offset=20 returns events 21 to 40.
  • index: exactly the n-th next event, counted from 1. ?index=1 is the next event. With index and without limit you get exactly one.

Example: the next ten events of the music club:

https://dettingenconnect.de/api/public/groups/musikverein/events/upcoming?limit=10

Response fields

Each event has these fields:

  • id: the event's number. It stays the same even if the time or title changes.
  • title: title.
  • starts_at, ends_at: start and end (UTC, see above).
  • description: description as Markdown (paragraphs, lists, links), may be empty.
  • status: scheduled (taking place) or canceled, plus is_canceled as true/false.
  • bookable: true as long as people can still sign up in the app (not cancelled, not fully booked).
  • allow_attach: true as long as the event isn't cancelled (from the previous version, means the same as "not cancelled").
  • group: the organisation with name, url (page in the app) and short_description (tagline, may be empty).
  • location: where it takes place, with name (place, also with the room), address, url (place page in the app) and type. type is site (a building or hall), meeting_point (an outdoor meeting point, with coordinates as lat/lon) or null if the place is only given as text.
  • site and meeting_point: the same information again, split by kind (from the previous version); the other one is null.
  • image_url: image for the event (the organisation's logo, otherwise its cover image, otherwise the place's) as WebP, or null.
  • url: the event's page in the app.

This is what an event looks like:

{
  "id": 412,
  "title": "Autumn concert",
  "starts_at": "2026-11-14T18:30:00+00:00",
  "ends_at": "2026-11-14T21:30:00+00:00",
  "description": "Our big end-of-year concert.",
  "status": "scheduled",
  "is_canceled": false,
  "allow_attach": true,
  "group": {
    "name": "Music club",
    "url": "https://dettingenconnect.de/en/organisationen/musikverein",
    "short_description": "Brass music since 1890"
  },
  "site": { "name": "Community hall", "address": "Marktplatz 1", "url": "https://dettingenconnect.de/en/treffpunkte/buergerhaus" },
  "meeting_point": null,
  "location": {
    "type": "site",
    "name": "Community hall · Main hall",
    "address": "Marktplatz 1",
    "coordinates": null,
    "url": "https://dettingenconnect.de/en/treffpunkte/buergerhaus"
  },
  "image_url": "https://dettingenconnect.de/storage/…/card.webp",
  "bookable": true,
  "url": "https://dettingenconnect.de/en/termine/herbstkonzert-2026-11-14"
}

Errors and limits

  • If the short name doesn't exist, the server answers with 404.
  • If an organisation has no upcoming public events, you get an empty list [].
  • There are never more than 20 events per request; page through with offset.
  • The JSON interface has no filters for period, kind or place. Filter on your side, or link to the filtered event list in the app (chapter 4).
  • The fields stay stable. If new ones are added, simply ignore fields you don't know.

3. Events as a calendar (iCal)

Subscribing to all events

All public events in town are available as one subscription link in iCal format (RFC 5545):

https://dettingenconnect.de/termine/kalender.ics

In the app, it's at the top of the Events page behind the calendar symbol: Subscribe in calendar app or Copy subscription link. The same rules apply as for an organisation's subscription (next section). It covers all organisations and can therefore contain a lot of events; if you only want to follow one organisation, use its subscription instead.

Subscribing to an organisation

Every organisation has a public subscription link in iCal format (RFC 5545):

https://dettingenconnect.de/organisationen/<short-name>/kalender.ics

Anyone who subscribes to it in their calendar app has all of the organisation's public events in their own calendar. New events, changes and cancellations come through by themselves, every few hours depending on the app. The calendar contains events from three months back. Cancelled events stay in with STATUS:CANCELLED, so they show up as cancelled in the calendar instead of quietly disappearing.

In the app, the link is on every organisation's page under Upcoming events: Subscribe to calendar opens the calendar app directly, the symbol next to it copies the link. You can pass it on, put it on your website or include it in a newsletter. Chapter 5 explains how to add it to the common calendars.

Hidden organisations or organisations not yet approved have no public calendar (404).

Single event

Every public event can be downloaded as a file and added to any calendar:

https://dettingenconnect.de/termine/<event>/kalender.ics

<event> is the end of the event page's address, for example herbstkonzert-2026-11-14. In the app, this is the Add to calendar button on an event's page.

Personal subscription for members

Members also have a personal subscription link with all the events they've signed up for (under My tickets › Subscribe to calendar). This link is secret and belongs only to that person. It is not an interface for others and should never be passed on.

Filtered event list

Instead of showing events yourself, you can also link directly to a filtered event list in the app. People always see the current state there and can sign up straight away.

  • https://dettingenconnect.de/en/termine?gruppe=<short-name>: events of one organisation.
  • https://dettingenconnect.de/en/termine?ort=<place>: events at one place. <place> is the end of the place page's address (https://dettingenconnect.de/en/treffpunkte/buergerhaus).
  • https://dettingenconnect.de/en/termine?segment=heute or ?segment=woche: today or this week.
  • https://dettingenconnect.de/en/termine?tag=2026-12-24: a particular day.
  • https://dettingenconnect.de/en/termine?kind=workshop: by kind, meeting, workshop or public_event.
  • https://dettingenconnect.de/en/termine?fuer=kinder: by age, kinder (children), jugendliche (teenagers), erwachsene (adults) or senioren (seniors).

The filters can be combined, for example ?gruppe=musikverein&segment=woche. Instead of en you can put any of the app's languages at the start of the path (/de/termine). If you leave out the language, every visitor gets the page in their own language. The paths themselves are German in every language.

Every organisation has a short link and a QR code for posters, flyers and notices (in the app under Manage › Invite & share › Short link & QR code):

  • Short link: https://dettingenconnect.de/s/<code>. Instead of a code, the organisation's short name works too, so https://dettingenconnect.de/s/musikverein.
  • QR code as SVG for printing: https://dettingenconnect.de/kurzlinks/<code>/qr
  • QR code as PNG (1024 pixels, for Word, newspapers and social networks): https://dettingenconnect.de/kurzlinks/<code>/qr?format=png
  • QR code straight to the event list: https://dettingenconnect.de/kurzlinks/<code>/qr?ansicht=termine

Sitemap and structured data

  • https://dettingenconnect.de/sitemap.xml lists all public pages (events, places, organisations) with their language versions, and https://dettingenconnect.de/robots.txt points to it.
  • Event, place and job pages carry structured data following schema.org (Event, Place, JobPosting) as JSON-LD in the page header. Search engines use it to show events directly in the results.
  • Every public page has Open Graph information (title, description, image). Messengers and social networks use it to show a preview when the page is shared.

5. Example: calendar apps

For all examples you need a subscription link from chapter 3, for example https://dettingenconnect.de/termine/kalender.ics for all events or https://dettingenconnect.de/organisationen/musikverein/kalender.ics for one organisation. On a phone, a tap on Subscribe to calendar in the app is usually all it takes.

Google Calendar

  1. Open Google Calendar on a computer in the browser (subscribing doesn't work in Google's phone app).
  2. Tap + next to Other calendars on the left, then From URL.
  3. Paste the subscription link and choose Add calendar.
  4. The calendar appears after a few minutes, on your phone too. Google updates subscribed calendars roughly every 12 to 24 hours.

iPhone and Mac

  • iPhone: Tap Subscribe to calendar in the app and confirm with Subscribe. By hand: Settings › Calendar › Accounts › Add Account › Other › Add Subscribed Calendar, paste the link.
  • Mac: In the Calendar app choose File › New Calendar Subscription, paste the link. Under Auto-refresh you can choose, for example, Every hour.

Outlook

  • Outlook in the browser (Outlook.com, Microsoft 365): Calendar › Add calendar › Subscribe from web, paste the link, give it a name, Import.
  • Outlook on a Windows computer: Calendar › Add calendar › From Internet, paste the link, OK.

Thunderbird

Open Calendar, on the left under the calendars choose New Calendar › On the Network, paste the link and choose Find Calendars, then Subscribe.

6. Example: events on your own website

This snippet shows an organisation's next events on any website, without a server of your own and without a plugin. Copy it to the spot where the events should appear and replace musikverein with your short name.

<div id="events">Loading events …</div>
<script>
(async () => {
  const box = document.getElementById('events');
  const api = 'https://dettingenconnect.de/api/public/groups/musikverein/events/upcoming?limit=5';
  const date = new Intl.DateTimeFormat('en-GB', {
    weekday: 'short', day: 'numeric', month: 'long', hour: '2-digit', minute: '2-digit',
    timeZone: 'Europe/Berlin',
  });
  try {
    const events = await (await fetch(api)).json();
    box.textContent = events.length ? '' : 'No events right now.';
    const list = document.createElement('ul');
    for (const event of events) {
      const item = document.createElement('li');
      const link = document.createElement('a');
      link.href = event.url;
      link.textContent = event.title;
      item.append(date.format(new Date(event.starts_at)) + ': ', link);
      if (event.location.name) item.append(' · ' + event.location.name);
      if (event.is_canceled) item.append(' (cancelled)');
      list.append(item);
    }
    box.append(list);
  } catch {
    box.textContent = 'The events could not be loaded right now.';
  }
})();
</script>

Tip: The snippet inserts all text with textContent, never as HTML. That way a title can never smuggle code into your page. Stick to this when you extend it.

You can style the list with your own CSS, for example via #events li { … }. A subscription link for visitors fits nicely below it:

<a href="https://dettingenconnect.de/organisationen/musikverein/kalender.ics">Subscribe to the events in your own calendar</a>

With webcal: instead of https: at the start, a click opens the calendar app directly on iPhone, Mac and Windows. Google Calendar needs the link with https:.

7. Example: WordPress and PHP

WordPress shortcode

With this snippet, the shortcode [termine gruppe="musikverein" anzahl="5"] shows the events on any page and in any post. Put it in a small plugin of your own or in your child theme's functions.php. WordPress caches the response for 15 minutes, so not every page view asks the interface.

<?php
add_shortcode('termine', function ($atts) {
    $atts = shortcode_atts(['gruppe' => '', 'anzahl' => 5], $atts);
    $base = 'https://dettingenconnect.de/api/public';
    $url = $atts['gruppe'] !== ''
        ? $base . '/groups/' . rawurlencode($atts['gruppe']) . '/events/upcoming'
        : $base . '/events/upcoming';
    $url = add_query_arg('limit', min(20, max(1, (int) $atts['anzahl'])), $url);

    $key = 'termine_' . md5($url);
    $events = get_transient($key);
    if ($events === false) {
        $response = wp_remote_get($url, ['timeout' => 5]);
        if (is_wp_error($response) || wp_remote_retrieve_response_code($response) !== 200) {
            return '<p>The events could not be loaded right now.</p>';
        }
        $events = json_decode(wp_remote_retrieve_body($response), true) ?: [];
        set_transient($key, $events, 15 * MINUTE_IN_SECONDS);
    }
    if ($events === []) {
        return '<p>No events right now.</p>';
    }

    $html = '<ul class="termine">';
    foreach ($events as $event) {
        $start = wp_date('D, j F, H:i', strtotime($event['starts_at']), new DateTimeZone('Europe/Berlin'));
        $html .= '<li>' . esc_html($start) . ': <a href="' . esc_url($event['url']) . '">'
            . esc_html($event['title']) . '</a>'
            . ($event['location']['name'] ? ' · ' . esc_html($event['location']['name']) : '')
            . ($event['is_canceled'] ? ' <strong>(cancelled)</strong>' : '') . '</li>';
    }

    return $html . '</ul>';
});

Plain PHP

It works the same way without WordPress, here with a file as the cache:

<?php
$url = 'https://dettingenconnect.de/api/public/groups/musikverein/events/upcoming?limit=5';
$cache = sys_get_temp_dir() . '/termine.json';

if (! is_file($cache) || filemtime($cache) < time() - 900) {
    $body = @file_get_contents($url, false, stream_context_create(['http' => ['timeout' => 5]]));
    if ($body !== false) {
        file_put_contents($cache, $body);
    }
}
$events = is_file($cache) ? json_decode(file_get_contents($cache), true) : [];

$format = new IntlDateFormatter('en_GB', IntlDateFormatter::FULL, IntlDateFormatter::SHORT, 'Europe/Berlin');
foreach ($events as $event) {
    printf(
        '<p>%s: <a href="%s">%s</a></p>',
        htmlspecialchars($format->format(new DateTimeImmutable($event['starts_at']))),
        htmlspecialchars($event['url']),
        htmlspecialchars($event['title'])
    );
}

8. Example: command line and scripts

curl

Look at the next three events, made readable with jq:

curl -s 'https://dettingenconnect.de/api/public/events/upcoming?limit=3' | jq '.[] | {title, starts_at, place: .location.name}'

Save an organisation's calendar as a file:

curl -s -o musikverein.ics 'https://dettingenconnect.de/organisationen/musikverein/kalender.ics'

Python

For example for an information screen or the weekly newsletter (standard library only, Python 3.9 or later):

import json
import urllib.request
from datetime import datetime
from zoneinfo import ZoneInfo

URL = "https://dettingenconnect.de/api/public/events/upcoming?limit=20"
BERLIN = ZoneInfo("Europe/Berlin")

with urllib.request.urlopen(URL, timeout=10) as response:
    events = json.load(response)

for event in events:
    start = datetime.fromisoformat(event["starts_at"]).astimezone(BERLIN)
    status = " (cancelled)" if event["is_canceled"] else ""
    print(f"{start:%d/%m %H:%M}  {event['title']}  · {event['group']['name']}{status}")
    print(f"    {event['url']}")

Node.js

fetch is built in from Node 18:

const response = await fetch('https://dettingenconnect.de/api/public/groups/musikverein/events/upcoming?limit=10');
const events = await response.json();
const date = new Intl.DateTimeFormat('en-GB', { dateStyle: 'medium', timeStyle: 'short', timeZone: 'Europe/Berlin' });

for (const event of events) {
  console.log(`${date.format(new Date(event.starts_at))}  ${event.title}${event.is_canceled ? ' (cancelled)' : ''}`);
}

Save it as termine.mjs and run it with node termine.mjs.

9. Questions and security

  • Something missing or not working? Write to us via Help & contact in the app. We're happy to take requests for further interfaces.
  • Found a security vulnerability? https://dettingenconnect.de/.well-known/security.txt explains how to report it to us confidentially.
  • Reusing the data: The events come from the organisations themselves. Show them with a link back to the event in DettingenConnect, so changes and cancellations reach people.