> ## Documentation Index
> Fetch the complete documentation index at: https://fossabot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# $(x)

Returns the latest post as well as the time that has passed since it was posted from a specified [**X**](https://x.com) account.

#### Parameters

This variable takes **one** *required* parameter that is an **X username** of who to fetch the latest post of.

#### Example Output

* `$(x fossabot)`

  ```
  A new post - https://x.com/fossabot/status/456 | 4 minutes and 53 seconds ago
  ```

#### Error Output

* In case the account cannot be found, returns the following:

  ```
  [Error: User not found.]
  ```

* In case the account does not have a post, returns the following:

  ```
  [Error: Could not find a post for this user on X.]
  ```

* In case there are troubles communicating with the X API, returns the following:

  ```
  [Error: X API error.]
  ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.