Photo requirements data for developers
https://pixtidy.com/requirements.json lists the official photo requirements for 31 passports and visas — print size, head height range, background, rules, and links to each official source. Free, no key, CORS enabled.
| Field | Description |
|---|---|
id | Unique document identifier. |
country | Country display name. |
document | Document display name. |
page | URL of the pixtidy requirements page for this document. |
print_mm | Print width and height in millimetres, or null when unspecified. |
pixels | Official pixel width and height, or null when no official pixel size is specified. |
head_height | Minimum and maximum fractions of photo height, unit fraction_of_photo_height, and official flag (false for a framing recommendation). |
background | Background requirement description. |
file | File requirement note, or null when absent. |
rules | Array of photo requirement strings. |
sources | Official sources with label, URL, and verified date. |
const r = await fetch("https://pixtidy.com/requirements.json"); const { documents } = await r.json();Facts come from the official sources listed with each document; please cite them and link to pixtidy.com. Requirements change — check the official source before you rely on them.