Ducky Pass API Documentation
The Ducky Pass API allows you to generate strong, memorable passwords programmatically.
Simple and Secure endpoints, flexible output, and easy integration.
Base URL
https://api.duckypass.net
Endpoints
1. Generate Simple Password(s)
GET /simple | POST /simple
-
Query Parameters:
quantity
(optional, integer): Number of passwords to generate (default: 1, max: 100000)
-
Response:
- If
quantity
is 1 (or not provided): Returns a single password as plain text. - If
quantity
> 1: Returns a JSON object with an array of passwords.
- If
Single password (plain text):
GET https://api.duckypass.net/simple
AppleDuck42
Multiple passwords (JSON):
GET https://api.duckypass.net/simple?quantity=3
{ "passwords": [ "AppleDuck42", "ChairMoon17", "BookFox89" ] }
2. Generate Secure Password(s)
GET /secure | POST /secure
-
Query Parameters:
quantity
(optional, integer): Number of passwords to generate (default: 1, max: 100000)
-
Response:
- If
quantity
is 1 (or not provided): Returns a single password as plain text. - If
quantity
> 1: Returns a JSON object with an array of passwords.
- If
Single secure password (plain text):
GET https://api.duckypass.net/secure
Chair7Moon#Fox
Multiple secure passwords (JSON):
GET https://api.duckypass.net/secure?quantity=2
{ "passwords": [ "Chair7Moon#Fox", "Book2Duck@Cat" ] }
Error Handling
-
404 Not Found: If you request an undefined endpoint, you will receive:
404 Not Found. See API documentation at https://duckypass.net/api
-
Quantity Limit: If
quantity
exceeds 100,000, it will be capped at 100,000.
Notes
- Both GET and POST methods are supported.
- All responses are either plain text (for a single password) or JSON (for multiple).
- For best results, use HTTPS.
Example Usage
cURL:
curl "https://api.duckypass.net/simple?quantity=5" curl "https://api.duckypass.net/secure"
JavaScript (fetch):
fetch('https://api.duckypass.net/simple?quantity=2') .then(res => res.json()) .then(data => console.log(data));
For more information, visit duckypass.net