Example of request
https://api.kremilly.com/pdfinfo?pdf=YOUR_PDF_URL
A simple example of use in JavaScript
// Replace "YOUR_PDF_URL" for your pdf url
fetch('https://api.kremilly.com/pdfinfo?pdf=YOUR_PDF_URL').then(
json => json.json()
).then(callback => {
console.log(callback)
})
See here others examples in others languages and using Axios.js
Simple output of request:
{
"encrypted": false,
"name": "Karen_e_Priscila.pdf",
"pages": 77,
"size": "245 KB",
"status_code": 200,
"url": "https://www.mackenzie.br/fileadmin/OLD/47/Graduacao/CCBS/Cursos/Ciencias_Biologicas/1o_2012/Biblioteca_TCC_Lic/2009/2o_Semestre/Karen_e_Priscila.pdf"
}
Queries Parameters
pdf
Set the your PDF url
Data returned by the API
name
PDF file nameencrypted
Return if the file is password-protectedsize
PDF file sizepages
Document total of pagestatus_code
HTTP status code of documenturl
PDF file url