Content Export
GETOverview
Section titled “Overview”Use this endpoint to export the current contents of your Luigi’s Box catalog for batch processing, backups, migrations, or downstream synchronization.
Each response returns indexed objects together with their record fields, nested objects, and type metadata. Objects of type query are not included in the export.
The export is split into pages. Pagination information is returned in the links array. When another page is available, one of the objects in links has rel set to next. Use the corresponding href value exactly as returned to load the next page.
Query parameters
Section titled “Query parameters”Use query parameters to control page size, exported fields, object types, and pagination state.
| Parameter | Type | Required | Description |
|---|---|---|---|
size | Integer | Number of records returned in one response page. Defaults to 300. Values above 500 are reduced to 500. | |
hit_fields | String | Comma-separated list of object fields to include in attributes, for example title,web_url,price. | |
requested_types | String | Comma-separated list of object types to export, for example item,category,brand. |
Request headers
Section titled “Request headers”Response structure
Section titled “Response structure”The export response is a paginated JSON document.
Top-level Fields
Section titled “Top-level Fields”| Field | Type | Description |
|---|---|---|
total | Integer | Total number of records available in the full export, not just in the current page. |
objects | Array | Records returned in the current response page. |
links | Array | Pagination objects returned by the API. |
Object fields
Section titled “Object fields”Each entry in objects contains the following fields:
| Field | Type | Description |
|---|---|---|
url | String | Object identity of the exported record. |
attributes | Object | Exported object fields, such as title, web_url, or price. |
nested | Array | Nested objects attached to the main record, such as categories, brands, or variants. |
type | String | Type of the exported record, for example item, category, or article. |
exact | Boolean | Internal export flag returned by Luigi’s Box together with the record data. |
Code examples
Section titled “Code examples”These examples export a small page of item and category records and request only selected fields so the response stays compact.
Authentication is required for all requests. The examples show how to create the required Date and Authorization headers for an HMAC-signed request.
Error handling
Section titled “Error handling”| HTTP Status | Description |
|---|---|
| 400 Bad Request | The request is malformed, contains invalid parameters, or uses an expired or invalid cursor. Check the response body for details. |
| 403 Forbidden | The request is not allowed for your site in Luigi’s Box. |
| 429 Too Many Requests | The rate limit has been exceeded. Check the Retry-After header and see the Throttling docs. |
Usage notes
Section titled “Usage notes”- Use
hit_fieldswhenever possible to reduce payload size and speed up export jobs. - To continue the export, look for the object in
linkswhererelisnext, then request itshrefexactly as returned. - Do not depend on response ordering. If ordering matters in your downstream system, sort the exported data after retrieval.
Related endpoints
Section titled “Related endpoints”- Content Update adds or fully replaces indexed objects.
- Partial Content Update updates specific fields without replacing the full object.
- Commit Generation removes stale objects after a generation-based sync.
Was this page helpful?
Thanks.