API Description - Ist Spahn noch im Amt

API Endpoint: /api/v1/inOffice

This endpoint returns the current status of Jens Spahn's political roles.

Method

GET

Response

A JSON object with the following structure:

{
  "lastUpdated": "2025-01-01 12:34:56",
  "isSpahnStillInOffice": true,
  "isSpahnStillInParliament": true,
  "isSpahnStillParliamentaryLeader": true
}

Field Descriptions

Field Type Description
lastUpdated string (datetime) Timestamp of the last status update in YYYY-MM-DD HH:MM:SS format. (Timezone Europe/Berlin)
isSpahnStillInOffice boolean true if Jens Spahn currently holds a public office.
isSpahnStillInParliament boolean true if he is currently a member of the German Bundestag.
isSpahnStillParliamentaryLeader boolean true if he is currentl a parliamentary leader in the German Bundestag.

Example Usage (JavaScript)

fetch('/api/v1/inOffice')
  .then(res => res.json())
  .then(data => {
    console.log('Is Spahn in office?', data.isSpahnStillInOffice);
  });

Notes