Attempting to pull class data for students. Am I doing this right?

I pulled “/schedules/meetings” for offering type of 1. Then I used that to pull "/academics/sections/{{section_id}}/students" for each section. I only seemed to get 1 student which might be a coding error though I assume they should all be in “value” as an array. I will double check that.

Mostly wondering if this is the correct approach or is there a better way. The goal is to pull in the date, room, teachers, and students for all classes on a specific day.

Comments

  • Brian Gray
    Brian Gray Community All-Star
    Eighth Anniversary Kudos 5 K-12 Fall 2025 Product Update Briefing Badge Name Dropper

    @Evan Cox - The sequence you describe is what I do.

    The calls to /academics/sections/{{section_id}}/students should return all students in the section. Have you tested the call with the Try it button in the API Reference page? This page also shows you the JSON format used to send the data.

    When you enter a valid section number there, you should get the full roster of students. Does the count field there match what you get when you make the call directly?

    You said that you are getting only one student per call. Is that student enrolled in the section?

  • @Brian Gray
    I see now what I was doing wrong. I had looped through ["values"] and basically only saved the last student.

    Thanks for the confirmation though!

  • Bryna Gleich
    Bryna Gleich Blackbaud Employee
    Tenth Anniversary Kudos 3 Name Dropper Participant

    @Evan Cox Hi Evan! Just wanted to let you know I moved this discussion thread from the general section of SKY Dev

    to the sub-section specific to schools at


    Nothing is wrong. I just wanted to put it with the other school ones.