PerfectParser Docs

Export Extraction Results

Reference for the GET /v1/extractions/:extraction_id/export endpoint.

GET /v1/extractions/:extraction_id/export

Download the completed extraction results formatted as JSON, CSV, or Excel (XLSX).

Path Parameters

ParameterTypeRequiredDescription
extraction_idstringThe unique ID of the extraction job.

Query Parameters

ParameterTypeRequiredDescription
formatstringFormat of the exported results: json (default), csv, or xlsx.
curl "https://api.perfectparser.com/v1/extractions/ext_123/export?format=csv" \
  -H "X-API-Key: pp_live_your_secret_key" \
  -o results.csv

Response 200 OK

Returns a file download stream with appropriate Content-Disposition and Content-Type headers for the requested format.


Common Error Responses

HTTP StatusError CodeDescription
401UNAUTHORIZEDInvalid or missing API key.
404RESOURCE_NOT_FOUNDThe requested extraction job does not exist or belongs to another account.

On this page