What is it?
The Diwigo password API generates cryptographically secure random passwords of the length you choose, with their entropy.
It answers with JSON and is included in the free plan: 10,000 requests per API key and per month.
Example request
GET https://landing.diwigo.com/api/?key=YOUR_API_KEY&password=20&count=3
Parameters
| Parameter | Description |
|---|---|
key | Your API key (required) |
password | Length, 8–128 (default 16) |
count | 1–20 (default 1) |
symbols | 0 to exclude symbols (default 1) |
ambiguous | 0 to exclude look-alike characters such as O/0 and l/1 (default 1) |
Code examples
cURL
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY&password=20&count=3"
JavaScript
const res = await fetch("https://landing.diwigo.com/api/?key=YOUR_API_KEY&password=20&count=3");
const data = await res.json();
console.log(data);
PHP
<?php
$response = file_get_contents("https://landing.diwigo.com/api/?key=YOUR_API_KEY&password=20&count=3");
$data = json_decode($response, true);
print_r($data);
Python
import requests
response = requests.get("https://landing.diwigo.com/api/?key=YOUR_API_KEY&password=20&count=3")
print(response.json())
Use cases
- Suggest strong passwords in sign-up forms
- Create temporary passwords and tokens
- Generate secrets for scripts
Password generator: questions and answers
What does the Password generator API do?
The Diwigo password API generates cryptographically secure random passwords of the length you choose, with their entropy.
How do I call the Password generator API?
Send a GET request to https://landing.diwigo.com/api/?key=YOUR_API_KEY&password=20&count=3 with your own API key instead of YOUR_API_KEY. It answers with JSON.
Is the Password generator API free?
Yes, it is included in the free plan: 10,000 requests per API key and per calendar month, shared by all Diwigo endpoints. Higher limits are available on request.