# Web Cloud › Web Hosting › Visibility Pro API

> Part of the OVHcloud developer hub. Index of every page and section: https://developers.eu.ovhcloud.com/llms.txt
> The Web Cloud product's sections: https://developers.eu.ovhcloud.com/reference/web-cloud/llms.txt
> Everything in one file: https://developers.eu.ovhcloud.com/llms-full.txt

> 13 operations of the OVHcloud API. Calls carry `authorization: Bearer $OVH_TOKEN`; the EU host is shown, Canada and the United States answer on api.ca.ovhcloud.com and api.us.ovhcloud.com.

Page: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/

OpenAPI v1: https://api.eu.ovhcloud.com/1.0/__schemas/developer-hub-navigation/web-cloud/web-hosting/visibility-pro.json?format=openapi3
OpenAPI v2: https://api.eu.ovhcloud.com/v2/__schemas/developer-hub-navigation/web-cloud/web-hosting/visibility-pro.json?format=openapi3

## Operations

- `GET /hosting/web/localSeo/directoriesList` — List local SEO directories
- `GET /hosting/web/localSeo/emailAvailability` — Check local SEO email availability
- `GET /hosting/web/localSeo/visibilityCheckResult` — Get visibility check results
- `GET /hosting/web/{serviceName}/localSeo/account` — List local SEO accounts
- `GET /hosting/web/{serviceName}/localSeo/account/{id}` — Get a local SEO account
- `GET /hosting/web/{serviceName}/localSeo/emailAvailability` — Check local SEO email availability
- `GET /hosting/web/{serviceName}/localSeo/location` — List local SEO locations
- `GET /hosting/web/{serviceName}/localSeo/location/{id}` — Get a local SEO location
- `GET /hosting/web/{serviceName}/localSeo/location/{id}/serviceInfos` — Get location service information
- `POST /hosting/web/localSeo/visibilityCheck` — Check location visibility
- `POST /hosting/web/{serviceName}/localSeo/account/{id}/login` — Log in to a local SEO account
- `POST /hosting/web/{serviceName}/localSeo/location/{id}/serviceInfosUpdate` — Update location renewal
- `POST /hosting/web/{serviceName}/localSeo/location/{id}/terminate` — Terminate a local SEO location

## List local SEO directories

`GET /1.0/hosting/web/localSeo/directoriesList`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#get-hosting-web-localseo-directorieslist

**Status:** Stable production version  
**Authentication:** none (public operation)

List local SEO directories. Returns the search engines, navigation systems and social networks covered by a local SEO offer in a country.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `country` | query | hosting.web.localSeo.location.CountryEnum | yes | Country of the location — one of `FR` |
| `offer` | query | hosting.web.localSeo.location.OfferEnum | yes | Local SEO offer — one of `normal` |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | hosting.web.localSeo.DirectoriesList | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `navigationSystems` | hosting.web.localSeo.Directory[] |  | Navigation systems |
| `navigationSystems[].code` | string |  | Identifier to use to get the result of a visibility check for the directory |
| `navigationSystems[].displayName` | string |  | Human-readable name of the directory |
| `searchEngines` | hosting.web.localSeo.Directory[] |  | Search engines |
| `searchEngines[].code` | string |  | Identifier to use to get the result of a visibility check for the directory |
| `searchEngines[].displayName` | string |  | Human-readable name of the directory |
| `socialNetworks` | hosting.web.localSeo.Directory[] |  | Social networks |
| `socialNetworks[].code` | string |  | Identifier to use to get the result of a visibility check for the directory |
| `socialNetworks[].displayName` | string |  | Human-readable name of the directory |

```json
{
  "navigationSystems": [
    {
      "code": "string",
      "displayName": "string"
    }
  ],
  "searchEngines": [
    {
      "code": "string",
      "displayName": "string"
    }
  ],
  "socialNetworks": [
    {
      "code": "string",
      "displayName": "string"
    }
  ]
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/localSeo/directoriesList" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/hosting/web/localSeo/directoriesList")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/hosting/web/localSeo/directoriesList");

print_r($result);
?>
```

## Check local SEO email availability

`GET /1.0/hosting/web/localSeo/emailAvailability`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#get-hosting-web-localseo-emailavailability

**Status:** Stable production version  
**Authentication:** none (public operation)

Check local SEO email availability. Returns whether an email address can be used for a local SEO order, and the hosting already using it.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `email` | query | string | yes | The email address to check |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | hosting.web.localSeo.EmailAvailability | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `availability` | hosting.web.localSeo.account.EmailAvailabilityEnum |  | Availability of the email address — one of `available`, `merge`, `nic`, `taken` |
| `serviceName` | string |  | Hosting on which the email address is used |

```json
{
  "availability": "available",
  "serviceName": "string"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/localSeo/emailAvailability" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/hosting/web/localSeo/emailAvailability")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/hosting/web/localSeo/emailAvailability");

print_r($result);
?>
```

## Get visibility check results

`GET /1.0/hosting/web/localSeo/visibilityCheckResult`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#get-hosting-web-localseo-visibilitycheckresult

**Status:** Stable production version  
**Authentication:** none (public operation)

Get visibility check results. Returns the listings found for the location in each directory, with the sync status of each field.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `directory` | query | string | yes | Get the result only for one directory |
| `id` | query | integer | yes | Id of the check |
| `token` | query | string | yes | Token received when requesting the check |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | hosting.web.localSeo.VisibilityCheckResultResponse[] | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `city` | string |  | City of the location |
| `cityStatus` | hosting.web.localSeo.FieldStatusEnum |  | City of the location (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `country` | string |  | Country of the location |
| `countryStatus` | hosting.web.localSeo.FieldStatusEnum |  | Country of the location (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `dateCreated` | string (date-time) |  | The date and time the listing was created in database |
| `directoryType` | string |  | The directory where this listing appears |
| `email` | string |  | A contact email for the location |
| `emailStatus` | hosting.web.localSeo.FieldStatusEnum |  | A contact email for the location (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `flowStatus` | hosting.web.localSeo.FlowStatusEnum |  | The status of the current listing — one of `ALL_INFORMATION_SUBMITTED`, `DONT_REMOVE`, `INACTIVE`, `MANUALLY_DEACTIVATED`, `NEEDS_REVIEW`, `NOT_SUPPORTED`, `NO_ACTION_NEEDED`, `REMOVAL_NEEDED`, `REMOVAL_REVIEW_NEEDED`, `REMOVAL_SUBMITTED`, `REMOVED`, `SUBMISSION_NEEDED`, … |
| `listingId` | string |  | The listing id in the directory database |
| `listingUrl` | string |  | The listing url on the directory website |
| `name` | string |  | The location's name used for this listing |
| `nameStatus` | hosting.web.localSeo.FieldStatusEnum |  | The location's name used for this listing (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `phone` | string |  | The location's contact phone number |
| `phoneStatus` | hosting.web.localSeo.FieldStatusEnum |  | The location's contact phone number (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `province` | string |  | Province of the location |
| `provinceStatus` | hosting.web.localSeo.FieldStatusEnum |  | Province of the location (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `street` | string |  | The location's street address |
| `streetAndNo` | string |  | A localized combination of street and streetNo |
| `streetAndNoStatus` | hosting.web.localSeo.FieldStatusEnum |  | A localized combination of street and streetNo (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `streetNo` | string |  | The location's street number |
| `streetNoStatus` | hosting.web.localSeo.FieldStatusEnum |  | The location's street number (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `streetStatus` | hosting.web.localSeo.FieldStatusEnum |  | The location's street address (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `streetType` | string |  | The street type for Spain |
| `streetTypeStatus` | hosting.web.localSeo.FieldStatusEnum |  | The street type for Spain (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `syncStatus` | hosting.web.localSeo.ListingStatusEnum |  | The sync status of the listing — one of `IN_SYNC`, `NOT_FOUND`, `NOT_IN_SYNC`, `NOT_SUPPORTED`, `NO_ONLINE_LISTING`, `TECHNICAL_PROBLEMS` |
| `website` | string |  | A valid url for the location's website |
| `websiteStatus` | hosting.web.localSeo.FieldStatusEnum |  | A valid url for the location's website (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |
| `zip` | string |  | Zipcode of the location |
| `zipStatus` | hosting.web.localSeo.FieldStatusEnum |  | Zipcode of the location (sync status) — one of `MATCH`, `MISMATCH`, `MISSING`, `NOT_APPLICABLE`, `PRESENT` |

```json
[
  {
    "city": "string",
    "cityStatus": "MATCH",
    "country": "string",
    "countryStatus": "MATCH",
    "dateCreated": "2024-01-01T12:00:00Z",
    "directoryType": "string",
    "email": "string",
    "emailStatus": "MATCH",
    "flowStatus": "ALL_INFORMATION_SUBMITTED",
    "listingId": "string",
    "listingUrl": "string",
    "name": "string",
    "nameStatus": "MATCH",
    "phone": "string",
    "phoneStatus": "MATCH",
    "province": "string",
    "provinceStatus": "MATCH",
    "street": "string",
    "streetAndNo": "string",
    "streetAndNoStatus": "MATCH",
    "streetNo": "string",
    "streetNoStatus": "MATCH",
    "streetStatus": "MATCH",
    "streetType": "string",
    "streetTypeStatus": "MATCH",
    "syncStatus": "IN_SYNC",
    "website": "string",
    "websiteStatus": "MATCH",
    "zip": "string",
    "zipStatus": "MATCH"
  }
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/localSeo/visibilityCheckResult" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/hosting/web/localSeo/visibilityCheckResult")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/hosting/web/localSeo/visibilityCheckResult");

print_r($result);
?>
```

## List local SEO accounts

`GET /1.0/hosting/web/{serviceName}/localSeo/account`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#get-hosting-web-servicename-localseo-account

**Status:** Stable production version  
**IAM actions:** `webHosting:apiovh:localSeo/account/get`

List local SEO accounts. Returns the IDs of the local SEO accounts of the hosting. Filter them by email.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `email` | query | string |  | Filter the value of email property (like) |
| `serviceName` | path | string | yes | The internal name of your hosting |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | integer[] | successful operation |

```json
[
  0
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/{serviceName}/localSeo/account" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/hosting/web/{serviceName}/localSeo/account")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/hosting/web/{serviceName}/localSeo/account");

print_r($result);
?>
```

## Get a local SEO account

`GET /1.0/hosting/web/{serviceName}/localSeo/account/{id}`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#get-hosting-web-servicename-localseo-account-id

**Status:** Stable production version  
**IAM actions:** `webHosting:apiovh:localSeo/account/get`

Get a local SEO account. Returns the email address, status, creation date and last update date of the local SEO account, and its running task.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Account id |
| `serviceName` | path | string | yes | The internal name of your hosting |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | hosting.web.localSeo.account | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `creationDate` | string (date-time) | read-only | Date of creation of the account |
| `email` | string | read-only | Email address associated to the account |
| `id` | integer | read-only | Account id |
| `lastUpdate` | string (date-time) | read-only | Date of the last account's update |
| `status` | hosting.web.localSeo.account.StatusEnum | read-only | Current status of the account — one of `created`, `creating`, `deleting`, `updating` |
| `taskId` | integer | read-only | Running task associated to the account |

```json
{
  "creationDate": "2024-01-01T12:00:00Z",
  "email": "string",
  "id": 0,
  "lastUpdate": "2024-01-01T12:00:00Z",
  "status": "created",
  "taskId": 0
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/{serviceName}/localSeo/account/{id}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/hosting/web/{serviceName}/localSeo/account/{id}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/hosting/web/{serviceName}/localSeo/account/{id}");

print_r($result);
?>
```

## Check local SEO email availability

`GET /1.0/hosting/web/{serviceName}/localSeo/emailAvailability`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#get-hosting-web-servicename-localseo-emailavailability

**Status:** Stable production version  
**IAM actions:** `webHosting:apiovh:localSeo/emailAvailability/get`

Check local SEO email availability. Returns whether an email address can be used for a local SEO order, and the hosting already using it.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `email` | query | string | yes | The email address to check |
| `serviceName` | path | string | yes | The internal name of your hosting |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | hosting.web.localSeo.EmailAvailability | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `availability` | hosting.web.localSeo.account.EmailAvailabilityEnum |  | Availability of the email address — one of `available`, `merge`, `nic`, `taken` |
| `serviceName` | string |  | Hosting on which the email address is used |

```json
{
  "availability": "available",
  "serviceName": "string"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/{serviceName}/localSeo/emailAvailability" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/hosting/web/{serviceName}/localSeo/emailAvailability")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/hosting/web/{serviceName}/localSeo/emailAvailability");

print_r($result);
?>
```

## List local SEO locations

`GET /1.0/hosting/web/{serviceName}/localSeo/location`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#get-hosting-web-servicename-localseo-location

**Status:** Stable production version  
**IAM actions:** `webHosting:apiovh:localSeo/location/get`

List local SEO locations. Returns the IDs of the local SEO locations of the hosting. Each location is a business listed in online directories.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your hosting |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | integer[] | successful operation |

```json
[
  0
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/{serviceName}/localSeo/location" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/hosting/web/{serviceName}/localSeo/location")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/hosting/web/{serviceName}/localSeo/location");

print_r($result);
?>
```

## Get a local SEO location

`GET /1.0/hosting/web/{serviceName}/localSeo/location/{id}`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#get-hosting-web-servicename-localseo-location-id

**Status:** Stable production version  
**IAM actions:** `webHosting:apiovh:localSeo/location/get`

Get a local SEO location. Returns the name, address, country, offer and status of the location, with its creation and last update dates.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Location id |
| `serviceName` | path | string | yes | The internal name of your hosting |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | hosting.web.localSeo.location | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accountId` | integer | read-only | Account id |
| `address` | string | read-only | Address of the location |
| `country` | hosting.web.localSeo.location.CountryEnum | read-only | Country of the location — one of `FR` |
| `creationDate` | string (date-time) | read-only | Date of the installation of the location |
| `id` | integer | read-only | Location id |
| `lastUpdate` | string (date-time) | read-only | Date of the last location's update |
| `name` | string | read-only | Name of the location |
| `offer` | hosting.web.localSeo.location.OfferEnum | read-only | Local SEO offer for this location — one of `normal` |
| `status` | hosting.web.localSeo.location.StatusEnum | read-only | Current status of the location — one of `created`, `creating`, `deleting`, `updating` |
| `taskId` | integer | read-only | Running task associated to the location |

```json
{
  "accountId": 0,
  "address": "string",
  "country": "FR",
  "creationDate": "2024-01-01T12:00:00Z",
  "id": 0,
  "lastUpdate": "2024-01-01T12:00:00Z",
  "name": "string",
  "offer": "normal",
  "status": "created",
  "taskId": 0
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/{serviceName}/localSeo/location/{id}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/hosting/web/{serviceName}/localSeo/location/{id}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/hosting/web/{serviceName}/localSeo/location/{id}");

print_r($result);
?>
```

## Get location service information

`GET /1.0/hosting/web/{serviceName}/localSeo/location/{id}/serviceInfos`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#get-hosting-web-servicename-localseo-location-id-serviceinfos

**Status:** Stable production version  
**IAM actions:** `webHosting:apiovh:localSeo/location/serviceInfos/get`

Get location service information. Returns the billing information of the location: creation and expiration dates, renewal settings and contacts.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Location id |
| `serviceName` | path | string | yes | The internal name of your hosting |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | services.Service | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `canDeleteAtExpiration` | boolean | read-only | Indicates that the service can be set up to be deleted at expiration |
| `contactAdmin` | string | read-only |  |
| `contactBilling` | string | read-only |  |
| `contactTech` | string | read-only |  |
| `creation` | string (date) | read-only |  |
| `domain` | string | read-only |  |
| `engagedUpTo` | string (date) | read-only |  |
| `expiration` | string (date) | read-only |  |
| `possibleRenewPeriod` | integer[] | read-only | All the possible renew period of your service in month |
| `renew` | service.RenewType |  | Way of handling the renew |
| `renew.automatic` | boolean |  | The service is automatically renewed |
| `renew.deleteAtExpiration` | boolean |  | The service will be deleted at expiration |
| `renew.forced` | boolean |  | The service forced to be renewed |
| `renew.manualPayment` | boolean |  | The service needs to be manually renewed and paid |
| `renew.period` | integer |  | period of renew in month |
| `renewalType` | service.RenewalTypeEnum | read-only | Detailed renewal type of a service — one of `automaticForcedProduct`, `automaticV2012`, `automaticV2014`, `automaticV2016`, `automaticV2024`, `manual`, `oneShot`, `option` |
| `serviceId` | integer | read-only |  |
| `status` | service.StateEnum | read-only | one of `autorenewInProgress`, `expired`, `inCreation`, `ok`, `pendingDebt`, `unPaid` |

```json
{
  "canDeleteAtExpiration": true,
  "contactAdmin": "string",
  "contactBilling": "string",
  "contactTech": "string",
  "creation": "2024-01-01",
  "domain": "string",
  "engagedUpTo": "2024-01-01",
  "expiration": "2024-01-01",
  "possibleRenewPeriod": [
    0
  ],
  "renew": {
    "automatic": true,
    "deleteAtExpiration": true,
    "forced": true,
    "manualPayment": true,
    "period": 0
  },
  "renewalType": "automaticForcedProduct",
  "serviceId": 0,
  "status": "autorenewInProgress"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/{serviceName}/localSeo/location/{id}/serviceInfos" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/hosting/web/{serviceName}/localSeo/location/{id}/serviceInfos")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/hosting/web/{serviceName}/localSeo/location/{id}/serviceInfos");

print_r($result);
?>
```

## Check location visibility

`POST /1.0/hosting/web/localSeo/visibilityCheck`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#post-hosting-web-localseo-visibilitycheck

**Status:** Stable production version  
**Authentication:** none (public operation)

Check location visibility. Starts a visibility check for a location from its name, street, zip code and country. Returns whether the location is already managed.

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `country` | hosting.web.localSeo.location.CountryEnum | yes | Country of the location — one of `FR` |
| `name` | string | yes | Name of the location |
| `street` | string | yes | Address line 1 of the location |
| `zip` | string | yes | Zipcode of the location |

```json
{
  "country": "FR",
  "name": "string",
  "street": "string",
  "zip": "string"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | hosting.web.localSeo.VisibilityCheckResponse | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `alreadyManaged` | boolean |  | Is the searched location already managed ? |
| `searchData` | hosting.web.localSeo.SearchData |  | Searched location data |
| `searchData.city` | string |  | City of the location |
| `searchData.country` | string |  | Country of the location |
| `searchData.id` | integer |  | Id of the search |
| `searchData.name` | string |  | Name of the location |
| `searchData.province` | string |  | Province of the location |
| `searchData.street` | string |  | Street of the location |
| `searchData.streetNo` | string |  | Street numero of the location |
| `searchData.token` | string |  | Token to use to get the results of the search |
| `searchData.zip` | string |  | Zipcode of the location |

```json
{
  "alreadyManaged": true,
  "searchData": {
    "city": "string",
    "country": "string",
    "id": 0,
    "name": "string",
    "province": "string",
    "street": "string",
    "streetNo": "string",
    "token": "string",
    "zip": "string"
  }
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/localSeo/visibilityCheck" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/hosting/web/localSeo/visibilityCheck",
	country = None, # Country of the location (type: hosting.web.localSeo.location.CountryEnum)
	name = None, # Name of the location (type: string)
	street = None, # Address line 1 of the location (type: string)
	zip = None, # Zipcode of the location (type: string)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/hosting/web/localSeo/visibilityCheck", array(
	country => null, // Country of the location (type: hosting.web.localSeo.location.CountryEnum)
	name => null, // Name of the location (type: string)
	street => null, // Address line 1 of the location (type: string)
	zip => null, // Zipcode of the location (type: string)
));

print_r($result);
?>
```

## Log in to a local SEO account

`POST /1.0/hosting/web/{serviceName}/localSeo/account/{id}/login`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#post-hosting-web-servicename-localseo-account-id-login

**Status:** Stable production version  
**IAM actions:** `webHosting:apiovh:localSeo/account/login`

Log in to a local SEO account. Returns a single sign-on URL, with an authentication token, to log in to the local SEO account.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Account id |
| `serviceName` | path | string | yes | The internal name of your hosting |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | string | successful operation |

```json
"string"
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/{serviceName}/localSeo/account/{id}/login" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/hosting/web/{serviceName}/localSeo/account/{id}/login")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/hosting/web/{serviceName}/localSeo/account/{id}/login");

print_r($result);
?>
```

## Update location renewal

`POST /1.0/hosting/web/{serviceName}/localSeo/location/{id}/serviceInfosUpdate`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#post-hosting-web-servicename-localseo-location-id-serviceinfosupdate

**Status:** Stable production version  
**IAM actions:** `webHosting:apiovh:localSeo/location/serviceInfosUpdate`

Update location renewal. Updates the renewal settings of the location: automatic renewal, renewal period and deletion at expiration.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Location id |
| `serviceName` | path | string | yes | The internal name of your hosting |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `renew` | service.RenewType | yes | Renew type |
| `renew.automatic` | boolean |  | The service is automatically renewed |
| `renew.deleteAtExpiration` | boolean |  | The service will be deleted at expiration |
| `renew.forced` | boolean |  | The service forced to be renewed |
| `renew.manualPayment` | boolean |  | The service needs to be manually renewed and paid |
| `renew.period` | integer |  | period of renew in month |

```json
{
  "renew": {
    "automatic": true,
    "deleteAtExpiration": true,
    "forced": true,
    "manualPayment": true,
    "period": 0
  }
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | — | successful operation |

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/{serviceName}/localSeo/location/{id}/serviceInfosUpdate" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: service.RenewType
result = client.post("/hosting/web/{serviceName}/localSeo/location/{id}/serviceInfosUpdate",
	renew = None, # Renew type (type: service.RenewType)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: service.RenewType
$result = $ovh->post("/hosting/web/{serviceName}/localSeo/location/{id}/serviceInfosUpdate", array(
	renew => null, // Renew type (type: service.RenewType)
));

print_r($result);
?>
```

## Terminate a local SEO location

`POST /1.0/hosting/web/{serviceName}/localSeo/location/{id}/terminate`

Link: https://developers.eu.ovhcloud.com/reference/web-cloud/web-hosting/visibility-pro/#post-hosting-web-servicename-localseo-location-id-terminate

**Status:** Stable production version  
**IAM actions:** `webHosting:apiovh:localSeo/location/terminate`

Terminate a local SEO location. Requests the termination of the location. A link to confirm it is sent by email to the administrator contact.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Location id |
| `serviceName` | path | string | yes | The internal name of your hosting |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | string | successful operation |

```json
"string"
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/hosting/web/{serviceName}/localSeo/location/{id}/terminate" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/hosting/web/{serviceName}/localSeo/location/{id}/terminate")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/hosting/web/{serviceName}/localSeo/location/{id}/terminate");

print_r($result);
?>
```
