# List locations for floating IPs

`GET https://console.advinservers.com/api/v1/client/floating-ips/locations`

### Overview

Lists locations where you can request a floating IP address. You do not need a server there first: the address waits unattached until you attach it to one. `prices` lists the price of each IP family, so you can show prices before requesting a quote. A `null` price means the price could not be loaded, and buying that family will be refused with a reason.

### Permissions

Requires the `network.read` (View networking) permission for the selected team. Resources outside that team return 404.

## Authorization

Send `Authorization: Bearer <token>` with the request. Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

## Response 200

The record, as a JSON object. There is no envelope.

- `items` (object[], required): The cities where the account may request an address.
  - `id` (integer, required): The id ID.
  - `name` (string, required): The name shown to customers.
- `sellable` (object, required): Whether IPv4 and IPv6 addresses are available to buy.
  - `ipv4` (boolean, required): The value of `ipv4`.
  - `ipv6` (boolean, required): The value of `ipv6`.
- `prices` (object, required): Current IPv4 and IPv6 prices for display. Request a quote before buying.
  - `ipv4` (object | null, required): The value of `ipv4`.
    - `recurring_amount` (string, required): The amount charged each billing cycle.
    - `currency` (string, required): The three-letter currency code used for monetary amounts.
    - `billing_cycle` (string, required): How often the service renews and is billed.
  - `ipv6` (object | null, required): The value of `ipv6`.
    - `recurring_amount` (string, required): The amount charged each billing cycle.
    - `currency` (string, required): The three-letter currency code used for monetary amounts.
    - `billing_cycle` (string, required): How often the service renews and is billed.

```json
{
  "items": [
    {
      "id": 3,
      "name": "Kansas City, MO"
    }
  ],
  "sellable": {
    "ipv4": true,
    "ipv6": true
  },
  "prices": {
    "ipv4": {
      "recurring_amount": "3.00",
      "currency": "USD",
      "billing_cycle": "monthly"
    },
    "ipv6": {
      "recurring_amount": "1.00",
      "currency": "USD",
      "billing_cycle": "monthly"
    }
  }
}
```

## Errors

- `401`: The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- `403`: Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- `429`: Too many requests. The `Retry-After` header says how many seconds to wait. Limits are per account, so several keys on one account share them.

## Example request

```bash
curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/floating-ips/locations' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
```
