---
tags: 噗浪
---
# 噗浪即時狀態 API (非官方)
## GET Diagnostics
API: `GET https://plurk.moka-rin.moe/do/diagnostics/{TYPE}?offset={OFFSET}`
Gets diagnostics information of Plurk API, may be used for composing charts.
Parameters:
- `{TYPE}`: Diagnostics Type
- `0`: Normal API response time
- `1`: Error response
- `2`: Polling comet time errors for more than 1 minute compared to actual time
- `{OFFSET}`: Offset timestamp[^timestamp]
[^timestamp]: All timestamps are UNIX timestamps but in milliseconds.
Return data:
JSON: `[[timestamp, data], ...]`
- For type = `0`:
`data`: response time in milliseconds
- For type = `1`:
`data`: HTTP response code occured (`400`, `500`, etc.)
- For type = `2`:
`data`: Polling comet time difference in milliseconds.
## COPYRIGHT AND DISCLAIMER
All data is provided from [Moka Rin](https://www.plurk.com/moka_rin) running, copyright (C) Jeremy Lam "JLChnToZ", part of Explosive Theorem Projects. These API are not endorsed by nor affiliated with Plurk Ltd. These API provided "as-is", without any warrenty, does not guarantee any stability and accuracy, use at your own risk.