Tutorials
Read your credit log
The Credit log shows every change to your balance, newest first.
| Column | What it shows |
|---|---|
| When | The date and time, in your computer's time zone |
| Used from | Web, Desktop or API. Credits added or expired show as Added or Expired. |
| What | The file name and, for the API, the key's label, plus the pages and DPI. Desktop lines show no file name, because it never leaves your PC. |
| Credits | What it cost, or what was added |
| Balance | Your balance after this line |
- Filter with the Web, Desktop and API buttons above the table.
- Export with Download CSV. It includes the lines loaded on the page, so click Load more first if you want older ones.
- Failed pages cost nothing, so a conversion can show 0 credits.
From your own code
A key with the usage:read scope can read the same log. See GET /v1/activity.
<?php
$api = getenv('RASTERNIVO_API_URL') ?: 'https://rasternivo-api.swiftinfocorp.com/v1';
$ch = curl_init("$api/activity?limit=20");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('RASTERNIVO_API_KEY')],
]);
$data = json_decode(curl_exec($ch), true);
foreach ($data['activity'] as $entry) {
echo $entry['at'], ' ', $entry['channel'] ?? $entry['kind'], ' ', $entry['amount'], ' ', $entry['balance_after'], "\n";
}import os
import requests
API = os.environ.get("RASTERNIVO_API_URL", "https://rasternivo-api.swiftinfocorp.com/v1")
data = requests.get(
f'{API}/activity?limit=20',
headers={"Authorization": "Bearer " + os.environ["RASTERNIVO_API_KEY"]},
).json()
for entry in data["activity"]:
print(entry["at"], entry["channel"] or entry["kind"], entry["amount"], entry["balance_after"])const API = process.env.RASTERNIVO_API_URL ?? "https://rasternivo-api.swiftinfocorp.com/v1";
const res = await fetch(`${API}/activity?limit=20`, {
headers: { Authorization: `Bearer ${process.env.RASTERNIVO_API_KEY}` },
});
const data = await res.json();
for (const entry of data.activity) {
console.log(entry.at, entry.channel ?? entry.kind, entry.amount, entry.balance_after);
}curl "https://rasternivo-api.swiftinfocorp.com/v1/activity?limit=20" \
-H "Authorization: Bearer $RASTERNIVO_API_KEY"