Account
Payment History
Get your GetXAPI payment and top-up history via API. Free endpoint, 30 requests/min.
GET
/account/paymentsThis endpoint is free (no credits deducted). Rate limited to 30 requests per minute per API key.
Notes
- Returns your payment/top-up history, sorted by most recent first.
- Uses the same
Authorization: Bearer <API_KEY>header as the Twitter endpoints. - Free to call — no credits consumed.
Response (200)
{
"payments": [
{
"amount": 10,
"credits_added": 10,
"status": "completed",
"created_at": "2026-03-18T00:17:02.346Z"
}
]
}| Field | Type | Description |
|---|---|---|
amount | number | Payment amount ($) |
credits_added | number | Credits added to account |
status | string | Payment status (e.g. "completed") |
created_at | string | Payment date (ISO 8601) |
Error Responses
429 - Rate limited
{
"error": "Too many requests. Limit: 30 per minute."
}Examples
curl -X GET "https://api.getxapi.com/account/payments" \
-H "Authorization: Bearer API_KEY"const response = await fetch("https://api.getxapi.com/account/payments", {
headers: { Authorization: "Bearer API_KEY" },
});
const data = await response.json();
console.log(data.payments);import requests
response = requests.get(
"https://api.getxapi.com/account/payments",
headers={"Authorization": "Bearer API_KEY"},
)
print(response.json()["payments"])