# Return WordPress installation activity

This function reports whether the account has done meaningful work on a
WordPress installation it owns. A WordPress site goes live the moment it
installs, and WordPress sends no event when real setup work finishes. So
the system compares the live site to a fresh installation and reports the
differences as flags.

  Note:

  - The has_user_activity field is the summary flag. It is 1 when the
    authored_content or uploaded_media field is 1. The remaining
    three flags are informational and do not affect it.
  - This function is expensive. It starts WordPress once to collect every
    signal, and the system stops the attempt after 30 seconds.
  - A site whose WordPress cannot start, or that does not answer within
    the 30-second limit, reports every flag as 0. This is not an error.
  - An id parameter that does not exist, or that belongs to another
    account, returns a failure status with a message in the errors
    field. The two cases are indistinguishable.
  - The system verifies that the caller owns the installation before it
    reads anything.

Endpoint: GET /WPX/get_site_activity
Version: 11.138.0.10
Security: BasicAuth

## Query parameters:

  - `id` (integer, required)
    The WordPress Toolkit installation id, as returned in the wptk_id field of list_websites.
    Example: 17

## Response 200 fields (application/json):

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

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

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

  - `result` (object)

  - `result.data` (object)
    The activity flags for the installation. Every flag is 1 or 0.

  - `result.data.authored_content` (integer)
    Whether the site holds content that is not part of a fresh installation, or whether its seed content changed.
    Enum: 1, 0

  - `result.data.changed_appearance` (integer)
    Whether the site's appearance differs from a fresh installation. Informational.
    Enum: 1, 0

  - `result.data.extended_functionality` (integer)
    Whether the site added functionality beyond a fresh installation. Informational.
    Enum: 1, 0

  - `result.data.has_user_activity` (integer)
    Whether the account has done meaningful work on the site.
This is 1 when the authored_content or uploaded_media
field is 1.
    Enum: 1, 0

  - `result.data.personalized_identity` (integer)
    Whether the site's identity, such as its tagline, logo, or site icon, differs from a fresh installation. Informational.
    Enum: 1, 0

  - `result.data.uploaded_media` (integer)
    Whether the site's media library holds at least one item.
    Enum: 1, 0

  - `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.metadata.transformed` (integer)
    Post-processing may have transformed the data.
    Enum: 1

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

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


