Modes

Levels of detail in the response - list, normal, detailed

Example - /astronauts/?mode=list

Filters

Parameters - age, age__gt, age__gte, age__lt, age__lte, agency_ids, date_of_birth, date_of_birth__gt, date_of_birth__gte, date_of_birth__lt, date_of_birth__lte, date_of_death, date_of_death__gt, date_of_death__gte, date_of_death__lt, date_of_death__lte, first_flight, first_flight__gt, first_flight__gte, first_flight__lt, first_flight__lte, flights_count, flights_count__gt, flights_count__gte, flights_count__lt, flights_count__lte, has_flown, in_space, is_human, landings_count, landings_count__gt, landings_count__gte, landings_count__lt, landings_count__lte, last_flight, last_flight__gt, last_flight__gte, last_flight__lt, last_flight__lte, nationality, status_ids, type__id

Example - /astronauts/?has_flown=true

Fields searched - agency__abbrev, agency__name, name, nationality__nationality_name

Example - /astronauts/?search=Pesquet

Ordering

Fields - age, date_of_birth, eva_time, flights_count, id, landings_count, last_flight, name, spacewalks_count, status, time_in_space

Example - /astronauts/?ordering=-time_in_space

Number of results

Use limit to control the number of objects in the response (max 100)

Example - /astronauts/?limit=2

Format

Switch to JSON output - /astronauts/?format=json

Help

Find all the FAQs and support links on the documentation homepage - lldev.thespacedevs.com/docs

GET /2.3.0/astronauts/486/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": 486,
    "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/486/?format=api",
    "name": "Stephen Frick",
    "status": {
        "id": 2,
        "name": "Retired"
    },
    "agency": {
        "response_mode": "list",
        "id": 44,
        "url": "https://lldev.thespacedevs.com/2.3.0/agencies/44/?format=api",
        "name": "National Aeronautics and Space Administration",
        "abbrev": "NASA",
        "type": {
            "id": 1,
            "name": "Government"
        }
    },
    "image": {
        "id": 413,
        "name": "[AUTO] Stephen Frick - image",
        "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/stephen_frick_image_20220911033547.jpeg",
        "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305185804.jpeg",
        "credit": null,
        "license": {
            "id": 1,
            "name": "Unknown",
            "priority": 9,
            "link": null
        },
        "single_use": true,
        "variants": []
    },
    "response_mode": "detailed",
    "type": {
        "id": 2,
        "name": "Government"
    },
    "in_space": false,
    "time_in_space": "P23DT14H3M11S",
    "eva_time": "P0D",
    "age": 60,
    "date_of_birth": "1964-09-30",
    "date_of_death": null,
    "nationality": [
        {
            "id": 2,
            "name": "United States of America",
            "alpha_2_code": "US",
            "alpha_3_code": "USA",
            "nationality_name": "American",
            "nationality_name_composed": "Americano"
        }
    ],
    "bio": "Stephen Nathaniel Frick is an American astronaut and a veteran of two Space Shuttle missions. Raised in Pittsburgh, Pennsylvania, Frick graduated from Pine-Richland High School in 1982, earned a degree in aerospace engineering from the United States Naval Academy in 1986, was commissioned as a United States Navy officer, and trained as a F/A-18 fighter pilot. Stationed aboard the carrier USS Saratoga, he flew combat missions during the Gulf War and then earned a master's degree in aeronautical engineering from the Naval Postgraduate School in 1994.\r\n\r\nFrick was selected as a NASA astronaut candidate in 1996 and was trained as a Space Shuttle pilot. He piloted mission STS-110, a docking mission with the International Space Station.\r\n\r\nIn July 2006, Frick was assigned to command the crew of STS-122. The 12-day mission delivered the European Space Agency's Columbus laboratory and returned Expedition 16 Flight Engineer Daniel M. Tani to Earth. The mission launched February 7, 2008, and touched down February 20, 2008. NASA announced his retirement in July 2015.",
    "wiki": "https://en.wikipedia.org/wiki/Stephen_Frick",
    "last_flight": "2008-02-07T19:45:30Z",
    "first_flight": "2002-04-08T20:44:19Z",
    "social_media_links": [],
    "flights_count": 2,
    "landings_count": 2,
    "spacewalks_count": 0,
    "flights": [],
    "landings": [],
    "spacewalks": []
}