Developers
Pagination
Lists return one page at a time, with a cursor that points at the next page. Cursors stay correct while homes are added or updated, unlike page numbers.
Parameters and response
| Name | Where | Description |
|---|---|---|
limit | query | Items per page, from 1 to 100. Default 25. |
cursor | query | The next_cursor of the previous page. Omit it for the first page. |
data | response | The items of this page. |
next_cursor | response | An opaque string for the next page, or null on the last page. |
- Treat cursors as opaque: do not build or change them.
- Keep the same filters (
status,updated_since, ...) on every page of one walk; a cursor belongs to the query that produced it. - Homes are sorted by
updated_at, newest first.
Walking all pages
async function* allProperties(params = {}) {
let cursor = null;
do {
const query = new URLSearchParams({ ...params, limit: "100" });
if (cursor) query.set("cursor", cursor);
const res = await fetch(`https://api.instaenv.com/api/public/v1/properties?${query}`, {
headers: { Authorization: `Bearer ${process.env.INSTAENV_API_KEY}` },
});
if (!res.ok) throw new Error(`Instaenv API: ${res.status}`);
const page = await res.json();
yield* page.data;
cursor = page.next_cursor;
} while (cursor);
}
for await (const property of allProperties({ updated_since: "2026-11-01T00:00:00Z" })) {
console.log(property.id, property.updated_at);
}Incremental sync
To keep a copy in step, store the time you started the last sync and ask only for what changed since then with updated_since. Webhooks tell you sooner; a periodic updated_since sync catches anything a webhook endpoint missed while it was down.