DDiwigo API
Diwigo API

Free APIs for your websites

QR codes, link previews, e-mail validation, security and SSL checks, avatars, placeholders and more: simple GET requests, JSON or images, ready in minutes.

17 endpointsJSON & imagesHTTPS + CORS10,000 free requests / month
Contents

Getting started

Quick startAuthentication & limitsErrors

Generate

QR codePlaceholder imageInitials avatarLorem ipsumURL slugPassword generatorQuotes

Check

E-mail validationColour contrastUser agent parserMy IP addressTor exit node check

Analyze a website

Link previewSecurity headersSSL certificateDNS lookupFavicon

Quick start

Get a key

Create your free key in a few seconds: one key per e-mail address.

Get a free API key

Call 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
ParameterDescription
keyYour API key (required)
qrText or URL to encode (max 2,000 characters)
sizeWidth in pixels, 64–2048 (default 300)
formatsvg or png (default svg)
eccError correction L, M, Q or H (default M)
marginQuiet zone in modules, 0–10 (default 4)
color / bgHex 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
ParameterDescription
keyYour API key (required)
placeholderWIDTHxHEIGHT (max 4000x4000) or a single size for a square
textLabel (default: the size)
bg / colorHex 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
ParameterDescription
keyYour API key (required)
avatarName or e-mail address
size16–1024 px (default 128)
shapecircle, rounded or square (default circle)
bg / colorHex 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
ParameterDescription
keyYour API key (required)
loremHow many, 1–50 (default 3)
unitparagraphs, sentences or words (default paragraphs)
formatjson, 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
ParameterDescription
keyYour API key (required)
slugText
sep- or _ (default -)
maxMaximum 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
ParameterDescription
keyYour API key (required)
passwordLength, 8–128 (default 16)
count1–20 (default 1)
symbols0 to exclude symbols (default 1)
ambiguous0 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&quote=classic&lang=en&nb=1
Parameters
ParameterDescription
keyYour API key (required)
quoteCategory: classic, inspirobot or kaamelott
langen or fr
nbNumber 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
ParameterDescription
keyYour API key (required)
emailAddress 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
ParameterDescription
keyYour API key (required)
contrastText colour (hex)
bgBackground 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
ParameterDescription
keyYour API key (required)
uaUser 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
ParameterDescription
keyYour API key (required)
myipNo 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
ParameterDescription
keyYour API key (required)
ipcheckIPv4 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
ParameterDescription
keyYour API key (required)
metaPage 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 →
GETheaders

Security headers

Grades the HTTP security headers of a site (HTTPS, HSTS, CSP, clickjacking, MIME sniffing, referrer, permissions) with advice for each.

Example request
https://landing.diwigo.com/api/?key=YOUR_API_KEY&headers=https://landing.diwigo.com
Parameters
ParameterDescription
keyYour API key (required)
headersSite URL
Example response
{
  "grade": "B",
  "score": 75,
  "checks": [
    { "check": "Strict-Transport-Security", "result": "pass" },
    { "check": "Content-Security-Policy", "result": "fail", "advice": "Add a Content-Security-Policy…" }
  ]
}
Security headers 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
ParameterDescription
keyYour API key (required)
sslDomain 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
ParameterDescription
keyYour API key (required)
dnsDomain name
typeA, 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
ParameterDescription
keyYour API key (required)
domainDomain name, without www or protocol
typebase64 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" }
StatusMeaning
400A parameter is missing or invalid
401No API key in the request
403The key is unknown, revoked or inactive
429Too many requests in a short time (wait a few minutes), or monthly quota used up (see resets_at in the answer)
502The website you asked about could not be reached
500Something went wrong on our side