Skip to main content
GET
/
api
/
admin
/
counts
Get Skill Counts
curl --request GET \
  --url https://api.example.com/v1/api/admin/counts \
  --header 'x-api-key: <api-key>'
{
  "master_skill_count": 8,
  "sub_skill_count": 34,
  "skill_count": 210
}
Returns the total document count for each skill collection — master skills, sub-skills, and individual skills. Useful for verifying that a data import went through or just keeping an eye on how the catalogue is growing. This is an admin-only route. You’ll need to pass your API key.

Headers

x-api-key
string
required
Your admin API key. Set this via the ADMIN_API_KEY environment variable on the server.

Response

master_skill_count
integer
How many top-level skill domains exist
sub_skill_count
integer
How many sub-skill categories exist across all master skills
skill_count
integer
How many individual skills are in the catalogue in total

Examples

curl http://localhost:5000/api/admin/counts \
  -H "x-api-key: supersecretadminkey123"
{
  "master_skill_count": 8,
  "sub_skill_count": 34,
  "skill_count": 210
}

Don’t use your real ADMIN_API_KEY value in client-side code or paste it into public chat logs. Treat it like a password.