UNSTRUCTURED_API_KEY
- Your Unstructured API key value.UNSTRUCTURED_API_URL
- Your Unstructured API URL.https://api.unstructuredapp.io
Let’s start with a simple example in which you use curl to send a local PDF file (*.pdf
) to partition via the Unstructured Partition Endpoint.
In this command, be sure to replace <path/to/file>
with the path to your local PDF file.
UNSTRUCTURED_API_URL
. Note, however, that you also need to authenticate yourself with
your individual API Key, represented by the environment variable UNSTRUCTURED_API_KEY
. Learn how to obtain an API URL and API key in the Unstructured Partition Endpoint guide.
The results are printed to your terminal or Command Prompt with a format similar to the following:
<job-id>
value.
Next, run the following curl
command, replacing <job_id>
with the <job_id>
value:
curl
command until the job is complete. However, if you run the curl
command
and the job has successfully completed, the results that are printed to your terminal or Command Prompt will contain the processed data within the
elements
array, for example:
curl
option -o, —output <file> in future command runs.
/v1/partition_async
with /general/v0/general
as follows:
fast
partitioning strategy.
Enter
:
unstructured-api-key
, enter your Unstructured API key in the Value column.files
, click the Select files box in the Value column.partition_id
field in the response, as you will need it for the next procedure.<partition-id>
with the partition_id
value that you noted in the previous procedure.unstructured-api-key
, enter your Unstructured API key in the Value column.unstructured-api-key
, enter your Unstructured API key in the Value column.files
, click the Select files box in the Value column.