# List Websites

## List of all the websites that are in your account.

<mark style="color:blue;">`GET`</mark> `https://getgeoflow.com/beta/api/list-websites/:accountID`

#### Path Parameters

| Name      | Type   | Description     |
| --------- | ------ | --------------- |
| accountID | String | Your Account ID |

#### Headers

| Name                                            | Type   | Description     |
| ----------------------------------------------- | ------ | --------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer \<TOKEN> |

{% tabs %}
{% tab title="200: OK Websites Found" %}

```json
{
  "websites": [
    {
      "id": "123ABC",
      "name": "Example 1",
      "url": "https://example.com",
      "lastUpdated": "2023-10-29T15:34:00Z",
      "added": "2023-01-14T12:12:00Z"
    },
    {
      "id": "123ABC",
      "name": "Example 2",
      "url": "https://example.com",
      "lastUpdated": "2023-10-20T09:45:00Z",
      "added": "2023-05-22T10:10:00Z"
    },
    {
      "id": "123ABC",
      "name": "Example 3",
      "url": "https://example.com",
      "lastUpdated": "2023-10-25T18:30:00Z",
      "added": "2023-03-15T14:15:00Z"
    }
  ]
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized Request" %}

```json
{
    "status": 401,
    "message": "Unauthorized",
    "description": "No API key was provided or you do not have access to this resource. Please provide a valid Geoflow REST API key or contact support."
}
```

{% endtab %}

{% tab title="429: Too Many Requests Exceeded Rate Limit" %}

```json
{
    "status": 429,
    "message": "Too Many Requests",
    "description": "You have sent too many requests in a given amount of time. Please wait before sending more requests."
}
```

{% endtab %}

{% tab title="404: Not Found Invalid Account ID or Endpoint" %}

```json
{
    "status": 404,
    "message": "Not Found",
    "description": "The endpoint you are trying to access does not exist or has been moved, or an invalid account ID was added as a parameter. Please refer to the Geoflow REST API documentation for further information or contact support."
}
```

{% endtab %}

{% tab title="405: Method Not Allowed Prohibited Method" %}

```json
{
    "status": 405,
    "message": "Method Not Allowed",
    "description": "The HTTP method used is not supported for this endpoint. Please refer to the Geoflow REST API documentation for further information or contact support."
}
```

{% endtab %}

{% tab title="500: Internal Server Error Unknown Error" %}

```json
{
    "status": 500,
    "message": "Internal Server Error",
    "description": "An unexpected error occurred on the server. The Geoflow API may be down or encountering another issue. Please try again later or contact support."
}
```

{% endtab %}

{% tab title="204: No Content No Websites Found" %}

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
**Developer Warning**: Never share your API key with anyone or add it to client-side code. Where possible, use environment variables in your backend to keep your API key secure.
{% endhint %}
