如何判断是否受到速率限制?

如果受到速率限制,那么您的请求返回中将具有HTTP状态代码4xx,并包含错误信息,您可以根据相应的错误信息进行调整。

{
    “success”: false,
    “error”: “The key exceeds the frequency limit(15), and the query server is suspended for 30s”,
    “statusCode”: 403
}
{
    “Error”: “The key exceeds the frequency limit(15), and the query server is suspended for 30s”
}