getQueriesLeft
The getQueriesLeft query returns the number of remaining query units available for a given API key. Each query to a protected endpoint deducts one unit. You can use this to monitor usage and know when to recharge.
🔗 Endpoint
URL: https://argonpay.onrender.com/graphql
Method: POST
Content-Type: application/json
🧾 Query Structure
query GetQueriesLeft($apiKey: String!) {
getQueriesLeft(apiKey: $apiKey)
}📥 Parameters
Name
Type
Required
Description
apiKey
String
✅
Your issued API key
✅ Successful Response
{
"data": {
"getQueriesLeft": 382
}
}🚫 Error Handling
If the API key is invalid or not found, the server will return:
🧪 Code Examples
Python Example
JavaScript Example
Last updated