API endpoint that allows Astronaut to be viewed.

GET: Return a list of all the existing astronauts.

MODE: Normal, List, LaunchList and Detailed /2.0.0/astronaut/?mode=detailed

FILTERS: Parameters - 'name', 'status', 'nationality', 'agency__name', 'agency__abbrev', 'date_of_birth', 'date_of_death', 'status_ids' Example - /2.0.0/astronaut/?nationality=American

SEARCH EXAMPLE: /2.0.0/astronaut/?search=armstrong Searches through name, nationality and agency name

ORDERING: Fields - 'name', 'status', 'date_of_birth' Example - /2.0.0/astronaut/?order=name

GET /2.0.0/astronaut/505/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": 505,
    "url": "https://lldev.thespacedevs.com/2.0.0/astronaut/505/?format=api",
    "name": "Donald Pettit",
    "status": {
        "id": 1,
        "name": "Active"
    },
    "type": {
        "id": 2,
        "name": "Government"
    },
    "agency": {
        "id": 44,
        "url": "https://lldev.thespacedevs.com/2.0.0/agencies/44/?format=api",
        "name": "National Aeronautics and Space Administration",
        "type": "Government"
    },
    "date_of_birth": "1955-04-20",
    "date_of_death": null,
    "nationality": "American",
    "twitter": "https://twitter.com/PettitDonald",
    "instagram": null,
    "bio": "Donald Roy Pettit is an American chemical engineer and a NASA astronaut. He is a veteran of two long-duration stays aboard the International Space Station, one space shuttle mission and a six-week expedition to find meteorites in Antarctica. As of 2018, at age 63, he is NASA's oldest active astronaut.",
    "profile_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/donald2520pettit_image_20181203160928.jpg",
    "profile_image_thumbnail": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305191002.jpeg",
    "wiki": "https://en.wikipedia.org/wiki/Donald_Pettit",
    "flights": [],
    "landings": [],
    "last_flight": "2024-09-11T16:23:12Z",
    "first_flight": "2002-11-24T00:49:47Z"
}