# Grades for student

**URL:** <https://discuss.openedx.org/t/grades-for-student/1551>\
**Category:** Development\
**Created:** [March 9, 2020, 4:22pm UTC](https://discuss.openedx.org/t/grades-for-student/1551 "2020-03-09T16:22:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw56578](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jw56578/32/601_2.png) [@jw56578](https://discuss.openedx.org/u/jw56578)\
**Post date:** [March 9, 2020, 4:22pm UTC](https://discuss.openedx.org/t/grades-for-student/1551/1 "2020-03-09T16:22:01Z")

</div>

Is there an endpoint in the LMS api that allows a student to retrieve only their own grades for a course?

---

<div class="post-metadata">

**Author:** ![itsjeyd](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/itsjeyd/32/214_2.png) [@itsjeyd](https://discuss.openedx.org/u/itsjeyd)\
**Post date:** [April 17, 2020, 2:30pm UTC](https://discuss.openedx.org/t/grades-for-student/1551/2 "2020-04-17T14:30:11Z")

</div>

Hi @jw56578! There is no [separate endpoint](https://github.com/edx/edx-platform/blob/master/lms/djangoapps/grades/rest_api/v1/views.py#L48) but you can use a query string specifying a username to retrieve the grade for a particular user and course:

```auto
/api/grades/v1/courses/{course_id}/?username={username}

```

For example:

```auto
api/grades/v1/courses/course-v1:edX+DemoX+Demo_Course/?username=awesome-learner

```

A regular learner will get a 200 response when doing this for their own user, and a 403 when trying to obtain the grade for a different user.

Staff users will get a meaningful response for all users that are enrolled in the course.

Whatever the role of the user attempting this, they must authenticate in order to successfully request data from this endpoint.

---

<div class="post-metadata">

**Author:** ![jw56578](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jw56578/32/601_2.png) [@jw56578](https://discuss.openedx.org/u/jw56578)\
**Post date:** [April 18, 2020, 8:20pm UTC](https://discuss.openedx.org/t/grades-for-student/1551/3 "2020-04-18T20:20:26Z")

</div>

Thanks for the response, but I meant is there one that returns all the individual grades for the individual assignments.

---

<div class="post-metadata">

**Author:** ![itsjeyd](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/itsjeyd/32/214_2.png) [@itsjeyd](https://discuss.openedx.org/u/itsjeyd)\
**Post date:** [April 20, 2020, 3:21pm UTC](https://discuss.openedx.org/t/grades-for-student/1551/4 "2020-04-20T15:21:34Z")

</div>

Oh, OK 🙂 Off the top of my head I think there isn’t. In general, a useful resource to look at if you want to get info on endpoints that the Open edX REST API provides is [https://courses.edx.org/api-docs/](https://courses.edx.org/api-docs/).
