api-ninjas-com Password Generator API

The Password Generator API auto-generates random passwords that are incredibly hard to guess.

Operations 1

GET /v1/passwordgenerator Generate a random password #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/api-ninjas-com:api-ninjas-com-password-generator-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

api-ninjas-com-password-generator-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas Password Generator API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: Password Generator
  description: The Password Generator API auto-generates random passwords that are incredibly hard to guess.
paths:
  /v1/passwordgenerator:
    get:
      summary: Generate a random password
      description: Generates one random password of the requested length, optionally excluding numbers or special characters. Defaults to 16 characters when no length is given.
      operationId: generatePassword
      tags:
      - Password Generator
      parameters:
      - name: length
        in: query
        description: Length of password in characters. If not set, a default value of 16 is used.
        required: false
        schema:
          type: integer
          default: 16
      - name: exclude_numbers
        in: query
        description: Whether to exclude numbers from the password. Must be either true or false. If not set, a default value of false will be used.
        required: false
        schema:
          type: boolean
          default: false
      - name: exclude_special_chars
        in: query
        description: Whether to exclude special characters(!@#$%^&*()) from the password. Must be either true or false. If not set, a default value of false will be used.
        required: false
        schema:
          type: boolean
          default: false
      responses:
        '200':
          $ref: '#/components/responses/PasswordGenerated'
        '400':
          $ref: '#/components/responses/PasswordGeneratorOpenapi_BadRequest'
        '401':
          $ref: '#/components/responses/PasswordGeneratorOpenapi_Unauthorized'
        '500':
          $ref: '#/components/responses/PasswordGeneratorOpenapi_InternalServerError'
      security:
      - ApiKeyAuth: []
components:
  responses:
    PasswordGeneratorOpenapi_Unauthorized:
      description: Unauthorized. No valid API key provided.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PasswordGeneratorOpenapi_ErrorResponse'
    PasswordGeneratorOpenapi_BadRequest:
      description: Bad Request. The request was unacceptable, often due to missing a required parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PasswordGeneratorOpenapi_ErrorResponse'
    PasswordGenerated:
      description: A random password is generated successfully.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PasswordResponse'
    PasswordGeneratorOpenapi_InternalServerError:
      description: Internal Server Error. Something went wrong on the server.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PasswordGeneratorOpenapi_ErrorResponse'
  schemas:
    PasswordGeneratorOpenapi_ErrorResponse:
      type: object
      properties:
        message:
          type: string
        code:
          type: integer
          format: int32
    PasswordResponse:
      type: object
      properties:
        random_password:
          type: string
          example: nYs43u5f1oGK9*g5
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api