Skip to content

Instantly share code, notes, and snippets.

@dimasahmad
Last active October 15, 2020 05:55
Show Gist options
  • Save dimasahmad/f5a6e1dfc1fc86fe795e565e1731ebe3 to your computer and use it in GitHub Desktop.
Save dimasahmad/f5a6e1dfc1fc86fe795e565e1731ebe3 to your computer and use it in GitHub Desktop.
Dapodik Webservice Response Examples
Access denied - You are not authorized to access this page. #1
{"success":false,"http_code":403,"status_code":"Forbidden","message":"IP Address yang didaftarkan pada Web Service
Dapodik berbeda"}
{"success":false,"http_code":403,"status_code":"Forbidden","message":"Aplikasi tidak terdaftar pada Web Service
Dapodik"}
{"success":false,"http_code":403,"status_code":"Forbidden","message":"Parameter NPSN harap diisi"}
{"success":false,"http_code":403,"status_code":"Forbidden","message":"Sekolah tidak ditemukan"}

No pagination support (the start and limit properties are misleading). The endpoint will return all entries in a single response.

This is the sample response. Some values are censored with [[]].

{
    "results": 90,
    "id": "rombongan_belajar_id",
    "start": 0,
    "limit": 20,
    "rows": [
        {
            "rombongan_belajar_id": "18e42312-7893-4527-92f1-3b8d9987ba56",
            "nama": "X IPS 4",
            "tingkat_pendidikan_id": "10",
            "semester_id": "20201",
            "jenis_rombel": "1",
            "kurikulum_id": 22,
            "kurikulum_id_str": "Kurikulum SMA 2013 IPS",
            "id_ruang": "ba2343e5-c471-4c5d-926d-9c74187cbe1b",
            "id_ruang_str": "X IPS 4",
            "moving_class": "Tidak",
            "ptk_id": "93b27c59-7752-4ee1-b8ee-e749436df904",
            "ptk_id_str": "[[Nama Guru Wali Kelas]]",
            "jenis_rombel_str": "Kelas",
            "jurusan_id": "00000100",
            "jurusan_id_str": "Ilmu Pengetahuan Sosial",
            "anggota_rombel": [
                {
                    "anggota_rombel_id": "e28dabc3-cb38-480b-8359-033de5f7d1cf",
                    "peserta_didik_id": "f225b793-2adf-402c-9b86-271a25daa1e1",
                    "jenis_pendaftaran_id": "1",
                    "jenis_pendaftaran_id_str": "Siswa baru"
                }, {
                    "anggota_rombel_id": "f97ce98b-777e-4753-a5ca-171e4d129e31",
                    "peserta_didik_id": "142e224e-8d08-e211-864d-d95f06de6111",
                    "jenis_pendaftaran_id": "1",
                    "jenis_pendaftaran_id_str": "Siswa baru"
                }, {
                    "anggota_rombel_id": "fd8c2546-8cc2-4ef5-b4f8-030c15855717",
                    "peserta_didik_id": "59ee57c4-fb02-e211-af97-f1660fda64d4",
                    "jenis_pendaftaran_id": "1",
                    "jenis_pendaftaran_id_str": "Siswa baru"
                }
            ],
            "pembelajaran": [
                {
                    "pembelajaran_id": "cd557085-ec4c-492c-b4f4-043eb07113b1",
                    "mata_pelajaran_id": 300110000,
                    "mata_pelajaran_id_str": "Bahasa Indonesia",
                    "ptk_terdaftar_id": "726c480e-4c7e-4f9d-b514-a33a6abe23b2",
                    "ptk_id": "6fd9715b-69e2-42b4-a129-eb7ac6607a47",
                    "nama_mata_pelajaran": "Bahasa Indonesia",
                    "induk_pembelajaran_id": null,
                    "jam_mengajar_per_minggu": "4",
                    "status_di_kurikulum": "3",
                    "status_di_kurikulum_str": "Matpel Bidang Studi Wajib A \/ Kelompok A"
                }, {
                    "pembelajaran_id": "be3789e3-1953-48ce-931b-0d499053bd81",
                    "mata_pelajaran_id": 300311900,
                    "mata_pelajaran_id_str": "Muatan Lokal Bahasa Daerah",
                    "ptk_terdaftar_id": "07217276-3804-408c-9834-acef66b4f48c",
                    "ptk_id": "1bbbd3ed-355b-49f1-a023-0fd8dc14bedf",
                    "nama_mata_pelajaran": "Muatan Lokal Bahasa Daerah",
                    "induk_pembelajaran_id": null,
                    "jam_mengajar_per_minggu": "2",
                    "status_di_kurikulum": "2",
                    "status_di_kurikulum_str": "Matpel Bidang Studi Wajib (tambahan jam)"
                }, {
                    "pembelajaran_id": "140f062e-548c-4941-94b8-1a67458f109f",
                    "mata_pelajaran_id": 401241000,
                    "mata_pelajaran_id_str": "Sosiologi",
                    "ptk_terdaftar_id": "2afc19f4-b170-4a56-b6f7-703b4a56bfa1",
                    "ptk_id": "e86ca93a-40d2-11e4-841a-6f2ca8e8f473",
                    "nama_mata_pelajaran": "Sosiologi",
                    "induk_pembelajaran_id": null,
                    "jam_mengajar_per_minggu": "3",
                    "status_di_kurikulum": "5",
                    "status_di_kurikulum_str": "Matpel Peminatan"
                }
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment