Passport Sorted: passport & visa photo rules
v1.0.0Official passport and visa photo rules for 27 documents, with sources and check dates.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_photo_specs
List every passport, visa and ID photo spec we publish (including the US online passport renewal and DV lottery): id, country, document, size in mm and whether we make the photo (US$8.99 file; the check is free) or only check it.
| Parameter | Type | Description |
|---|---|---|
query | string | Optional filter, e.g. 'visa' or 'japan'. |
get_photo_spec
Official photo rules for one document: print size, pixels at 300 and 600 dpi, head height, background, glasses, expression, digital file limits, what editing the government forbids, and the official source URL with the date we checked it.
| Parameter | Type | Description |
|---|---|---|
country * | string | Country name or ISO code, e.g. 'United States', 'GB', 'Schengen'. |
document | string | passport, visa, e-visa, dv-lottery or passport-online (online renewal). |
check_photo_requirements
Check a photo's measurements against a spec: aspect ratio, pixel limits, head height share and file size/format. Does not look at the image itself; for a full check use the free checker at page_url.
| Parameter | Type | Description |
|---|---|---|
height_px * | integer | |
spec_id * | string | Spec id from list_photo_specs, e.g. us-passport. |
width_px * | integer | |
file_format | jpg, png, heic... | |
file_kb | ||
head_height_px | Chin to crown in pixels. |
list_products
List every product Passport Sorted sells: prices in US dollars and Kenyan shillings (Paystack charges in KES), what you get, and the page URL. Checking a photo is free. Other products are paid one-offs, not subscriptions.
get_product
Details and price for one product, including how it is delivered and the page to buy it.
| Parameter | Type | Description |
|---|---|---|
code * | string | Product code from list_products, e.g. 'credits-10', 'print-sheet', 'family-pack'. |