Search Zendesk tickets using the Search API and export results with cursor-based pagination

domain: zendesk.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. GET /api/v2/search?query={url-encoded query} with Zendesk search syntax (e.g., 'type:ticket status:open created>2024-01-01'); the response includes 'results', 'count', 'next_page', and 'previous_page'.
  2. For exports exceeding 1,000 results, use the Search Export API: POST /api/v2/search/export?query={query}&filter[type]=ticket to obtain a cursor-based paginated response.
  3. The export response contains 'results' and 'meta' with 'has_more' and 'after_cursor'; pass the cursor as the 'page[after]' parameter on subsequent requests.
  4. Continue paginating until 'meta.has_more' is false; do not rely on a fixed count — the cursor tracks position server-side.
  5. Rate limits apply per account; the Search API returns 429 with a Retry-After header when limits are exceeded — implement backoff.
  6. For scheduled large exports, prefer the Zendesk Incremental API (GET /api/v2/incremental/tickets?start_time={unix}) which is designed for bulk, time-window based export and is more efficient.

Known gotchas

Related routes

Search and export Zendesk tickets incrementally
zendesk.com · 4 steps · unrated
Paginate large Event Temple API collections using cursor-based pagination
api.eventtemple.com · 5 steps · unrated
Create and reply to Zendesk tickets via API
zendesk.com · 4 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans