<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />

Account Status

Check your plan, scope and remaining tokens before you make a request

HTTP GET

Returns the account status for the API key making the request: plan, key scope and environment, remaining tokens, renewal date (when known) and rate limits. This is the same information the get_account_usage MCP tool exposes.

Query Params

https://api.countrydataapi.com/v1/me

Parameter Type Description
apikey required, token Account authentication key (also accepted as the x-api-key header)

Cost

GET /v1/me always costs 0 tokens. It never charges your balance, however often you call it.

Sample Response

{
    "success": true,
    "api_key": { "scope": "read", "env": "live", "source": "api_key" },
    "plan": { "name": "PROFESSIONAL", "trial": false },
    "tokens": { "total": 1000000, "remaining": 842310 },
    "renews_at": null,
    "limits": { "rpm": 120, "concurrency": 4, "max_api_keys": 2 },
    "tokens_used": 0,
    "remaining_tokens": 842310
}

Errors

Unlike most of /v1, GET /v1/me replies with real HTTP status codes and a stable error.code:

HTTP Code Meaning
401 MISSING_API_KEY No key was sent.
401 INVALID_API_KEY The key does not exist or is malformed.
401 API_KEY_REVOKED The key was revoked.
403 ACCOUNT_BANNED The account is banned.
{
    "success": false,
    "error": { "code": "INVALID_API_KEY", "message": "Invalid or unknown API key.", "status": 401 },
    "message": "Invalid or unknown API key."
}

Compare plans and pricing: See CountryDataAPI pricing

Designed and developed by BePand