---
title: "Stat an object"
method: POST
path: "/operations/stat"
---

# Stat an object

`POST /operations/stat`

Returns metadata for a single file or directory, mirroring `rclone lsjson` on one entry.

## Query parameters

- `fs` string
- `remote` string
- `opt` string
- `_group` string
- `_async` boolean

## Headers

- `Prefer` 'respond-async'

## Request body

- OperationsStatRequest
  - `fs` string — Remote name or path that contains the item to inspect.
  - `remote` string — Path to the file or directory within `fs` to describe.
  - `opt` string — Optional JSON object of listing flags, matching those accepted by `operations/list`.
  - `_group` string — Assign the request to a custom stats group.
  - `_async` boolean — Run the command asynchronously. Returns a job id immediately.

## Response `200`

Metadata for a single file or directory from `operations/stat`.

- object
  - `item` object, nullable, required
    - `Path` string, required — Path relative to the remote root.
    - `Name` string, required — Base name of the entry.
    - `Size` number, required — Object size in bytes.
    - `MimeType` string, required — MIME type where available.
    - `ModTime` string, required — Modification timestamp in RFC3339 format.
    - `IsDir` boolean, required — True if the entry is a directory.
    - `Hashes` object — Hash digests keyed by algorithm when requested.
    - `ID` string — Backend-specific identifier when provided.
    - `OrigID` string — Original backend identifier when recorded.
    - `IsBucket` boolean — True for bucket/root entries on bucket-based remotes.
    - `Tier` string — Storage class or tier, if supplied by the backend.
    - `Encrypted` string — Encrypted entry name when using crypt remotes.
    - `EncryptedPath` string — Encrypted path when using crypt remotes.
    - `Metadata` object — Backend-provided metadata map.

## Other responses

- `202` — Request accepted for async processing. Poll /job/status with the returned jobid.
- `4XX` — Any error response (HTTP 4xx/5xx)
- `5XX` — Any error response (HTTP 4xx/5xx)

---

[API](https://skmtc.net/rclone/apis/rclone-rc-api.md) · [All operations](https://skmtc.net/rclone/apis/rclone-rc-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rclone/rclone-rc-api/versions/2849bf2803ce/schema)
