diff --git a/src/utils/apiutil.js b/src/utils/apiutil.js
index 94dee186948baab225e5824ec5ec4b1fce8f59ba..d3156fef7ebd8bb7bd8d9be962d66b37d68be90e 100644
--- a/src/utils/apiutil.js
+++ b/src/utils/apiutil.js
@@ -71,3 +71,16 @@ export function getOwnerRating(userid) {
       console.error(error);
     });
 }
+
+export function getAverageRating(userid) {
+  return axios
+    .get(API_URL + "rating/" + userid + "/average", {
+      headers: tokenHeader(),
+    })
+    .then((response) => {
+      return response.data;
+    })
+    .catch((error) => {
+      console.error(error);
+    });
+}