The BatchData Property Search API now supports two new ways to retrieve large result sets reliably: cursor pagination and search sessions. Cursor pagination replaces skip/take for stable paging through tens of thousands of properties. Search sessions remember the properties they already returned, so a single delivery stream can extend across days, weeks, or months without re-delivering properties you've already received.
When to use each option
Use this decision table to pick the right paging mode for your integration:
Your situation | Use this |
|---|---|
Pulling fewer than ~100 properties in a single call |
|
Paging through tens of thousands of results in one session, same script run |
|
Delivering properties incrementally across multiple days, weeks, or months — and you must NOT re-deliver a property you've already received |
|
Monthly marketing lists, daily CRM deltas, multi-day backfills with resume-on-failure |
|
If you are paginating today with skip and take deeper than ~1,000 results, cursor pagination is strictly better and we recommend switching.
Why skip / take falls short for large result sets
The traditional skip/take pattern works against a moving index. As BatchData ingests property updates, the document at skip: 1000 shifts position — sometimes off the end of one page, sometimes onto the front of the next. The deeper your skip, the worse it gets:
Duplicate billing. A property that drifts across a page boundary mid-pagination gets returned (and billed) on two pages.
Missed rows. A property that shifts the other way slips between two pages entirely.
Slower large pages. The engine has to count past every skipped row, so a
skip: 50000request is meaningfully slower thanskip: 0.
Cursor pagination fixes all three problems by giving you a token that says "next time, start exactly after this row" rather than "next time, skip 50,000 rows." The position is anchored to immutable sort values, not row indexes.
Cursor Pagination
A cursor is an opaque, signed string that represents a specific position in your result set. You round-trip it verbatim to the API to retrieve the next page.
First page
Set options.useCursorPagination: true on your first request:
POST /api/v1/property/search
Authorization: Bearer <YOUR_API_TOKEN>
{
"searchCriteria": {
"address": { "zip": { "equals": "85020" } }
},
"options": {
"take": 100,
"useCursorPagination": true
}
}
The response includes a nextPageCursor (and no previousPageCursor, because there is no page before the first):
{
"status": { "code": 200, "text": "OK" },
"results": {
"properties": [ ... 100 items ... ],
"nextPageCursor": "RPmK5mZrhfAXdh...dfe7c5c9eea27049",
"meta": {
"results": {
"resultCount": 100,
"resultsFound": 14001
}
}
}
}
Subsequent pages
Pass the previous nextPageCursor value as options.pageCursor:
POST /api/v1/property/search
{
"searchCriteria": {
"address": { "zip": { "equals": "85020" } }
},
"options": {
"take": 100,
"useCursorPagination": true,
"pageCursor": "RPmK5mZrhfAXdh...dfe7c5c9eea27049"
}
}
Page 2 and onward return BOTH nextPageCursor (advance forward) and previousPageCursor (return to the prior page). Keep paging until nextPageCursor is absent — that means you've reached the end of the result set.
Rules and gotchas
Treat cursors as opaque. Do not parse, modify, or generate cursor values yourself. They are signed; any byte-level tampering returns a 400.
Cursors are bound to your
searchCriteria. Reusing a cursor against a differentsearchCriteriablock returns a 400. If you change criteria, start a new search from page 1.resultsFoundis computed once. The total result count is captured on page 1 and carried forward inside the cursor. Subsequent pages return that same value — the index may have grown or shrunk in the interim, butresultsFoundwill not move during a paging run.Random sort is not supported.
useCursorPagination: truecannot be combined withsort.sortOrder: "random"— random sort has no stable position to anchor to.Available on async too. Cursor pagination is fully supported on
POST /api/v1/property/search/async. The webhook payload carriesresults.nextPageCursorandresults.previousPageCursorin exactly the same shape as the sync response.
Cursor error messages
All cursor errors return 400 with an actionable message so you can recover:
Trigger | Message |
|---|---|
Cursor bytes tampered or unparseable |
|
Cursor reused against different |
|
Cursor minted under an older sort configuration |
|
Combined with random sort |
|
In all four cases, the recovery is to omit pageCursor and start a fresh search.
Search Sessions
A search session is a named session that remembers the properties it already returned. When you provide an options.searchSession, each request returns the best matches at that moment, in your sort order, and never a property that the session already returned, even when the requests come days or months apart. A property that starts to match later still arrives, in its place in the sort.
This is the right tool for any integration that needs to deliver fresh properties incrementally and must NOT receive the same property twice.
Common use cases
Monthly marketing lists. Pull "all properties in Phoenix matching X criteria" once a month and only receive new matches each time.
Daily delta delivery into a CRM. A nightly job that adds newly-matching properties to a downstream system without checking for duplicates client-side.
Multi-day backfills with resumption. A long-running export job that can stop after a failure and continue later without re-delivering rows.
Token ability requirement
The session-management endpoints (list and delete) require the property-search-sessions ability on your API token. You can grant this in the BatchData Token Management UI. Without this ability, calls to the session-management endpoints return 403 Forbidden. A Property Search request with a session needs only the Property Search ability.
First request — create a new session
Pick a session id that is meaningful to you — it must match ^[a-zA-Z0-9_-]{1,128}$ and is scoped to your account. Two different accounts can use the same session id without interference.
POST /api/v1/property/search
{
"searchCriteria": {
"address": { "zip": { "equals": "85020" } }
},
"options": {
"take": 100,
"useCursorPagination": true,
"searchSession": {
"id": "monthly-leads-az-85020"
}
}
}
If the first request returns properties, it creates the session. The response includes a searchSessionMeta block with isNewSession: true, deliveryNumber: 1, a running totalDelivered count, and remaining, the number of matching properties that the session has not returned yet. A first request that finds no properties does not create the session. Notice what is NOT in the response: nextPageCursor and previousPageCursor are deliberately absent. The session owns the cursor, so exposing one would invite you to bypass the session and risk duplicate delivery.
{
"status": { "code": 200, "text": "OK" },
"results": {
"properties": [ ... 100 items ... ],
"searchSessionMeta": {
"isNewSession": true,
"totalDelivered": 100,
"deliveryNumber": 1,
"replayed": false,
"remaining": 13901
},
"meta": {
"results": {
"resultCount": 100,
"resultsFound": 14001
}
}
}
}
Subsequent requests — advance the session
Send the same search criteria, sort and parcelsMode again. BatchData runs your search from the top, leaves out every property that the session already returned, and returns the best remaining matches in your sort order:
{
"status": { "code": 200, "text": "OK" },
"results": {
"properties": [ ... 100 new items, zero overlap with the first batch ... ],
"searchSessionMeta": {
"isNewSession": false,
"totalDelivered": 200,
"deliveryNumber": 2,
"replayed": false,
"remaining": 13801
},
"meta": {
"results": {
"resultCount": 100,
"resultsFound": 14001
}
}
}
}
isNewSession is false once the session exists. totalDelivered is cumulative, deliveryNumber goes up by one for each request that returns properties, and remaining goes down.
What stays the same regardless of how you call
resultsFoundstays at the value from the first request that returned properties. It does not move as the underlying index changes. To see how many matches the session has not returned yet, readsearchSessionMeta.remaining.An empty response page means "caught up — retry later." If no match is left that the session has not returned, you get 0 properties and
totalDeliveredunchanged. The session is still valid; pull again tomorrow (or next month) and any new matches flow through, including properties that started to match after earlier requests.takecan change mid-session. Pull 100 on day 1, 50 on a retry, and 25 next month — no errors, no duplicates, no lost results. The session stores the properties it returned, not a page size.No previous page. A request never returns a property that the session already returned. To get your last delivery again, use
replayDeliveryNumber(see "Get your last delivery again").A property deleted and re-added with the same id is not re-delivered. If you need a current snapshot of a specific property, call the Property Lookup endpoint — that is the canonical "I want the current data" path.
Session rules
Keep the search the same. Send the same search criteria, sort and
parcelsModeon every request of a session. A change returns 400 Bad Request. Send the sort the same way each time: a sort withoutsortOrderand the same sort with an explicitsortOrdercount as different.Two requests at once. If two requests on the same session arrive at the same moment, one can get 409 Conflict. Retry it.
A first request that finds nothing. A first request that finds no properties does not create the session. Nothing is saved: the session does not appear in the session list, does not count toward the 100-session limit, and does not use its
idempotencyKey. The next request that finds properties creates the session (isNewSession: true). The empty request saved nothing, so this request returns the best matches in your sort order, as a first request does. Earlier, a first request that found no properties created a session that appeared in the session list.
Idempotency keys (optional)
If an upstream system (queue worker, webhook retry path, CI job) might retry the same logical request, supply an idempotencyKey on the session block:
"options": {
"take": 100,
"useCursorPagination": true,
"searchSession": {
"id": "monthly-leads-az-85020",
"idempotencyKey": "batch-2026-04-req-001"
}
}
A request uses its idempotencyKey only when it returns properties. Sending a used key again on the same session returns 409 Conflict, however old the key is. A request that returns no properties does not use its key, so you can send the key again. For one-shot calls from a script, you can omit the key safely.
Get your last delivery again
To get your last delivery again, send its deliveryNumber as replayDeliveryNumber:
"options": {
"take": 100,
"useCursorPagination": true,
"searchSession": {
"id": "monthly-leads-az-85020",
"replayDeliveryNumber": 2
}
}
The response repeats that delivery: the same properties in the same order, with searchSessionMeta.replayed: true. A replay is free. A property that is no longer available is left out. The replay returns the whole delivery and ignores take, and its searchSessionMeta has no remaining. Send the same search criteria, sort and parcelsMode as the other requests of the session.
Only the last delivery can be replayed. If a newer delivery already replaced it, you get 404 Not Found. A replay cannot add skip trace if the first delivery did not include it (400 Bad Request).
Forbidden combinations
Search sessions are intentionally strict about what they pair with. Each of these returns 400 Bad Request:
Combination | Message |
|---|---|
|
|
|
|
|
|
|
|
|
|
A |
|
Different search criteria within a session |
|
A different sort within a session |
|
A different |
|
The async restriction matters: sessions need a synchronous response to confirm delivery, which async cannot provide.
Per-account limits
100 sessions per account. Creating a 101st returns 403 Forbidden with the message
Maximum of 100 search sessions per client-account-id reached. Delete unused sessions via DELETE /v2/property/search-sessions/{id}.The search is not run.3,000,000 properties per session. After a session returns 3,000,000 properties, a request returns 403 Forbidden with the message
Search session has reached its limit of 3,000,000 delivered properties. Start a new session.Idle sessions are deleted. A session that is not used for 12 months is deleted automatically.
Sessions are scoped to your account — they are invisible to other BatchData customers, even if another account happens to use the same session id.
Managing your sessions
Two endpoints let you list and clean up your account's sessions. Both require the property-search-sessions token ability.
List your sessions
GET /api/v2/property/search-sessions?skip=0&take=25
Authorization: Bearer <YOUR_API_TOKEN>
Returns your account's sessions, oldest first, then by session id. take defaults to 25. Use skip and take to page through the list. A new session can take a few seconds to appear in the list.
{
"status": { "code": 200, "text": "OK" },
"results": {
"sessions": [
{
"id": "monthly-leads-az-85020",
"totalDelivered": 5000,
"lastRequestAt": "2026-05-10T14:23:11Z",
"createdAt": "2026-04-01T09:15:00Z"
},
{
"id": "daily-crm-delta",
"totalDelivered": 12450,
"lastRequestAt": "2026-05-12T01:00:00Z",
"createdAt": "2026-03-15T08:00:00Z"
}
],
"total": 2,
"meta": { "requestId": "01KRCV36NPGHBE6FQER77S0XZR" }
}
}
The total field is your account's overall session count — use it to know whether you're approaching the 100-session cap.
Delete a session
When you're done with a session — or want to free up a slot under the 100-session cap — delete it:
DELETE /api/v2/property/search-sessions/monthly-leads-az-85020
Authorization: Bearer <YOUR_API_TOKEN>
A successful delete returns 200 with deleted: true:
{
"status": { "code": 200, "text": "OK" },
"results": {
"deleted": true,
"id": "monthly-leads-az-85020",
"meta": { "requestId": "01KRCV49383QRW53VBJX6CVDCT" }
}
}
Deleting a session frees its slot immediately and discards all its delivered-id state. If you later send the same session id again, a new session starts, and it can return properties that the deleted session already returned.
If you try to delete a session id that does not exist for your account, you get 404 Not Found. (This is also the response if a different account happens to have a session with that id — by design, so cross-account enumeration is not possible.)
Quick reference
Cursor pagination, first page (sync):
{
"searchCriteria": { ... },
"options": { "take": 100, "useCursorPagination": true }
}
Cursor pagination, resume (sync):
{
"searchCriteria": { ... },
"options": { "take": 100, "useCursorPagination": true, "pageCursor": "<from previous response>" }
}
Cursor pagination on async:
{
"searchCriteria": { ... },
"options": {
"take": 500,
"useCursorPagination": true,
"webhookUrl": "<your hook>",
"errorWebhookUrl": "<your error hook>"
}
}
Search session, first or subsequent request (sync):
{
"searchCriteria": { ... },
"options": {
"take": 100,
"useCursorPagination": true,
"searchSession": { "id": "<your label>", "idempotencyKey": "<optional>" }
}
}
List your account's sessions:
GET /api/v2/property/search-sessions?skip=0&take=25
Delete one session:
DELETE /api/v2/property/search-sessions/<your label>
Frequently asked questions
Can I switch a long-running pull from skip/take to cursor pagination mid-way through?
No. The cursor encodes a specific position in the result set, so you have to start a fresh search with useCursorPagination: true from page 1. The two pagination modes are not interoperable.
What's the difference between an idempotency key and a session id?
The session id names the long-lived delivery context (e.g. monthly-leads-az-85020). It is reused across many requests. The idempotency key is per-request — it lets a queue worker safely retry a single request without advancing the session twice.
My session has been idle for a few weeks. Is it still valid?
Yes. A session stays valid until you delete it, or until it is not used for 12 months, when it is deleted automatically. It occupies one of your 100 session slots until then.
What happens if a property is deleted from the BatchData index and later re-added?
A session will not re-deliver the property — the delivered-id state survives the deletion. If you specifically need the property's current data, call the Property Lookup endpoint instead.
Do cursor pagination and sessions cost more than skip/take?
No. Each returned property is one billable record, same as today. A replay of the last delivery of a search session is free. The features are about avoiding the duplicate-billing and missed-row problems of skip/take, not changing the per-record price.
How do I know which token I'm using has the property-search-sessions ability?
Open the Token Management UI in the BatchData app. Each token shows its granted abilities. If property-search-sessions is unchecked, tick it and save — the change takes effect immediately for new requests.
Related guides
Introduction to the Property Search API — the foundational Property Search concepts
BatchData Property Search Request Body Reference — every search criteria field documented
Retrieving Paginated Results — the original
skip/takeguide
