I don’t know about an API, but these are some availability checkers to try:
- https://en.greatfire.org/analyzer
- https://ping.chinaz.com/ (you mentioned)
- https://www.17ce.com/ (makes connections to wsapi.17ce.com:8001, perhaps has an API)
- https://www.ping.cn/