INNER CODE UNIT · Python

LookalikeDomain

atenreiro/opensquat · opensquat/api_client.py:28

class LookalikeDomain:
    """
    One matched domain plus the per-domain metadata the server returned.

    All fields except `domain` are optional. Community and Premium Feed modes
    populate only `domain` (the NRD feed has no per-domain metadata). Premium
    API mode populates everything the server returned.
    """
    domain: str                          # punycode form, always present
    tld: Optional[str] = None            # e.g. "com"
    date: Optional[str] = None           # NRD first-seen date, e.g. "29-03-2026"
    idn: bool = False                    # True when the domain is an IDN homograph
    unicode: Optional[str] = None        # unicode rendering when idn=True


@dataclass(frozen=True)
class LookalikeResult:
    """Parsed response from POST /v1/nrd/lookalike/{keyword}."""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…