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
| Name | Type |
|---|---|
| id | string |
| first_name | string |
| last_name | string |
| date_of_issue | epoch (string) |
| date_of_expiry | epoch (string) |
| sex | letter (string) |
| country_code | string |
| country | string |
| date_of_birth | epoch (string) |
| place_of_birth | string |
| photo | url (string) |