# Password Strength API

> Password Strength is a password strength checker API that scores how strong a password is. It returns a strength label and score, a breakdown of the character types used, weak-pattern detection, theoretical entropy in bits, and recommendations to improve it. Paid plans also check the password against over 2 billion breached passwords and return how often it has been seen.

**Endpoint:** `GET https://api.apiverve.com/v1/passwordstrength`  
**Category:** Data Validation  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/passwordstrength

## Overview

Password Strength works by analyzing the password provided — its length, character-set composition, and weak patterns like sequential or repeated characters. It returns a strength label, score, theoretical charset entropy and actionable recommendations. The password is never stored or returned.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/passwordstrength?password=Password123" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `password` | string | Yes | The password to check the strength of |

## Response fields

- `strength` — string · Strength label: too weak, weak, medium or strong
- `score` — number · Numeric strength score (0-3, higher is stronger)
- `passwordInfo` — object · Character composition of the password: length and which character classes and patterns it contains
  - `passwordInfo.length` — number · Number of characters in the password
  - `passwordInfo.hasSpecialCharacters` — boolean · Whether the password contains special characters
  - `passwordInfo.hasNumbers` — boolean · Whether the password contains numbers
  - `passwordInfo.hasLowercase` — boolean · Whether the password contains lowercase letters
  - `passwordInfo.hasUppercase` — boolean · Whether the password contains uppercase letters
  - `passwordInfo.hasSpaces` — boolean · Whether the password contains spaces
  - `passwordInfo.hasSequentialChars` — boolean · Whether the password contains a run of 3+ sequential characters (e.g. abc, 123)
  - `passwordInfo.hasRepeatedChars` — boolean · Whether the password repeats the same character 3+ times in a row (e.g. aaa)
- `recommendations` — array · List of recommendations to improve password strength · (premium)
- `entropyBits` — number · Theoretical charset entropy in bits (length times log2 of the character-set size). This is the ceiling assuming random character selection; it does not account for dictionary words or common patterns, so use the strength/score for real-world guidance · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "strength": "weak",
    "score": 1,
    "passwordInfo": {
      "length": 11,
      "hasSpecialCharacters": false,
      "hasNumbers": true,
      "hasLowercase": true,
      "hasUppercase": true,
      "hasSpaces": false,
      "hasSequentialChars": true,
      "hasRepeatedChars": false
    },
    "recommendations": [
      "Use at least 12 characters",
      "Add special characters",
      "Avoid sequential characters (e.g. abc, 123)"
    ],
    "entropyBits": 65.5
  }
}
```

## Use cases

- **Registration Form Validation** — Flag low strength scores during user registration to block predictable credentials before storing new customer profiles.
- **Password Reset Verification** — When employees reset their workstation credentials, verify the input avoids repeated characters and sequential patterns before approving the change.
- **Banking Portal Onboarding** — Fintech apps evaluate customer passphrases during setup, requiring a strong rating and varied character classes before activating account access.
- **Credential Policy Enforcement** — To enforce corporate security standards, identity services check character class flags and minimum score levels across legacy user databases.

## SDKs

- **npm** — `npm install @apiverve/passwordstrength` (https://www.npmjs.com/package/@apiverve/passwordstrength)
- **PyPI** — `pip install apiverve-passwordstrength` (https://pypi.org/project/apiverve-passwordstrength/)
- **NuGet** — `dotnet add package APIVerve.API.PasswordStrength` (https://www.nuget.org/packages/APIVerve.API.PasswordStrength)
- **Source** — https://github.com/apiverve/passwordstrength-api

## More

- Full reference: https://docs.apiverve.com/ref/passwordstrength
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
