# API Reference

## Endpoint

`GET`

```bash
GET https://api.lunarcyber.com/domain-exposure

```

## Query Parameters

| Parameter | Required | Description |
| --- | --- | --- |
| domain | Yes | Domain to analyze. Example: autobarn.net. |

## Example

GET [https://api.lunarcyber.com/domain-exposure?domain=autobarn.net](https://api.lunarcyber.com/domain-exposure?domain=autobarn.net)

## JavaScript

```javascript
const domain = "autobarn.net"; 
const response = await fetch( `https://api.lunarcyber.com/domain-exposure?domain=${encodeURIComponent(domain)}` ); 
const data = await response.json(); 
console.log(data.report.summary);
```

## Python

```python
import requests
response = requests.get( "https://api.lunarcyber.com/domain-exposure", params={"domain": "autobarn.net"} ) 
data = response.json() 
print(data["report"]["summary"])
```

The structure here follows the short introduction → quickstart → field documentation → API reference approach used by the [Webz.io](http://Webz.io) Data Breaches documentation.
