Overview
This guide will walk you through the process of parsing large files using the Reducto API. We’ll cover using the asynchronous API, working with webhooks, and handling URL responses.Workflow at a glance
- Parse asynchronously to avoid timeouts on large files.
- (Optional) Configure a webhook to receive job status updates.
- Handle URL responses when results are returned as a downloadable JSON array of chunks.
How‑to: Parse large files asynchronously
To parse large files, you should use the asynchronous API by setting theasync
parameter in your request. Here’s an example of how to do this using Python:
How‑to: Receive results via webhooks
1
Configure Webhook
2
Send Parse Request with Webhook
How‑to: Handle URL responses
For very large results, the API may return a URL instead of the full result. This URL points to a JSON array of chunks. Here’s how to handle URL responses:- The URL in the JSON response points to a JSON array of chunks.
- There’s no additional metadata in the URL response, just the array of chunks.
- Each chunk contains the same structure as in the full result.