GET/v1/files/{id}
One file's record: its URL, pages, size and when it expires
PARAMETERS
- idpath · stringREQUIRED
- The file ide.g. fil_8kq2wzm4tnb7hdc3vrex
REQUEST
curl "https://api.pdfedge.com/v1/files/fil_8kq2wzm4tnb7hdc3vrex" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.pdfedge.com/v1/files/fil_8kq2wzm4tnb7hdc3vrex", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.pdfedge.com/v1/files/fil_8kq2wzm4tnb7hdc3vrex", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"id": "fil_8kq2wzm4tnb7hdc3vrex",
"object": "file",
"kind": "result",
"operation": "merge",
"name": "merged.pdf",
"format": "pdf",
"content_type": "application/pdf",
"pages": 12,
"bytes": 284113,
"url": "https://files.pdfedge.com/f/fil_8kq2wzm4tnb7hdc3vrex.pdf",
"keep": "1d",
"created": "2026-10-11T18:10:40Z",
"expires": "2026-10-12T18:10:40Z",
"units": 1
}
404No such file on this account, or it has expired
{
"error": "string",
"message": "string",
"param": "string"
}