Description

This endpoint reads metadata from PDF files.

Endpoint

POST /api/v1/read-pdf-metadata

Headers

  • Content-Type: application/json
  • Authorization: Bearer <API_KEY> (required)

Request Body

{
  "inputMethod": "string", // Required. Either "url" or "base64"
  "files": ["string"], // Required. Array of URLs or base64-encoded PDF contents
  "requestSource": "string" // Optional. Source of the request
}

Responses

Success (200)

Returns the metadata from the PDF files.

{
  "metadata": {
    "Title": "string",
    "Author": "string",
    "Subject": "string",
    "Keywords": "string",
    "Creator": "string",
    "Producer": "string",
    "CreationDate": "string",
    "ModDate": "string"
  }
}

Notes

  • This endpoint uses 1 credit per request
  • Multiple files can be processed in a single request
  • Returns standard PDF metadata fields if available

Rate Limiting

Rate limit headers are included in the response.