# API Endpoint for scores

**URL:** <https://community.ntppool.org/t/api-endpoint-for-scores/2986>\
**Category:** Server operators\
**Tags:** monitoring\
**Created:** [August 8, 2023, 1:32pm UTC](https://community.ntppool.org/t/api-endpoint-for-scores/2986 "2023-08-08T13:32:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![levidurfee](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/levidurfee/32/1106_2.png) [@levidurfee](https://community.ntppool.org/u/levidurfee)\
**Post date:** [August 8, 2023, 1:32pm UTC](https://community.ntppool.org/t/api-endpoint-for-scores/2986/1 "2023-08-08T13:32:16Z")

</div>

Is there an API endpoint where I can retrieve a server’s current score?

---

<div class="post-metadata">

**Author:** ![apuls](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/apuls/32/1467_2.png) [@apuls](https://community.ntppool.org/u/apuls)\
**Post date:** [August 8, 2023, 6:46pm UTC](https://community.ntppool.org/t/api-endpoint-for-scores/2986/2 "2023-08-08T18:46:02Z")

</div>

Not an API directly but you can add /log?limit=200&monitor=\* behind every score url.  
ex: [https://www.ntppool.org/scores/144.91.116.85/log?limit=200&monitor=](https://www.ntppool.org/scores/144.91.116.85/log?limit=200&monitor=)\*

---

<div class="post-metadata">

**Author:** ![ask](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/ask/32/907_2.png) [@ask](https://community.ntppool.org/u/ask)\
**Post date:** [August 16, 2023, 11:08pm UTC](https://community.ntppool.org/t/api-endpoint-for-scores/2986/3 "2023-08-16T23:08:22Z")

</div>

Building on what @apuls said, there’s also a JSON version of the log, and you can specify which monitors you want results for. The overall score is a “monitor” in the system (it used to be id=0), so this URL gives the most recent score from the “recentmedian” scorer (the active one):

[https://www.ntppool.org/scores/144.91.116.85/json?limit=1&monitor=24](https://www.ntppool.org/scores/144.91.116.85/json?limit=1&monitor=24)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/system/32/1_2.png) [@system](https://community.ntppool.org/u/system)\
**Post date:** [September 15, 2023, 11:09pm UTC](https://community.ntppool.org/t/api-endpoint-for-scores/2986/4 "2023-09-15T23:09:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
