Sign inCreate a free account
Theme

Account and usage

Which workspace a key reaches, and how much allowance is left.

Two endpoints for the account behind the key: who you are, and how much of the allowance is left.

GET /me

Which workspace this key reaches

The key, its workspace, and what the plan allows. Takes no parameters and changes nothing, which makes it the right endpoint for a health check.

Request

curl "https://webrankpage.com/api/v1/me" \
  -H "Authorization: Bearer wrp_live_8fKp2mQx9tR4vN7c"

Response

{
    "key": {
        "name": "docs-temp",
        "prefix": "wrp_7Hzu7VRo"
    },
    "workspace": {
        "id": 172,
        "slug": "your-pages",
        "name": "Your pages"
    },
    "plan": {
        "name": "Agency",
        "site_crawl": true,
        "uptime": true
    }
}

GET /usage

What is left this month

Reports and API calls used, the limit, and what remains. Worth checking before a bulk run rather than discovering the ceiling halfway through one.

Request

curl "https://webrankpage.com/api/v1/usage" \
  -H "Authorization: Bearer wrp_live_8fKp2mQx9tR4vN7c"

Response

{
    "usage": {
        "plan": "Agency",
        "reports": {
            "used": 3,
            "limit": 6000,
            "remaining": 5997,
            "period": "this month"
        },
        "api_calls": {
            "used": 21,
            "limit": 4000,
            "remaining": 3979,
            "period": "this month"
        }
    }
}

This call counts against your API allowance like any other, so polling it every few seconds spends the thing you are measuring.

Type to search. Try a check name from your report, an endpoint, or what you are trying to do.

↑↓ to move ↵ to open Esc to close