/carsExportExport vehicles with a cursor
Stream every active car in your sources, with full reports, through a server-side cursor. Built for keeping a local copy in sync.
- Start without
scroll_id, then request eachnext_urlunchanged untilscroll_idis null. See the sync guide. limitis 1–2,000 (default 500).scroll_timeis 1–15 minutes (default 10).- Keep
domains[]andis_leasingthe same for the whole pass. Changing them returns 422. totalcan be null if its cache entry was lost.
Query parameters
6limitinteger1–2,000 · default 500Items per batch. Default 500; maximum 2000. Positive values are required for a usable export.
scroll_timeinteger1–15 · default 10Cursor lifetime in minutes. Default 10, maximum 15.
scroll_idstringOpaque cursor from the preceding response. Prefer following next_url.
domains[]integer[]≥ 1Optional source scope. Use IDs returned by GET /domains. Omit to use all enabled domains. Repeat the bracketed parameter: domains[]=33&domains[]=34. Every ID must be enabled for this key.
is_leasingbooleanOptional leasing filter. Send true (or 1) for listings explicitly marked is_leasing=true. Send false (or 0) to exclude true, including stored false, null and missing fields. Omit for no leasing filter; empty or invalid values return 422. A car must have at least one matching active listing in the enabled/selected domain scope. Other listings can remain in the response, so cars with mixed listing types can match both values. For /cars, set this on the first request and follow next_url unchanged; false is preserved. Continuing with only scroll_id retains the filter. Changing or adding the filter mid-scroll returns 422. If cached filter state is lost or the scroll predates this parameter, an explicit value returns 422; start a new scroll.
langstringResponse locale. Option translations are also limited by the account languages. The page selects its current language automatically.
data, with next_url, scroll_id and total. The last page has scroll_id: null, empty data and message: "No more data"./carscurl -g "https://api.lotarius.com/cars?limit=5&api_key=$CARS_API_KEY" \
-H "Accept: application/json"