GET /api/v2/search/export

Exports a set of results. See Query syntax for the syntax of the query parameter.

Use this endpoint for search queries that will return more than 1000 results. The result set is ordered only by the created_at attribute.

The search only returns results of a single object type. The following object types are supported: ticket, organization, user, or group.

You must specify the type in the filter[type] parameter. Searches with type in the query string will result in an error.

Allowed For

Pagination

See Pagination.

Returns a maximum of 1000 records per page. The number of results shown in a page is determined by the page[size] parameter.

Note: You may experience a speed reduction or a timeout if you request 1000 results per page and you have many archived tickets in the results. Try reducing the number of results per page. We recommend 100 results per page.

The cursor specified by the after_cursor property in a response expires after one hour.

For more information on cursor-based pagination, see the following articles:

Limits

This API endpoint is rate-limited to 100 requests per minute per account. The limit also counts towards the global API rate limit.

Response Format

NameTypeComment
links[next]stringURL to the next page of results
meta[has_more]stringBoolean indicating if there are more results
meta[after_cursor]stringCursor object returned from the Search Service
resultsarrayMay consist of tickets, users, groups, or organizations, as specified by the filter_type parameter

The response is similar to the response of GET /api/v2/search.json?, with a few changes:

There's no count property.

Servers

Query parameters

Name Type Required Description
query String Yes

The search query. See Query basics above. For details on the query syntax, see the Zendesk Support search reference

filtertype String No

The object type returned by the export query. Can be ticket, organization, user, or group.

pagesize Integer No

The number of results shown in a page.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.