Quick start
Get a key
Create your free key in a few seconds: one key per e-mail address.
Get a free API keyCall an endpoint
Every call is a simple GET request with your key.
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY&myip"
Use it in your pages
Images work straight in HTML.
<img src="https://landing.diwigo.com/api/?key=YOUR_API_KEY&qr=https://example.com" alt="QR code">
From JavaScript
Using an AI agent or a code generator? Import the OpenAPI description, or read the llms.txt summary.
// Every endpoint can be called from the browser (CORS enabled)
const res = await fetch("https://landing.diwigo.com/api/?key=YOUR_API_KEY&email=john.doe@gmial.com");
const data = await res.json();
if (data.suggestion) console.log("Did you mean " + data.suggestion + "?");
Generate
Create images, QR codes and text on the fly.
GETqr
QR code
QR code for a URL or any text, as SVG (default) or PNG. Ready to use in an <img> tag.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&qr=https://landing.diwigo.com&size=300
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
qr | Text or URL to encode (max 2,000 characters) |
size | Width in pixels, 64–2048 (default 300) |
format | svg or png (default svg) |
ecc | Error correction L, M, Q or H (default M) |
margin | Quiet zone in modules, 0–10 (default 4) |
color / bg | Hex colours (default 000000 / ffffff) |
QR code guide: code examples and FAQ →GETplaceholder
Placeholder image
SVG placeholder image of any size, for mock-ups and layouts.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&placeholder=600x400&text=Hero%20image
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
placeholder | WIDTHxHEIGHT (max 4000x4000) or a single size for a square |
text | Label (default: the size) |
bg / color | Hex colours (default e2e4e9 / 6b7280) |
Placeholder image guide: code examples and FAQ →GETavatar
Initials avatar
SVG avatar with the initials of a name or e-mail address; the colour is stable for a given name.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&avatar=Ada%20Lovelace&size=128
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
avatar | Name or e-mail address |
size | 16–1024 px (default 128) |
shape | circle, rounded or square (default circle) |
bg / color | Hex colours (default: automatic / ffffff) |
Initials avatar guide: code examples and FAQ →GETlorem
Lorem ipsum
Placeholder text in paragraphs, sentences or words.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&lorem=3&unit=paragraphs&format=html
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
lorem | How many, 1–50 (default 3) |
unit | paragraphs, sentences or words (default paragraphs) |
format | json, text or html (default json) |
Lorem ipsum guide: code examples and FAQ →GETslug
URL slug
Turns a title into a clean URL slug (accents removed, any alphabet transliterated).
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&slug=Crème%20brûlée%20à%20l'érable
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
slug | Text |
sep | - or _ (default -) |
max | Maximum length, 10–200 (default 80) |
URL slug guide: code examples and FAQ →GETpassword
Password generator
Cryptographically secure random passwords, with their entropy.
Example request
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) |
Password generator guide: code examples and FAQ →GETquote
Quotes
Inspirational quotes in English or French, one or several at a time.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY"e=classic&lang=en&nb=1
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
quote | Category: classic, inspirobot or kaamelott |
lang | en or fr |
nb | Number of quotes, 1–10 |
Example response
{
"content": "Success is falling seven times, getting up eight.",
"author": "Japanese Proverb"
}
Quotes guide: code examples and FAQ →Check
Validate what your visitors type and what your pages show.
GETemail
E-mail validation
Checks an address for sign-up forms: syntax, mail server (MX), disposable providers, role accounts and typos (gmial.com → gmail.com). No e-mail is sent.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&email=john.doe@gmial.com
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
email | Address to check |
Example response
{
"email": "john.doe@gmial.com",
"valid_syntax": true,
"accepts_mail": true,
"disposable": false,
"suggestion": "john.doe@gmail.com",
"verdict": "risky",
"reason": "Possible typo in the domain"
}
E-mail validation guide: code examples and FAQ →GETcontrast
Colour contrast
WCAG 2 contrast ratio between a text colour and a background, with AA/AAA results.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&contrast=777777&bg=ffffff
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
contrast | Text colour (hex) |
bg | Background colour (hex, default ffffff) |
Example response
{
"ratio": 4.48,
"AA": { "normal_text": false, "large_text": true },
"AAA": { "normal_text": false, "large_text": false },
"best_text_on_background": "#000000"
}
Colour contrast guide: code examples and FAQ →GETua
User agent parser
Browser, version, operating system, device type and bot detection from a user agent. Without a value, parses the caller's own user agent.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&ua=Mozilla/5.0%20(iPhone;%20CPU%20iPhone%20OS%2018_1%20like%20Mac%20OS%20X)
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
ua | User agent string (optional) |
User agent parser guide: code examples and FAQ →GETmyip
My IP address
The public IP address the request comes from: IPv4 or IPv6, depending on how the caller connects.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&myip
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
myip | No value needed |
Example response
{
"ip": "203.0.113.7",
"timestamp": "2026-11-06T20:30:00+01:00"
}
My IP address guide: code examples and FAQ →GETipcheck
Tor exit node check
Tells whether an IPv4 address is a known Tor exit node, to help fight fraud and abuse.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&ipcheck=1.2.3.4
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
ipcheck | IPv4 address to check |
Example response
{
"ip": "1.2.3.4",
"tor_exit": false,
"message": "This IP address is not listed as a known Tor exit node."
}
Tor exit node check guide: code examples and FAQ →Analyze a website
Inspect any public website: preview, security, certificate, DNS.
GETmeta
Link preview
Title, description, image, icon and site name of a web page (Open Graph and Twitter cards) to build link previews.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&meta=https://www.wikipedia.org
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
meta | Page URL (http or https) |
Example response
{
"final_url": "https://www.wikipedia.org/",
"title": "Wikipedia, the free encyclopedia",
"description": "Wikipedia is a free online encyclopedia…",
"image": "https://upload.wikimedia.org/…/Wikipedia-logo-v2.png",
"icon": "https://www.wikipedia.org/static/apple-touch/wikipedia.png",
"lang": "en"
}
Link preview guide: code examples and FAQ →GETssl
SSL certificate
TLS certificate of a domain: issuer, validity dates, days left, covered names, protocol.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&ssl=landing.diwigo.com
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
ssl | Domain name (or URL) |
Example response
{
"host": "landing.diwigo.com",
"trusted": true,
"issuer": "Let's Encrypt",
"valid_to": "2026-12-28T22:22:49+00:00",
"days_left": 52,
"covers_host": true,
"protocol": "TLSv1.3"
}
SSL certificate guide: code examples and FAQ →GETdns
DNS lookup
DNS records of a domain: A, AAAA, CNAME, MX, NS, TXT (SPF, DMARC…), SOA and CAA.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&dns=diwigo.com&type=MX
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
dns | Domain name |
type | A, AAAA, CNAME, MX, NS, TXT, SOA, CAA or ALL (default ALL) |
DNS lookup guide: code examples and FAQ →GETdomain
Favicon
The favicon of any website, as an image file or as Base64 text to embed directly in HTML or CSS.
Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com
Parameters
| Parameter | Description |
|---|
key | Your API key (required) |
domain | Domain name, without www or protocol |
type | base64 to get Base64 text instead of the image |
Favicon guide: code examples and FAQ →Authentication & limits
Your key
Add key=YOUR_API_KEY to every request. Keep it out of public repositories; if it leaks, ask us for a new one.
Free plan
10,000 free requests per key and per calendar month. Once they are used, calls answer 429 until the 1st of the next month (Europe/Zurich). Need more? Request a higher limit.
Rate limits
100 requests per 5 minutes per address (IPv6: per /64 network). Five calls with a wrong key within 5 minutes block the caller for 15 minutes.
Quota headers
Every response tells you where you stand: X-Quota-Limit, X-Quota-Remaining and X-Quota-Reset (date of the next reset).
HTTPS & CORS
All calls go through HTTPS. Every endpoint can be called from a web page in the browser.
Privacy
Our usage statistics are anonymous: no cookies, no tracking across days. Pages checked by the analysis endpoints are fetched once and cached briefly.
Using the API means accepting the Terms of Use.
Errors
Errors come back as JSON with an HTTP status code:
{ "error": "Missing \"meta\" parameter" }
| Status | Meaning |
|---|
400 | A parameter is missing or invalid |
401 | No API key in the request |
403 | The key is unknown, revoked or inactive |
429 | Too many requests in a short time (wait a few minutes), or monthly quota used up (see resets_at in the answer) |
502 | The website you asked about could not be reached |
500 | Something went wrong on our side |