The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Hello everyone! I am trying to pull all announcements for a course via the announcement api, but I cannot get it to pull anything besides the last three. Even if I set the page_per high, I only get the last three. Here are two iterations of my api call:
api/v1/announcements?context_codes=course_[XXX]&page=1&page_per=100
api/v1/announcements?context_codes=course_[XXX]&page_per=100
I feel like this has something to do with the required context_codes parameter, but I was wondering if anyone else has experienced this/found a solution before I dig further.
Thank you!
Regards,
John
Solved! Go to Solution.
To get course-level announcements, I generally use the List discussion topics endpoint with the query parameter "only_announcements" set equal to true.
To get course-level announcements, I generally use the List discussion topics endpoint with the query parameter "only_announcements" set equal to true.
That worked!! Thank you!!
-John
You're welcome 😀 I'm glad to know that worked for you!
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in