Smart Conversion

Get file information

Analyze a file and return information about its format, size, and contents.

Returned Information

  • Detected MIME type and format name
  • File size
  • Page count (for PDFs, PPTX)
  • Image dimensions (for images)
  • Sheet names (for XLSX)
post/any/info

Request

  • Base URL: https://api.filegraph.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.filegraph.ai/any/info
  • Auth: API key in header X-API-Key

Response

File information retrieved

filenamestring required

Original filename

mime_typestring required

Detected MIME type

format_namestring required

Human-readable format name

size_bytesinteger required

File size in bytes

page_countinteger nullable

Number of pages (for PDFs, PPTX)

dimensionsobject nullable

Image dimensions (width, height)

sheet_namesstring[] nullable

Sheet names (for XLSX)

Example response

{
  "filename": "report.pdf",
  "format_name": "PDF Document",
  "mime_type": "application/pdf",
  "page_count": 10,
  "size_bytes": 1024000
}

Changes

No recorded changes to this operation across all 1 revision of this API.