Get Document Information


This REST API allows obtaining basic information about the document. The endpoint accepts the document storage path as input payload.

Here is the list of properties that can be obtained for a document:

  • Document file extension;
  • Document size in bytes;
  • Document file format;
  • Document page count.

The table below contains the full list of properties.

|Name|Description|Comment |FileInfo.FilePath|The path of the document, located in the storage.|Required. |FileInfo.StorageName|Storage name|It could be omitted for default storage. |FileInfo.Password|The password to open file|It should be specified only for password-protected documents.

Resource URI

HTTP POST ~~/info

Swagger UI lets you call this REST API directly from the browser.

cURL Example

# First get JSON Web Token
# Please get your Client Id and Client Secret from
# Kindly place Client Id in "client_id" and Client Secret in "client_secret" argument.
curl -v "" \
-d "grant_type#client_credentials&client_id#xxxx&client_secret#xxxx" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
# cURL example to get document information
curl -v "" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer <jwt token>"
-d "{ FilePath: '/documents/password-protected.docx', Password: 'password' }"
    "fileType": {
        "fileFormat": "Microsoft Word Open XML Document",
        "extension": ".docx"
    "size": 10240,
    "pageCount": 4


Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it shows document information API calls and lets you use GroupDocs Cloud features in a native way for your preferred language.

SDK Examples