Search Documents

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Searches for documents by name, keyword, or content, optionally scoped to a specific team, sorted by a chosen field, and filtered by a modified or creation date range.

Endpoints

OAuth Scope

ZohoWriter.documentEditor.ALLWorkDrive.files.ALLWorkDrive.organization.ALLWorkDrive.workspace.ALLZohoSearch.securesearch.READWorkDrive.team.READCopied!

Request Example

cURL
cURL
Deluge
Copied!
curl --request GET \
  --url 'https://www.zohoapis.com/writer/api/v1/documents/search?query=Invoice_2026&team_id=SOME_STRING_VALUE&offset=0&limit=50&sortby=SOME_STRING_VALUE&sort_order_by=SOME_STRING_VALUE&date_type=SOME_STRING_VALUE&start_time=SOME_INTEGER_VALUE&end_time=SOME_INTEGER_VALUE' \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'

Query Parameters

querystring(Required)

The search term to look for in document names, keywords, or content.

Maximum Length :1000010000Copied!
team_idstring(Optional)

The unique ID of the team within which to scope the search.

offsetinteger(Optional)

The starting position for the search results.

Default Value :00Copied!
limitinteger(Optional)

The maximum number of results to return.

Default Value :5050Copied!
sortbystring(Optional)

The field to sort results by. No sort is applied downstream if this parameter is omitted.

Allowed Values :
Show Values
nameCopied!
created_timeCopied!
modified_timeCopied!
Copied!Copy all as JSON Array
sort_order_bystring(Optional)

The sort direction. Has no effect unless sortby is also specified; if sortby is omitted, this parameter is silently ignored.

Allowed Values :
Show Values
ascendingCopied!
descendingCopied!
Copied!Copy all as JSON Array
Default Value :descendingdescendingCopied!
date_typestring(Optional)

Filters results by a modified/creation date range. Only applies for WorkDrive-integrated accounts. Required alongside start_time and end_time when set to custom_date.

Allowed Values :
Show Values
todayCopied!
yesterdayCopied!
last_weekCopied!
last_monthCopied!
last_yearCopied!
custom_dateCopied!
Copied!Copy all as JSON Array
start_timelong(Optional)

The start of the custom date range, in Unix epoch milliseconds. Required when date_type is custom_date.

end_timelong(Optional)

The end of the custom date range, in Unix epoch milliseconds. Required when date_type is custom_date.

Response Example

200
Copied!
  {
    "documents": [
      {
        "document_name": "Presales tips",
        "open_url": "https://writer.zoho.com/writer/open/1x3q99f2155c6737241ea929eb72ad141da7c",
        "is_favourite": false,
        "thumbnail_url": "https://writer.zoho.com/writer/thumbnail/1x3q99f2155c6737241ea929eb72ad141da7c",
        "document_id": "1x3q99f2155c6737241ea929eb72ad141da7d",
        "type": "document",
        "modified_time": "2020-06-23T10:13:11Z",
        "download_url": "https://writer.zoho.com/writer/api/v1/download/1x3q99f2155c6737241ea929eb72ad141da7c",
        "lastmodified_by": [
          {
            "email_id": "amelia@zylker.com",
            "profile_photo": "https://contacts.zoho.com/file?t=user&ID=1234&fs=thumb",
            "user_id": "456215787",
            "timezone": "Asia/Kolkata",
            "language": "en",
            "display_name": "Amelia"
          }
        ],
        "created_time": "2020-06-16T08:46:40Z",
        "last_opened_time": "2020-06-16T08:46:40Z",
        "created_by": "Amelia",
        "created_time_ms": 1592297200540,
        "preview_url": "https://writer.zoho.com/writer/zwpreview/1x3q99f2155c6737241ea929eb72ad141da7c",
        "creator_id": "53884257",
        "name": "New Document"
      }
    ],
    "total_count": 33
  }
                
Show full