Skip to main content
GET
/
school
Python (SDK)
from meitner import Meitner, models
import os


with Meitner(
    security=models.Security(
        client_credentials=os.getenv("MEITNER_CLIENT_CREDENTIALS", ""),
        client_secret=os.getenv("MEITNER_CLIENT_SECRET", ""),
    ),
) as m_client:

    res = m_client.schools.list(limit=1, offset=0)

    while res is not None:
        # Handle items

        res = res.next()
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "meta": {
        "createdAt": "2024-01-15T10:30:00Z",
        "createdBy": "987fcdeb-51a2-43d1-b567-123456789abc",
        "updatedAt": "2024-01-15T14:45:00Z",
        "updatedBy": "987fcdeb-51a2-43d1-b567-123456789abc"
      },
      "external": {
        "sourceID": "12345678",
        "source": "ExternalIntegrationAPI"
      },
      "title": "Meitner Grundskola",
      "unitCode": "12345678",
      "csnSchoolCode": "12345",
      "municipalityCode": "0184",
      "schoolType": "GR"
    }
  ],
  "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 Schools to return (default: 50) when listing Schools

offset
integer
default:0

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

Response

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

data
object[]

Array of School objects

pagination
object

Pagination information

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