---
schema_version: "1"
id: fe3b2b0729afca98c7101197330d1879c4362e40ef4dcad8033e81a66cc36b63
title: API Query Cursor Limits
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-app-limits-cheatsheet/guides/limits/salesforce-app-limits-platform-apicursors.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-app-limits-cheatsheet/guide/salesforce-app-limits-platform-apicursors.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 44d64b5d51b71f0e203562e7c20bd1de1f3984af5ff5155b01341d9bbc8c8a79
products:
  - Salesforce Developer Limits and Allocations Quick Reference
  - Platform Developer Content
---

# API Query Cursor Limits

Cursors and their related query results are available for 2 days, including results in nested queries. There isn't a limit on the number of open cursors.

When results for a large or complex query can’t be returned in a single batch, one or more server-side cursors and corresponding query locators are automatically created. A cursor marks the location of additional query results in the database, and a query locator finds the cursor. To get the additional results, use query locator within another call, such as `queryMore()` call in SOAP API or `nextRecordUrl` field in REST API.

Salesforce cursor limits were changed with the release of API version 56.0. Previously, a maximum of 10 cursors per user were accessible at the same time, which limited the query results and pagination to 10 result sets per user. The oldest cursor and result set expired after 15 minutes of inactivity. The removal of cursor limits is universal, and applies to all versions of Apex, SOAP API, REST API, Bulk API, Bulk API 2.0, and any features built using these technologies.

**See Also**  


-   [*SOAP API Developer Guide*: `query()`](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_query.htm)
-   [*REST API Developer Guide*: `Query`](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_query.htm)

