clay search create.
clay search next <searchId> while hasMore is true. There is no cursor — the iterator position is server-side and cannot be replayed.
Arguments
| Argument | Description |
|---|---|
searchId | Search id returned by clay search create, e.g. search_abc123. Required. |
Flags
| Flag | Description |
|---|---|
--limit <n> | Max records to return. 1-500. Defaults to 20. |
Output
| Field | Type | Description |
|---|---|---|
data | object[] | The next page of records. Each record’s fields depend on the source type. |
hasMore | boolean | Whether more records remain. Call again while true. |
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | --limit is not an integer in 1-500, or exceeds your plan’s per-request, per-search, or period limit. |
not_found | 6 | No search with that id, or it has expired. |
auth_forbidden | 3 | The API key lacks access, or the public-API beta is not enabled for the workspace. |

