List formats
curl --request GET \
--url https://api.spidra.io/api/parse/formatsimport requests
url = "https://api.spidra.io/api/parse/formats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.spidra.io/api/parse/formats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spidra.io/api/parse/formats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.spidra.io/api/parse/formats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.spidra.io/api/parse/formats")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/parse/formats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"extensions": [
"pdf",
"docx",
"doc",
"xlsx",
"pptx",
"ppt",
"odt",
"ods",
"odp",
"rtf",
"epub",
"csv",
"html",
"htm"
],
"maxUploadBytes": 52428800,
"maxPreparedUploadBytes": 524288000,
"maxPagesPerDocument": 2000,
"creditsPerPage": 1
}Parse
List formats
Returns the document formats Parse accepts, its size and page limits, and its price per page. No API key needed.
The format of a document is worked out from its content first and its file name second, so a file with the wrong extension still works.
GET
/
parse
/
formats
List formats
curl --request GET \
--url https://api.spidra.io/api/parse/formatsimport requests
url = "https://api.spidra.io/api/parse/formats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.spidra.io/api/parse/formats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spidra.io/api/parse/formats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.spidra.io/api/parse/formats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.spidra.io/api/parse/formats")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/parse/formats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"extensions": [
"pdf",
"docx",
"doc",
"xlsx",
"pptx",
"ppt",
"odt",
"ods",
"odp",
"rtf",
"epub",
"csv",
"html",
"htm"
],
"maxUploadBytes": 52428800,
"maxPreparedUploadBytes": 524288000,
"maxPagesPerDocument": 2000,
"creditsPerPage": 1
}Response
200 - application/json
The formats and limits.
The file extensions Parse accepts.
The largest file, in bytes, you can upload directly or send as a link (50 MB).
The largest file, in bytes, you can send through a prepared upload (500 MB).
The most pages parsed from one document in one request.
Credits per page parsed, before any AI extraction.
Was this page helpful?

