Skip to main content
GET
/
attendance
List Attendances
curl --request GET \
  --url https://api.meitner.se/data-export/v1/attendance \
  --header 'Client-ID: <api-key>' \
  --header 'Client-Secret: <api-key>'
{
  "data": [
    {
      "school": {
        "id": "12345678-1234-1234-1234-123456789012",
        "displayName": "Meitner Grundskola"
      },
      "student": {
        "id": "12345678-1234-1234-1234-123456789012",
        "identityNumber": "20000101-1234",
        "firstName": "John",
        "lastName": "Doe",
        "dateOfBirth": "2000-01-01",
        "gender": "Male",
        "schoolType": "GR",
        "schoolYear": "9"
      },
      "subject": {
        "title": "Matematik",
        "code": "MAT"
      },
      "course": {
        "title": "Matematik 2b",
        "code": "MATMAT02B"
      },
      "report": {
        "status": "Attendance",
        "date": "2024-01-01",
        "week": "1",
        "lessonDurationMinutes": 45,
        "absenceDurationMinutes": 15
      }
    }
  ],
  "pagination": {
    "offset": 0,
    "limit": 1,
    "total": 100
  }
}

Authorizations

Client-ID
string
header
required
Client-Secret
string
header
required

Query Parameters

limit
integer
default:50

The maximum number of Attendances to return (default: 50) when listing Attendances

Example:

1

offset
integer
default:0

The number of Attendances to skip before starting to return results (default: 0) when listing Attendances

Example:

0

Response

Response for Attendance List operation - returns a paginated list of Attendance

data
object[]

Array of Attendance objects

Example:
[
{
"school": {
"id": "12345678-1234-1234-1234-123456789012",
"displayName": "Meitner Grundskola"
},
"student": {
"id": "12345678-1234-1234-1234-123456789012",
"identityNumber": "20000101-1234",
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "2000-01-01",
"gender": "Male",
"schoolType": "GR",
"schoolYear": "9"
},
"subject": { "title": "Matematik", "code": "MAT" },
"course": {
"title": "Matematik 2b",
"code": "MATMAT02B"
},
"report": {
"status": "Attendance",
"date": "2024-01-01",
"week": "1",
"lessonDurationMinutes": 45,
"absenceDurationMinutes": 15
}
}
]
pagination
object

Pagination information

Example:
{ "offset": 0, "limit": 1, "total": 100 }