{
    "openapi": "3.1.0",
    "info": {
        "title": "Diwigo API",
        "version": "1.0.0",
        "summary": "Free web APIs for websites.",
        "description": "QR codes, link previews, e-mail validation, security header, SSL and DNS checks, avatars, placeholder images, favicons, quotes and more. Free up to 10,000 requests per API key and per calendar month; then HTTP 429 until the 1st of the next month (Europe/Zurich). Get a free key at https://landing.diwigo.com/api/signup.php",
        "termsOfService": "https://landing.diwigo.com/terms.php",
        "contact": {
            "name": "Diwigo",
            "email": "info@dukiwi.com",
            "url": "https://landing.diwigo.com/api/contact.php"
        }
    },
    "externalDocs": {
        "description": "Documentation",
        "url": "https://landing.diwigo.com/api/"
    },
    "servers": [
        {
            "url": "https://landing.diwigo.com/api/v1"
        }
    ],
    "security": [
        {
            "apiKey": []
        }
    ],
    "tags": [
        {
            "name": "Generate"
        },
        {
            "name": "Check"
        },
        {
            "name": "Analyze a website"
        }
    ],
    "paths": {
        "/qr": {
            "get": {
                "operationId": "qr",
                "summary": "Free QR Code Generator API",
                "description": "The Diwigo QR code API turns any URL or text into a QR code image (SVG or PNG) with one GET request, ready to use in an <img> tag. Guide: https://landing.diwigo.com/api/docs/qr",
                "tags": [
                    "Generate"
                ],
                "parameters": [
                    {
                        "name": "qr",
                        "in": "query",
                        "description": "Text or URL to encode (max 2,000 characters)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "https://landing.diwigo.com"
                    },
                    {
                        "name": "size",
                        "in": "query",
                        "description": "Width in pixels, 64–2048 (default 300)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "300"
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "description": "svg or png (default svg)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "ecc",
                        "in": "query",
                        "description": "Error correction L, M, Q or H (default M)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "margin",
                        "in": "query",
                        "description": "Quiet zone in modules, 0–10 (default 4)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "color",
                        "in": "query",
                        "description": "Hex colours (default 000000 / ffffff)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "bg",
                        "in": "query",
                        "description": "Hex colours (default 000000 / ffffff)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: SVG or PNG image",
                        "content": {
                            "image/svg+xml": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "image/png": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/placeholder": {
            "get": {
                "operationId": "placeholder",
                "summary": "Placeholder Image API",
                "description": "The Diwigo placeholder API returns an SVG image of any size with a label and colours of your choice, for mock-ups and page layouts. Guide: https://landing.diwigo.com/api/docs/placeholder",
                "tags": [
                    "Generate"
                ],
                "parameters": [
                    {
                        "name": "placeholder",
                        "in": "query",
                        "description": "WIDTHxHEIGHT (max 4000x4000) or a single size for a square",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "600x400"
                    },
                    {
                        "name": "text",
                        "in": "query",
                        "description": "Label (default: the size)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "Hero image"
                    },
                    {
                        "name": "bg",
                        "in": "query",
                        "description": "Hex colours (default e2e4e9 / 6b7280)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "color",
                        "in": "query",
                        "description": "Hex colours (default e2e4e9 / 6b7280)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: SVG image",
                        "content": {
                            "image/svg+xml": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/avatar": {
            "get": {
                "operationId": "avatar",
                "summary": "Initials Avatar API",
                "description": "The Diwigo avatar API draws an SVG avatar with the initials of a name or e-mail address, with a colour that stays the same for each person. Guide: https://landing.diwigo.com/api/docs/avatar",
                "tags": [
                    "Generate"
                ],
                "parameters": [
                    {
                        "name": "avatar",
                        "in": "query",
                        "description": "Name or e-mail address",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "Ada Lovelace"
                    },
                    {
                        "name": "size",
                        "in": "query",
                        "description": "16–1024 px (default 128)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "128"
                    },
                    {
                        "name": "shape",
                        "in": "query",
                        "description": "circle, rounded or square (default circle)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "bg",
                        "in": "query",
                        "description": "Hex colours (default: automatic / ffffff)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "color",
                        "in": "query",
                        "description": "Hex colours (default: automatic / ffffff)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: SVG image",
                        "content": {
                            "image/svg+xml": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/lorem": {
            "get": {
                "operationId": "lorem",
                "summary": "Lorem Ipsum Generator API",
                "description": "The Diwigo lorem ipsum API generates placeholder text in paragraphs, sentences or words, as JSON, plain text or HTML. Guide: https://landing.diwigo.com/api/docs/lorem",
                "tags": [
                    "Generate"
                ],
                "parameters": [
                    {
                        "name": "lorem",
                        "in": "query",
                        "description": "How many, 1–50 (default 3)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "3"
                    },
                    {
                        "name": "unit",
                        "in": "query",
                        "description": "paragraphs, sentences or words (default paragraphs)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "paragraphs"
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "description": "json, text or html (default json)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "html"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON, plain text or HTML",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            },
                            "text/plain": {
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "text/html": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/slug": {
            "get": {
                "operationId": "slug",
                "summary": "URL Slug Generator API",
                "description": "The Diwigo slug API turns any title into a clean URL slug: accents removed, any alphabet transliterated, words joined by dashes. Guide: https://landing.diwigo.com/api/docs/slug",
                "tags": [
                    "Generate"
                ],
                "parameters": [
                    {
                        "name": "slug",
                        "in": "query",
                        "description": "Text",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "Crème brûlée à l'érable"
                    },
                    {
                        "name": "sep",
                        "in": "query",
                        "description": "- or _ (default -)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "max",
                        "in": "query",
                        "description": "Maximum length, 10–200 (default 80)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/password": {
            "get": {
                "operationId": "password",
                "summary": "Password Generator API",
                "description": "The Diwigo password API generates cryptographically secure random passwords of the length you choose, with their entropy. Guide: https://landing.diwigo.com/api/docs/password",
                "tags": [
                    "Generate"
                ],
                "parameters": [
                    {
                        "name": "password",
                        "in": "query",
                        "description": "Length, 8–128 (default 16)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "20"
                    },
                    {
                        "name": "count",
                        "in": "query",
                        "description": "1–20 (default 1)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "3"
                    },
                    {
                        "name": "symbols",
                        "in": "query",
                        "description": "0 to exclude symbols (default 1)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "ambiguous",
                        "in": "query",
                        "description": "0 to exclude look-alike characters such as O/0 and l/1 (default 1)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/email": {
            "get": {
                "operationId": "email",
                "summary": "Free Email Validation API",
                "description": "The Diwigo e-mail validation API checks an address without sending any e-mail: syntax, mail server (MX records), disposable providers, role accounts and typos such as gmial.com. Guide: https://landing.diwigo.com/api/docs/email",
                "tags": [
                    "Check"
                ],
                "parameters": [
                    {
                        "name": "email",
                        "in": "query",
                        "description": "Address to check",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "john.doe@gmial.com"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "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"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/contrast": {
            "get": {
                "operationId": "contrast",
                "summary": "Color Contrast Checker API (WCAG)",
                "description": "The Diwigo contrast API computes the WCAG 2 contrast ratio between a text colour and a background, and tells whether it passes AA and AAA. Guide: https://landing.diwigo.com/api/docs/contrast",
                "tags": [
                    "Check"
                ],
                "parameters": [
                    {
                        "name": "contrast",
                        "in": "query",
                        "description": "Text colour (hex)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "777777"
                    },
                    {
                        "name": "bg",
                        "in": "query",
                        "description": "Background colour (hex, default ffffff)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "ffffff"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "ratio": 4.48,
                                    "AA": {
                                        "normal_text": false,
                                        "large_text": true
                                    },
                                    "AAA": {
                                        "normal_text": false,
                                        "large_text": false
                                    },
                                    "best_text_on_background": "#000000"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/ua": {
            "get": {
                "operationId": "ua",
                "summary": "User Agent Parser API",
                "description": "The Diwigo user agent API reads a browser user agent and returns the browser, version, operating system, device type and whether it is a bot. Guide: https://landing.diwigo.com/api/docs/ua",
                "tags": [
                    "Check"
                ],
                "parameters": [
                    {
                        "name": "ua",
                        "in": "query",
                        "description": "User agent string (optional)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_1 like Mac OS X)"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/meta": {
            "get": {
                "operationId": "meta",
                "summary": "Link Preview API",
                "description": "The Diwigo link preview API reads a web page and returns its title, description, preview image, icon and site name from Open Graph and Twitter cards. Guide: https://landing.diwigo.com/api/docs/meta",
                "tags": [
                    "Analyze a website"
                ],
                "parameters": [
                    {
                        "name": "meta",
                        "in": "query",
                        "description": "Page URL (http or https)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "https://www.wikipedia.org"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "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"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/headers": {
            "get": {
                "operationId": "headers",
                "summary": "Security Headers Checker API",
                "description": "The Diwigo security headers API grades the HTTP security headers of a website (HTTPS, HSTS, CSP, clickjacking, MIME sniffing, referrer, permissions) from A+ to F, with advice for each. Guide: https://landing.diwigo.com/api/docs/headers",
                "tags": [
                    "Analyze a website"
                ],
                "parameters": [
                    {
                        "name": "headers",
                        "in": "query",
                        "description": "Site URL",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "https://landing.diwigo.com"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "grade": "B",
                                    "score": 75,
                                    "checks": [
                                        {
                                            "check": "Strict-Transport-Security",
                                            "result": "pass"
                                        },
                                        {
                                            "check": "Content-Security-Policy",
                                            "result": "fail",
                                            "advice": "Add a Content-Security-Policy…"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/ssl": {
            "get": {
                "operationId": "ssl",
                "summary": "SSL Certificate Checker API",
                "description": "The Diwigo SSL API reads the TLS certificate of a domain and returns the issuer, validity dates, days left before expiry and the names it covers. Guide: https://landing.diwigo.com/api/docs/ssl",
                "tags": [
                    "Analyze a website"
                ],
                "parameters": [
                    {
                        "name": "ssl",
                        "in": "query",
                        "description": "Domain name (or URL)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "landing.diwigo.com"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "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"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/dns": {
            "get": {
                "operationId": "dns",
                "summary": "DNS Lookup API",
                "description": "The Diwigo DNS API returns the DNS records of a domain: A, AAAA, CNAME, MX, NS, TXT (SPF, DMARC), SOA and CAA. Guide: https://landing.diwigo.com/api/docs/dns",
                "tags": [
                    "Analyze a website"
                ],
                "parameters": [
                    {
                        "name": "dns",
                        "in": "query",
                        "description": "Domain name",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "diwigo.com"
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "A, AAAA, CNAME, MX, NS, TXT, SOA, CAA or ALL (default ALL)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "MX"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/quote": {
            "get": {
                "operationId": "quote",
                "summary": "Inspirational Quotes API",
                "description": "The Diwigo quotes API returns inspirational quotes in English or French, one or several at a time, with their author. Guide: https://landing.diwigo.com/api/docs/quote",
                "tags": [
                    "Generate"
                ],
                "parameters": [
                    {
                        "name": "quote",
                        "in": "query",
                        "description": "Category: classic, inspirobot or kaamelott",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "classic"
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "description": "en or fr",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "en"
                    },
                    {
                        "name": "nb",
                        "in": "query",
                        "description": "Number of quotes, 1–10",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "1"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "content": "Success is falling seven times, getting up eight.",
                                    "author": "Japanese Proverb"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/myip": {
            "get": {
                "operationId": "myip",
                "summary": "What Is My IP Address API",
                "description": "The Diwigo IP API returns the public IP address (IPv4 or IPv6) the request comes from, as JSON. Guide: https://landing.diwigo.com/api/docs/myip",
                "tags": [
                    "Check"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "ip": "203.0.113.7",
                                    "timestamp": "2026-11-06T20:30:00+01:00"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/ipcheck": {
            "get": {
                "operationId": "ipcheck",
                "summary": "Tor Exit Node Checker API",
                "description": "The Diwigo Tor check API tells whether an IPv4 address is a known Tor exit node, to help fight fraud and abuse. Guide: https://landing.diwigo.com/api/docs/ipcheck",
                "tags": [
                    "Check"
                ],
                "parameters": [
                    {
                        "name": "ipcheck",
                        "in": "query",
                        "description": "IPv4 address to check",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "1.2.3.4"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "ip": "1.2.3.4",
                                    "tor_exit": false,
                                    "message": "This IP address is not listed as a known Tor exit node."
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/domain": {
            "get": {
                "operationId": "domain",
                "summary": "Favicon API",
                "description": "The Diwigo favicon API returns the favicon of any website as an image, or as Base64 text to embed in HTML or CSS. Guide: https://landing.diwigo.com/api/docs/domain",
                "tags": [
                    "Analyze a website"
                ],
                "parameters": [
                    {
                        "name": "domain",
                        "in": "query",
                        "description": "Domain name, without www or protocol",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "google.com"
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "base64 to get Base64 text instead of the image",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success: Image file or Base64 text",
                        "content": {
                            "image/*": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "text/plain": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "apiKey": {
                "type": "apiKey",
                "in": "query",
                "name": "key",
                "description": "Free API key from https://landing.diwigo.com/api/signup.php"
            }
        },
        "responses": {
            "Error": {
                "description": "Error (400 bad parameter, 401 no key, 403 unknown or inactive key, 429 rate limit or monthly quota reached)",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "error": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}