Passport

Passport information

Fetch a given passport

fetch('https://api.placeholderjson.dev/passport/2WUHZZ9ATV')
.then(response => response.json())
.then(json => console.log(json))

// Return
{
  "id": "2WUHZZ9ATV",
  "first_name": "Maribel",
  "last_name": "Lafontaine",
  "date_of_issue": "1579587026",
  "date_of_expiry": "1895206226",
  "sex": "F",
  "country_code": "PK",
  "country": "Pakistan",
  "date_of_birth": "475166731",
  "place_of_birth": "Khānpur",
  "photo": "https://robohash.org/nonprovidentenim.bmp?size=200x250&set=set1"
}

List all passports

fetch('https://api.placeholderjson.dev/passport')
.then(response => response.json())
.then(json => console.log(json))

// Return
[{"id":"2WUHZZ9ATV","first_name":"Maribel" /* ... */]

Information

Data

NameType
idstring
first_namestring
last_namestring
date_of_issueepoch (string)
date_of_expiryepoch (string)
sexletter (string)
country_codestring
countrystring
date_of_birthepoch (string)
place_of_birthstring
photourl (string)

Example