# Return WordPress site backups

This function retrieves a list of available WordPress® site backups of a single site.

Note:

You must install the WordPress Manager cPanel plugin to access this API function.

Endpoint: GET /WordPressBackup/get_available_backups
Version: 11.138.0.6
Security: BasicAuth

## Query parameters:

  - `site` (string, required)
    The WordPress site's URL without the protocol prefix.
    Example: "example.com/wordpress"

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "get_available_backups"

  - `module` (string)
    The name of the module called.
    Example: "WordPressBackup"

  - `result` (object)

  - `result.data` (object)

  - `result.data.available` (array,null)
    An array of objects containing a list of the WordPress site's backups.

  - `result.data.available.date` (integer)
    The date and time the system created the backup.
    Example: 1539267197000

  - `result.data.available.file` (string)
    The backup's file name with the tar.zip extension.
    Example: "example.com__2018-10-10T10:53:31-0500.tar.gz"

  - `result.data.available.path` (string)
    The absolute path to the backup file.
    Example: "/home/example/wordpress-backups/example.com__2018-10-10T10:53:31-0500.tar.gz"

  - `result.data.available.site` (string)
    The site's URL without the protocol prefix.
    Example: "example.com"

  - `result.data.dir` (string)
    The absolute path to the backup directory.
    Example: "/home/example/wordpress-backups"

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.status` (integer)
    - 1 - Success
- 0 - Failed: Check the errors field for more details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


