# lol.dids.sites.getSite

> Published by [ngerakines.me](https://lexicon.garden/identity/did:plc:cbkjy5n7bk3ax2wplmtjofq2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.sites.getSite)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.sites.getSite/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.sites.getSite/examples)

## Definitions

### `lol.dids.sites.getSite`

**Type**: `query`

The public view of the site serving a domain: its owner, its active revision, and — for a tile-bound site — the tile it binds. No DNS or diagnostic detail; a space-registered domain carries its space, because attribution survives the plane.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `domain` | `string` | Yes | The hostname, lowercase IDNA A-label form. |

#### Output

**Encoding**: `application/json`

#### Errors

- **SiteNotFound**: No active site serves that domain.

## Raw Schema

```json
{
  "id": "lol.dids.sites.getSite",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "SiteNotFound",
          "description": "No active site serves that domain."
        }
      ],
      "output": {
        "schema": {
          "ref": "lol.dids.defs#siteView",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "domain"
        ],
        "properties": {
          "domain": {
            "type": "string",
            "maxLength": 253,
            "description": "The hostname, lowercase IDNA A-label form."
          }
        }
      },
      "description": "The public view of the site serving a domain: its owner, its active revision, and — for a tile-bound site — the tile it binds. No DNS or diagnostic detail; a space-registered domain carries its space, because attribution survives the plane."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
