Render satellite images for a list of parcels
const url = 'https://app-api.landinsights.co/api/public/v1/parcel-images/batches/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"property_ids":[7234891,7234892,7234893],"label":"Costilla County shortlist"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app-api.landinsights.co/api/public/v1/parcel-images/batches/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "property_ids": [ 7234891, 7234892, 7234893 ], "label": "Costilla County shortlist" }'For more than a few parcels, use this instead of calling get_parcel_image once for each.
Queues a satellite image for each property in property_ids (up to 1,000 per batch) and returns right away with a batch_id. The images render in the background and are the same 1024×768 images get_parcel_image returns. A full batch usually finishes within a few minutes.
Check progress with get_parcel_image_batch. Download links are in list_parcel_images (pass the batch_id), and images can be downloaded as they finish, before the whole batch is done.
A batch counts as one request against the rate limit, however many properties it holds. An account can have up to 10,000 images waiting to render at once.
Returns 400 (0 tokens) when the batch would use more tokens than are left before your usage limit for the billing period.
Cost: 30 tokens per image, billed as each image renders. Images that fail are not billed. The response to this call reports 0 tokens used.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Land Insights property IDs to render, up to 1,000 per batch. Repeated IDs are rendered once.
Optional name for the batch, shown when you list your batches.
Examples
Render three parcels
{ "property_ids": [ 7234891, 7234892, 7234893 ], "label": "Costilla County shortlist"}Responses
Section titled “ Responses ”A batch of parcel images and how far along it is.
object
Identifier of the batch.
The name given when the batch was created, if any.
queued until rendering starts, processing while images are rendering, completed once every image has either rendered or failed.
queued- Queuedprocessing- Processingcompleted- Completed
Number of images in the batch.
Images not rendered yet.
Images rendered and ready to download.
Images that could not be rendered. These are not billed.
Tokens billed for this batch so far.
When the batch was submitted (ISO-8601).
When the batch finished (ISO-8601). Null until then.
Example
{ "status": "queued"}Validation error.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Missing or invalid credentials.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}A Pro subscription or higher API tier is required.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Authenticated but not permitted.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Resource not found.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Rate limit exceeded.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}Internal error.
object
object
Stable machine-readable error code. One of: unauthorized, forbidden, subscription_required, tier_upgrade_required, usage_limit_exceeded, usage_backstop_reached, payment_required, payment_method_required, validation_error, unprocessable, not_found, method_not_allowed, rate_limited, internal_error, service_unavailable.
Human-readable description of the error.
Echoes the request’s X-Request-Id (or a server-issued id). Quote it in support requests.
Present on validation errors only: maps each rejected field to its list of messages.
object
Example generated
{ "error": { "code": "example", "message": "example", "request_id": "example", "details": {} }}