> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.middesk.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.middesk.com/_mcp/server.

# Retrieve website analysis for a business

GET https://api.middesk.com/v1/businesses/{business_id}/website

Returns website analysis data including domain info, pages, and quality indicators

Reference: https://docs.middesk.com/api-reference/business-verification/websites/get-business-website

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `business_id` (string, required) — Business ID

### Query parameters

- `include` (string, optional) — Include additional data. Use "indicator_details" to include source examples and explanations for each indicator

## Response

### 200

website analysis found

- `object` (enum, required)
  - Allowed values: `website`
- `id` (string, required)
- `url` (string, required, nullable) — The URL that was passed or found for the Business
- `created_at` (datetime, required)
- `updated_at` (datetime, required)
- `status` (enum, required)
  - Allowed values: `online`, `offline`, `unknown`
- `parked` (boolean, required, nullable) — Whether the domain is parked
- `submitted` (boolean, required) — Whether the website was submitted by user
- `business_id` (string, required)
- `business_name_match` (boolean, required) — Whether website content matches business name
- `phone_numbers` (list of WebsitePhoneNumber, required) — Phone numbers found on website
- `addresses` (list of WebsiteAddressesItem, required) — Addresses found on website
- `http_status_code` (integer, optional, nullable) — HTTP response status code
- `title` (string, optional, nullable) — Website page title
- `description` (string, optional, nullable) — Website meta description
- `domain` (WebsiteDomain, optional, nullable) — Domain registration and redirect information
- `pages` (list of WebsitePagesItem, optional) — Website pages with screenshots
- `error` (string, optional, nullable) — Error message if website analysis failed
- `category` (string, optional, nullable) — Website category classification
- `platform` (string, optional, nullable) — Website platform (e.g., instagram.com, facebook.com)
- `posts_summary` (string, optional, nullable) — Summary of posts found on the website or linked social media profiles
- `reviews_summary` (string, optional, nullable) — Summary of reviews found on the website or linked third-party profiles
- `names` (list of Name, optional) — Names found on website
- `people` (list of map from string to any, optional, nullable) — People found on website
- `email_addresses` (list of WebsiteEmailAddressesItem, optional, nullable) — Email addresses found on website
- `rating` (WebsiteRating, optional, nullable)

## Errors

### 404 Get Business Website Request Not Found Error

website not found

- `errors` (list of ErrorResponseErrorsItem, required)

## Types

### WebsitePhoneNumber

- `object` (enum, optional)
  - Allowed values: `phone_number`
- `id` (string, optional)
- `number` (string, optional)
- `contact_type` (string, optional, nullable)
- `recommended` (boolean, optional, nullable)
- `submitted` (boolean, optional)
- `sources` (list of Source, optional, nullable)

### WebsiteAddressesItem

- `object` (string, optional)
- `id` (string, optional)
- `address_line1` (string, optional, nullable)
- `address_line2` (string, optional, nullable)
- `city` (string, optional, nullable)
- `state` (string, optional, nullable)
- `postal_code` (string, optional, nullable)
- `full_address` (string, optional)
- `submitted` (boolean, optional)
- `sources` (list of Source, optional)

### WebsiteDomain

- `domain` (string, optional)
- `domain_id` (string, optional, nullable)
- `creation_date` (datetime, optional)
- `expiration_date` (datetime, optional)
- `registrar` (WebsiteDomainRegistrar, optional)
- `redirected` (boolean, optional, nullable) — Whether the domain redirects to a different URL
- `url_shortener` (boolean, optional, nullable) — Whether the domain uses a URL shortener service
- `resolved_url` (string, optional, nullable) — The final URL after redirect resolution (present when redirected is true)

### WebsitePagesItem

- `url` (string, optional)
- `category` (string, optional)
- `screenshot_url` (string, optional)

### Name

- `object` (string, required)
- `id` (string, required)
- `name` (string, required)
- `submitted` (boolean, required)
- `business_id` (string, required)
- `sources` (list of Source, required)
- `type` (enum, optional, nullable)
  - Allowed values: `legal`, `dba`

### WebsiteEmailAddressesItem

- `object` (enum, optional)
  - Allowed values: `email_address`
- `email` (string, optional)
- `id` (string, optional)
- `submitted` (boolean, optional)
- `sources` (list of Source, optional)

### WebsiteRating

- `quality_rating` (enum, required)
  - Allowed values: `low`, `moderate`, `high`, `not_available`
- `indicators` (list of WebsiteIndicator, optional)

### ErrorResponseErrorsItem

- `message` (string, required)
- `parameter` (string, optional) — Request parameter associated with the error, when applicable

### Source

- `id` (string, required)
- `type` (string, required) — Origin of the resource. `risk_analysis` indicates the resource was discovered by a Risk order; for such sources, `id` is the originating risk_assessment ID.
- `metadata` (map from string to any, required)

### WebsiteDomainRegistrar

- `organization` (string, optional, nullable)
- `name` (string, optional)
- `url` (string, optional, nullable)

### WebsiteIndicator

- `type` (enum, required)
  - Allowed values: `domain_age`, `top_level_domain`, `content_diversity`, `contact_info`, `compliance_info`, `page_count`, `broken_links`, `domain_consistency`, `update_frequency`, `filler_text`, `image_quality`, `last_updated`, `third_party_profile_links`, `us_business_presence`, `spelling_and_grammar`, `https`, `domain_ownership`
- `name` (string, required)
- `rating` (enum, required)
  - Allowed values: `positive`, `negative`, `neutral`
- `value` (string, required)
- `description` (string, required)

## Examples

### Website analysis

**Response**

```json
{
  "object": "website",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "url": "https://www.example.com",
  "created_at": "2026-01-08T20:04:48Z",
  "updated_at": "2026-01-08T20:05:53Z",
  "status": "online",
  "parked": false,
  "submitted": true,
  "business_id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
  "business_name_match": true,
  "phone_numbers": [
    {
      "object": "phone_number",
      "id": "e5f6a7b8-c9d0-1234-efab-567890123456",
      "number": "number",
      "contact_type": "contact_type",
      "recommended": true,
      "submitted": false,
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ]
    }
  ],
  "addresses": [
    {
      "object": "address",
      "id": "d0e1f2a3-b4c5-6789-defa-012345678901",
      "address_line1": "123 Main St Ste 100",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94105",
      "full_address": "123 Main St Ste 100, San Francisco, CA 94105",
      "submitted": true,
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ]
    }
  ],
  "http_status_code": 200,
  "title": "Example Corp | Business Solutions Platform",
  "description": "Example Corp provides innovative business solutions for companies of all sizes. The platform offers tools for verification, compliance, and business management.",
  "domain": {
    "domain": "EXAMPLE.COM",
    "domain_id": "1234567890_DOMAIN_COM-VRSN",
    "creation_date": "2015-03-15T10:30:00Z",
    "expiration_date": "2030-03-15T10:30:00Z",
    "registrar": {
      "name": "Example Registrar LLC"
    },
    "redirected": true,
    "url_shortener": true,
    "resolved_url": "resolved_url"
  },
  "pages": [
    {
      "url": "https://www.example.com/",
      "category": "home",
      "screenshot_url": "https://static.example.com/screenshots/home.jpg"
    },
    {
      "url": "https://www.example.com/contact",
      "category": "contact",
      "screenshot_url": "https://static.example.com/screenshots/contact.jpg"
    },
    {
      "url": "https://www.example.com/about",
      "category": "about",
      "screenshot_url": "https://static.example.com/screenshots/about.jpg"
    }
  ],
  "category": "Standard",
  "posts_summary": "Example Corp is actively engaging on social media, sharing insights on business solutions and industry trends.",
  "reviews_summary": "The business has received positive reviews highlighting excellent customer service and reliable products.",
  "names": [
    {
      "object": "name",
      "id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
      "name": "Example Corp Inc",
      "submitted": true,
      "business_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ],
      "type": "legal"
    },
    {
      "object": "name",
      "id": "d4e5f6a7-b8c9-0123-defa-456789012345",
      "name": "Example Corp",
      "submitted": false,
      "business_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ]
    }
  ],
  "people": [
    {
      "first_name": "John",
      "id": "a7b8c9d0-e1f2-3456-abcd-789012345678",
      "last_name": "Smith",
      "middle_name": {
        "key": "value"
      },
      "name": "John Smith",
      "object": "person",
      "submitted": false,
      "titles": [
        {
          "created_at": "2026-01-08T20:05:48.379Z",
          "id": "f6a7b8c9-d0e1-2345-fabc-678901234567",
          "person_id": "a7b8c9d0-e1f2-3456-abcd-789012345678",
          "title": "CEO",
          "updated_at": "2026-01-08T20:05:48.379Z"
        }
      ]
    },
    {
      "first_name": "Jane",
      "id": "c9d0e1f2-a3b4-5678-cdef-901234567890",
      "last_name": "Doe",
      "middle_name": {
        "key": "value"
      },
      "name": "Jane Doe",
      "object": "person",
      "submitted": false,
      "titles": [
        {
          "created_at": "2026-01-08T20:05:48.417Z",
          "id": "b8c9d0e1-f2a3-4567-bcde-890123456789",
          "person_id": "c9d0e1f2-a3b4-5678-cdef-901234567890",
          "title": "CTO",
          "updated_at": "2026-01-08T20:05:48.417Z"
        }
      ]
    }
  ],
  "email_addresses": [
    {
      "object": "email_address",
      "email": "support@example.com",
      "id": "e1f2a3b4-c5d6-7890-efab-123456789012",
      "submitted": false,
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ]
    }
  ],
  "rating": {
    "quality_rating": "high",
    "indicators": [
      {
        "type": "https",
        "name": "HTTPS",
        "rating": "positive",
        "value": "enabled",
        "description": "Enabled"
      },
      {
        "type": "us_business_presence",
        "name": "US business presence",
        "rating": "neutral",
        "value": "strong",
        "description": "Strong"
      },
      {
        "type": "third_party_profile_links",
        "name": "Third party profile links",
        "rating": "positive",
        "value": "good",
        "description": "Good"
      },
      {
        "type": "domain_age",
        "name": "Domain age",
        "rating": "positive",
        "value": "3_to_10_years_old",
        "description": "3 to 10 years old"
      },
      {
        "type": "spelling_and_grammar",
        "name": "Spelling and grammar",
        "rating": "positive",
        "value": "good",
        "description": "Good"
      },
      {
        "type": "contact_info",
        "name": "Contact info",
        "rating": "positive",
        "value": "found",
        "description": "Found"
      },
      {
        "type": "domain_ownership",
        "name": "Domain ownership",
        "rating": "positive",
        "value": "high_confidence",
        "description": "High confidence"
      }
    ]
  }
}
```

**SDK Code**

```python Website analysis
import requests

url = "https://api.middesk.com/v1/businesses/business_id/website"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Website analysis
const url = 'https://api.middesk.com/v1/businesses/business_id/website';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Website analysis
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.middesk.com/v1/businesses/business_id/website"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Website analysis
require 'uri'
require 'net/http'

url = URI("https://api.middesk.com/v1/businesses/business_id/website")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Website analysis
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.middesk.com/v1/businesses/business_id/website")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Website analysis
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.middesk.com/v1/businesses/business_id/website', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Website analysis
using RestSharp;

var client = new RestClient("https://api.middesk.com/v1/businesses/business_id/website");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Website analysis
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.middesk.com/v1/businesses/business_id/website")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Website analysis with indicator details

**Response**

```json
{
  "object": "website",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "url": "https://www.example.com",
  "created_at": "2026-01-08T20:04:48Z",
  "updated_at": "2026-01-08T20:05:53Z",
  "status": "online",
  "parked": false,
  "submitted": true,
  "business_id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
  "business_name_match": true,
  "phone_numbers": [
    {
      "object": "phone_number",
      "id": "e5f6a7b8-c9d0-1234-efab-567890123456",
      "number": "number",
      "contact_type": "contact_type",
      "recommended": true,
      "submitted": false,
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ]
    }
  ],
  "addresses": [
    {
      "object": "address",
      "id": "d0e1f2a3-b4c5-6789-defa-012345678901",
      "address_line1": "123 Main St Ste 100",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94105",
      "full_address": "123 Main St Ste 100, San Francisco, CA 94105",
      "submitted": true,
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ]
    }
  ],
  "http_status_code": 200,
  "title": "Example Corp | Business Solutions Platform",
  "description": "Example Corp provides innovative business solutions for companies of all sizes. The platform offers tools for verification, compliance, and business management.",
  "domain": {
    "domain": "EXAMPLE.COM",
    "domain_id": "1234567890_DOMAIN_COM-VRSN",
    "creation_date": "2015-03-15T10:30:00Z",
    "expiration_date": "2030-03-15T10:30:00Z",
    "registrar": {
      "name": "Example Registrar LLC"
    },
    "redirected": true,
    "url_shortener": true,
    "resolved_url": "resolved_url"
  },
  "pages": [
    {
      "url": "https://www.example.com/",
      "category": "home",
      "screenshot_url": "https://static.example.com/screenshots/home.jpg"
    },
    {
      "url": "https://www.example.com/contact",
      "category": "contact",
      "screenshot_url": "https://static.example.com/screenshots/contact.jpg"
    },
    {
      "url": "https://www.example.com/about",
      "category": "about",
      "screenshot_url": "https://static.example.com/screenshots/about.jpg"
    }
  ],
  "category": "Standard",
  "posts_summary": "Example Corp is actively engaging on social media, sharing insights on business solutions and industry trends.",
  "reviews_summary": "The business has received positive reviews highlighting excellent customer service and reliable products.",
  "names": [
    {
      "object": "name",
      "id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
      "name": "Example Corp Inc",
      "submitted": true,
      "business_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ],
      "type": "legal"
    },
    {
      "object": "name",
      "id": "d4e5f6a7-b8c9-0123-defa-456789012345",
      "name": "Example Corp",
      "submitted": false,
      "business_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ]
    }
  ],
  "people": [
    {
      "first_name": "John",
      "id": "a7b8c9d0-e1f2-3456-abcd-789012345678",
      "last_name": "Smith",
      "middle_name": {
        "key": "value"
      },
      "name": "John Smith",
      "object": "person",
      "submitted": false,
      "titles": [
        {
          "created_at": "2026-01-08T20:05:48.379Z",
          "id": "f6a7b8c9-d0e1-2345-fabc-678901234567",
          "person_id": "a7b8c9d0-e1f2-3456-abcd-789012345678",
          "title": "CEO",
          "updated_at": "2026-01-08T20:05:48.379Z"
        }
      ]
    },
    {
      "first_name": "Jane",
      "id": "c9d0e1f2-a3b4-5678-cdef-901234567890",
      "last_name": "Doe",
      "middle_name": {
        "key": "value"
      },
      "name": "Jane Doe",
      "object": "person",
      "submitted": false,
      "titles": [
        {
          "created_at": "2026-01-08T20:05:48.417Z",
          "id": "b8c9d0e1-f2a3-4567-bcde-890123456789",
          "person_id": "c9d0e1f2-a3b4-5678-cdef-901234567890",
          "title": "CTO",
          "updated_at": "2026-01-08T20:05:48.417Z"
        }
      ]
    }
  ],
  "email_addresses": [
    {
      "object": "email_address",
      "email": "support@example.com",
      "id": "e1f2a3b4-c5d6-7890-efab-123456789012",
      "submitted": false,
      "sources": [
        {
          "id": "id",
          "type": "type",
          "metadata": {
            "key": "value"
          }
        }
      ]
    }
  ],
  "rating": {
    "quality_rating": "high",
    "indicators": [
      {
        "type": "https",
        "name": "HTTPS",
        "rating": "positive",
        "value": "enabled",
        "description": "Enabled"
      },
      {
        "type": "us_business_presence",
        "name": "US business presence",
        "rating": "neutral",
        "value": "strong",
        "description": "Strong"
      },
      {
        "type": "third_party_profile_links",
        "name": "Third party profile links",
        "rating": "positive",
        "value": "good",
        "description": "Good"
      },
      {
        "type": "domain_age",
        "name": "Domain age",
        "rating": "positive",
        "value": "3_to_10_years_old",
        "description": "3 to 10 years old"
      },
      {
        "type": "top_level_domain",
        "name": "Top level domain",
        "rating": "neutral",
        "value": "found",
        "description": "Found"
      },
      {
        "type": "spelling_and_grammar",
        "name": "Spelling and grammar",
        "rating": "positive",
        "value": "good",
        "description": "Good"
      },
      {
        "type": "update_frequency",
        "name": "Update frequency",
        "rating": "positive",
        "value": "frequent",
        "description": "Frequent"
      },
      {
        "type": "filler_text",
        "name": "Filler text",
        "rating": "positive",
        "value": "minimal",
        "description": "Minimal"
      },
      {
        "type": "contact_info",
        "name": "Contact info",
        "rating": "positive",
        "value": "found",
        "description": "Found"
      },
      {
        "type": "broken_links",
        "name": "Broken links",
        "rating": "positive",
        "value": "none_broken",
        "description": "None broken"
      },
      {
        "type": "image_quality",
        "name": "Image quality",
        "rating": "positive",
        "value": "good",
        "description": "Good"
      },
      {
        "type": "content_diversity",
        "name": "Content diversity",
        "rating": "positive",
        "value": "high",
        "description": "High"
      },
      {
        "type": "compliance_info",
        "name": "Compliance info",
        "rating": "positive",
        "value": "found",
        "description": "Found"
      },
      {
        "type": "page_count",
        "name": "Page count",
        "rating": "positive",
        "value": "high",
        "description": "High"
      },
      {
        "type": "domain_consistency",
        "name": "Domain consistency",
        "rating": "positive",
        "value": "strong",
        "description": "Strong"
      },
      {
        "type": "domain_ownership",
        "name": "Domain ownership",
        "rating": "positive",
        "value": "high_confidence",
        "description": "High confidence"
      },
      {
        "type": "last_updated",
        "name": "Last updated",
        "rating": "positive",
        "value": "less_than_3_months_ago",
        "description": "Less than 3 months ago"
      }
    ]
  }
}
```

**SDK Code**

```python Website analysis with indicator details
import requests

url = "https://api.middesk.com/v1/businesses/business_id/website"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Website analysis with indicator details
const url = 'https://api.middesk.com/v1/businesses/business_id/website';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Website analysis with indicator details
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.middesk.com/v1/businesses/business_id/website"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Website analysis with indicator details
require 'uri'
require 'net/http'

url = URI("https://api.middesk.com/v1/businesses/business_id/website")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Website analysis with indicator details
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.middesk.com/v1/businesses/business_id/website")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Website analysis with indicator details
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.middesk.com/v1/businesses/business_id/website', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Website analysis with indicator details
using RestSharp;

var client = new RestClient("https://api.middesk.com/v1/businesses/business_id/website");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Website analysis with indicator details
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.middesk.com/v1/businesses/business_id/website")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```