FilePreviews is an API that produces beautiful previews,optical character recognition and metadata from any file.Extract, analyze, and present data from your files.
Datatype | Description | Example |
---|---|---|
Datepicker | String which includes date and time | |
Map | String which includes latitude and longitude coma separated | |
List | Simple array | |
Select | String with predefined values | |
Array | Array of objects |
Create file preview.Returned response can be used for polling until results are available and return an HTTP status code of 200. If application has a Callback URL specified, results will also be posted via webhooks.
Field | Type | Description |
---|---|---|
apiKey | credentials | Your API key. |
apiSecret | credentials | Your API secret. |
fileUrl | String | File url to preview. |
sizes | List | An array of sizes of the extracted thumbnails, in pixels. Expressed as widthxheight. Specifying only the width(e.g 300 ) will generate a thumbnail with a fixed width and varying height. You can also only shrink larger images to fit into the give size and never enlarge(e.g 300x400> ). |
format | Select | The format of the extracted thumbnails. |
metadata | List | An list of string values of additional metadata to extract. |
pages | String | The document pages that you want to extract thumbnails for. You can specify a range or individual pages separated by commas. Example: 1-3 or 1,3,5 . You can also specify the special value of all to extract all pages. Default value is 1 . |
callbackUrl | String | A URL that we will POST anytime results for requests previews are ready. |
Get file preview.Returned response can be used for polling until results are available and return an HTTP status code of 200. If application has a Callback URL specified, results will also be posted via webhooks.
Field | Type | Description |
---|---|---|
apiKey | credentials | Your API key. |
apiSecret | credentials | Your API secret. |
previewId | String | Preview id from createPreview endpoint. |