Census API

The numbers behind the Player Census page, as free, read-only JSON for bots, fan sites and other tools. No key, no account and no cookies are needed.

Quick start

curl https://octowow.st/api/v1/census/online

Base address: https://octowow.st/api/v1

Players online now

GET/api/v1/census/online

Players online right now on each realm, and the total. The total is the same number as "Players online now" on the Player Census page. It is recounted every 60 seconds.

Example answer (made-up numbers):

{
    "total": 1910,
    "complete": true,
    "realms": [
        {
            "id": 56,
            "slug": "cthun",
            "name": "C'Thun",
            "type": "hardcore",
            "online": 1180,
            "alliance": 649,
            "horde": 531
        },
        {
            "id": 57,
            "slug": "nzoth",
            "name": "N'Zoth",
            "type": "normal",
            "online": 410,
            "alliance": 225,
            "horde": 185
        },
        {
            "id": 58,
            "slug": "yshaarj",
            "name": "Y'Shaarj",
            "type": "pvp",
            "online": 320,
            "alliance": 176,
            "horde": 144
        }
    ],
    "updated_at": "2026-11-13T18:00:00+00:00",
    "refresh_seconds": 60
}
FieldMeaning
totalPlayers online on all realms together: the sum of the realms below. null if no realm could be read.
completefalse when a realm could not be read. That realm then shows "online": null and is not in the total.
realms[].id, slug, name, typeWhich realm. type is normal, pvp, rp or hardcore.
realms[].onlinePlayers online on that realm, split into alliance and horde.
updated_atWhen the numbers were counted (UTC, ISO 8601).
refresh_secondsHow often they are recounted.

Census figures

GET/api/v1/census

The faction, race and class figures from the Player Census page, with the same filters. They are refreshed every 12 hours.

ParameterMeaning
realmall (the default), a realm slug or a realm id from the table below.
exclude_level11 leaves out level 1 characters.
active_only1 keeps only characters online now or seen in the last 30 days.
only_601 keeps only level 60 characters (this already leaves out level 1).

Filters take 1 or 0 (or true or false); leaving one out means 0.

curl "https://octowow.st/api/v1/census?realm=cthun&active_only=1"

Example answer (shortened, made-up numbers):

{
    "realm": {
        "id": 56,
        "slug": "cthun",
        "name": "C'Thun",
        "type": "hardcore"
    },
    "realms": [
        {
            "id": 56,
            "slug": "cthun",
            "name": "C'Thun",
            "type": "hardcore"
        }
    ],
    "filters": {
        "exclude_level1": false,
        "active_only": true,
        "only_60": false
    },
    "active_days": 30,
    "characters": 25000,
    "faction": {
        "alliance": 13500,
        "horde": 11500
    },
    "races": [
        {
            "name": "Human",
            "count": 4200
        },
        {
            "name": "Orc",
            "count": 3100
        }
    ],
    "classes": [
        {
            "name": "Warrior",
            "count": 3600
        },
        {
            "name": "Mage",
            "count": 3300
        }
    ],
    "race_classes": [
        {
            "race": "Human",
            "total": 4200,
            "classes": [
                {
                    "name": "Warrior",
                    "count": 900
                }
            ]
        }
    ],
    "updated_at": "2026-11-13T06:00:00+00:00",
    "refresh_seconds": 43200
}

races and classes are sorted from most to least common. race_classes lists every race, each with the classes it has.

Realms

RealmSlugIdType
C'Thuncthun56hardcore
N'Zothnzoth57normal
Y'Shaarjyshaarj58pvp

Limits and good practice

  • At most one request per minute per IP address. The online count only changes once a minute anyway.
  • Answers carry Cache-Control headers, so you may cache them for that long.
  • Check for HTTP 200 and Content-Type: application/json before you parse an answer. During an attack our DDoS protection may answer with a check page instead; skip that round and try again later.
  • Any website may call the API from the browser (CORS is open to all origins).

What the numbers mean

  • Online: characters in the world on that realm right now.
  • Active: online now, or logged out within the last 30 days.

Versions

Every address starts with /api/v1. We may add new fields to v1 answers, so ignore fields you do not know. A change that would break existing clients gets a new version.

If you show these numbers publicly, please link to octowow.st.