Skip to main content
Question

Getting JSON content on large files

  • April 27, 2026
  • 1 reply
  • 16 views

Michel L
Forum|alt.badge.img+13

When Getting Json Content on big files using “https://api.lucid.co/documents/{id}/contents” end point.
I am faced with an internal 500 error when using this endpoint for very big files.
I also tried using an extension using 

    for (const [pageId, page] of document.pages) {
const items = page.allItems;

Lucid is crashing also.
When using an extension I was able do make it running using several calls with grouping pages as we can iterate through pages in extension.
It could be interesting to have a {pageId} feature in the Json Header for getting the content of a page using the “https://api.lucid.co/documents/{id}/contents” end point as we can when exporting.
It could then be a turn around for big files with 500 Error.
Unless there are other solution for internal 500 Error.
Regards

Comments

Kyler G
Forum|alt.badge.img+2
  • Lucid product team
  • April 30, 2026

You are correct that the 500s are from the file being too large and timing out. We do not have any known workarounds at this time. 

We have taken your feedback and will be looking into how to potentially support paginated document contents. We have also been working on some improvements to the endpoint that may help alleviate some of the 500s in the meantime. 

Thank you for your post, 

Kyler