API Reference (Legacy)
Get Usage of API Credits

Get Usage of API Credits

API GetApiPointUsage

Introduction

⚠️

This interface is no longer maintained.

This interface is used to query the usage of API credits of the current account.

Request

Parameter NameTypeDescriptionRequired
ActionstringThe corresponding API command name, which is GetApiPointUsage for this API
PublicKeystringUser's public key, which can be obtained from the User Center (opens in a new tab)
SignaturestringUser's signature generated based on the public key and API command, see Signature
request_uuidstringRequest UUID, randomly generated using the UUID generation method

Request Example

{
    "Action":    "GetApiPointUsage",
    "PublicKey": "ALLak9M4cNdHXKOJAJJ4k8Hh1hZS2EgJF1D0FlPwfl",
    "request_uuid":"b91fcfbe-bb35-47ce-a168-bd6252c75270",
    "Signature": "0131f4e4296f3ca8e1220b47247e83a4315ea8e1"
}

Response

Field NameTypeDescriptionRequired
RetCodeintReturn status code. 0 indicates a successful response, non-zero indicates a failure.
ActionstringOperation command name.
MessagestringError message returned. Provides detailed description when RetCode is non-zero.
TotalPointNumintTotal number of account API points
UsedPointNumintNumber of account API points used
ExpireTimeintAPI Points Expiration Time

Response Example

{
	"Action": "GetApiPointUsage",
	"RetCode": 0,
	"Message": "",
	"TotalPointNum": 100000,
	"UsedPointNum": 100,
	"ExpireTime": 1725693991
}