getTopupsProducts
Last Updated 11th May, 2025
The getTopupsProducts
query returns a list of all available top-up products. It requires API key authentication and responds with basic product information (name, productId, price).
🔗 Endpoint
URL: https://api.vscgames.com/graphql
Method: POST
Content-Type: application/json
🔍 Query Structure
query {
getTopupsProducts {
name
productId
price
}
}
📥 Headers
Header
Required
Description
apikey
✅ Yes
API key of the user
✅ Successful Response
{
"data": {
"getTopupsProducts": [
{
"name": "Free Fire 110 Diamonds",
"productId": "abc123",
"price": 1.66
},
{
"name": "PUBG UC 60",
"productId": "def456",
"price": 0.99
}
]
}
}
🚫 Error Responses
Message
Reason
API key required in headers
Missing apikey
in headers
Invalid API key
The key provided does not match a user
🧪 Code Examples
Python
import requests
url = "https://api.vscgames.com/graphql"
headers = {
"Content-Type": "application/json",
"apikey": "YOUR_API_KEY"
}
query = """
query {
getTopupsProducts {
name
productId
price
}
}
"""
response = requests.post(url, json={"query": query}, headers=headers)
print(response.json())
JavaScript
const fetch = require("node-fetch");
const query = `
query {
getTopupsProducts {
name
productId
price
}
}`;
fetch("https://api.vscgames.com/graphql", {
method: "POST",
headers: {
"Content-Type": "application/json",
"apikey": "YOUR_API_KEY"
},
body: JSON.stringify({ query })
})
.then(res => res.json())
.then(data => console.log(data));
Last updated