GetXAPI
Account

Payment History

Get your GetXAPI payment and top-up history via API. Free endpoint, 30 requests/min.

GET/account/payments

This 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"
    }
  ]
}
FieldTypeDescription
amountnumberPayment amount ($)
credits_addednumberCredits added to account
statusstringPayment status (e.g. "completed")
created_atstringPayment 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"])

On this page