Overview
To process an individual file, you can choose from several available methods, including a direct POST
request, Python code, and JavaScript/TypeScript code.
Whether you’re using the Free Unstructured API, the Unstructured Serverless API, the Unstructured API on Azure/AWS, or your local deployment of the Unstructured API, the functionality is the same.
Choose your preferred method:
- Use the Unstructured Python SDK
- Use the Unstructured JavaScript/TypeScript SDK
- Use the Unstructured open source Python library
- Make a direct POST request
The API parameters for all these methods are documented on the API parameters page.
Unstructured recommends that you use the Unstructured Ingest CLI or the Unstructured Ingest Python library if any of the following apply to you:
- You need to work with documents in cloud storage.
- You want to cache the results of processing multiple files in batches.
- You want more precise control over document-processing pipeline stages such as partitioning, chunking, filtering, staging, and embedding.
If you’d like to try out the Unstructured API interactively by using the Free Unstructured API to process a single file, you can do so by using the Swagger UI.
- Go to the Swagger UI.
- For Servers, select https://api.unstructured.io - Hosted API Free.
- Click Authorize.
- In the Available authorizations dialog box, for Value, enter your Free Unstructured API key. Get a Free Unstructured API key.
- Click Authorize.
- Click Close.
- Expand the POST section.
- In the Request body section, next to files, click Choose File.
- Browse to and select a file for the Free Unstructured API to process.
- Enter any other settings as desired. Learn how.
- At the end of the list of settings, click Execute.
- See the results in the Responses section below the Execute button.
Was this page helpful?