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/507/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": 507,
    "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/507/?format=api",
    "name": "John L. Phillips",
    "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": 550,
        "name": "[AUTO] John L. Phillips - image",
        "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/john_l._phillip_image_20220911033649.jpeg",
        "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305190140.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": "P203DT17H22M9S",
    "eva_time": "PT4H58M",
    "age": 73,
    "date_of_birth": "1951-04-15",
    "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": "John Lynch Phillips is a NASA astronaut. Phillips is also a Naval Aviator and retired captain, United States Navy Reserve. Phillips has received numerous awards and special honors. He is a National Merit Scholar, graduated 2nd in his class of 906 people at the U.S. Naval Academy in 1972. Phillips has also been awarded the NASA Space Flight Medal, NASA Distinguished Service Medal, the Gagarin Medal and several others. Phillips has logged over 4,400 flight hours and 250 aircraft carrier landings, flying the A-7 Corsair II carrier-based light attack aircraft while on active duty in the Regular Navy and subsequently during his time as a Navy Reservist from 1982 to 2002. At the time of his retirement, Phillips had retained the rank of captain.",
    "wiki": "https://en.wikipedia.org/wiki/John_L._Phillips",
    "last_flight": "2009-03-15T23:43:44Z",
    "first_flight": "2001-04-19T18:40:42Z",
    "social_media_links": [],
    "flights_count": 3,
    "landings_count": 3,
    "spacewalks_count": 1,
    "flights": [],
    "landings": [],
    "spacewalks": [
        {
            "response_mode": "list",
            "id": 316,
            "url": "https://lldev.thespacedevs.com/2.3.0/spacewalks/316/?format=api",
            "name": "Expedition 11 EVA",
            "start": "2005-08-18T19:02:00Z",
            "end": "2005-08-19T00:00:00Z",
            "duration": "PT4H58M",
            "location": "International Space Station",
            "crew": [
                {
                    "id": 4400,
                    "role": {
                        "id": 33,
                        "role": "EV1",
                        "priority": 0
                    },
                    "astronaut": {
                        "id": 174,
                        "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/174/?format=api",
                        "name": "Sergei Krikalev",
                        "status": {
                            "id": 2,
                            "name": "Retired"
                        },
                        "agency": {
                            "response_mode": "list",
                            "id": 63,
                            "url": "https://lldev.thespacedevs.com/2.3.0/agencies/63/?format=api",
                            "name": "Russian Federal Space Agency (ROSCOSMOS)",
                            "abbrev": "RFSA",
                            "type": {
                                "id": 1,
                                "name": "Government"
                            }
                        },
                        "image": {
                            "id": 901,
                            "name": "[AUTO] Sergei Krikalev - image",
                            "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/sergei2520krikalev_image_20181129234055.jpg",
                            "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305191103.jpeg",
                            "credit": null,
                            "license": {
                                "id": 1,
                                "name": "Unknown",
                                "priority": 9,
                                "link": null
                            },
                            "single_use": true,
                            "variants": []
                        },
                        "response_mode": "list",
                        "type": {
                            "id": 2,
                            "name": "Government"
                        },
                        "in_space": false,
                        "time_in_space": "P803DT13H47M10S",
                        "eva_time": "P1DT17H27M",
                        "age": 66,
                        "date_of_birth": "1958-08-27",
                        "date_of_death": null,
                        "nationality": [
                            {
                                "id": 5,
                                "name": "Russia",
                                "alpha_2_code": "RU",
                                "alpha_3_code": "RUS",
                                "nationality_name": "Russian",
                                "nationality_name_composed": "Russo"
                            }
                        ],
                        "bio": "Sergei Konstantinovich Krikalev (Russian: Серге́й Константинович Крикалёв, also transliterated as Sergei Krikalyov; born August 27, 1958) is a Russian cosmonaut and mechanical engineer. As a prominent rocket scientist, he is a veteran of six space flights and ranks third to Gennady Padalka and Yuri Malenchenko for the amount of time in space: a total of 803 days, 9 hours, and 38 minutes.",
                        "wiki": "https://en.wikipedia.org/wiki/Sergei_Krikalev",
                        "last_flight": "2005-04-15T00:46:25Z",
                        "first_flight": "1988-11-26T15:49:34Z",
                        "social_media_links": []
                    }
                },
                {
                    "id": 4401,
                    "role": {
                        "id": 34,
                        "role": "EV2",
                        "priority": 1
                    },
                    "astronaut": {
                        "id": 507,
                        "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/507/?format=api",
                        "name": "John L. Phillips",
                        "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": 550,
                            "name": "[AUTO] John L. Phillips - image",
                            "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/john_l._phillip_image_20220911033649.jpeg",
                            "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305190140.jpeg",
                            "credit": null,
                            "license": {
                                "id": 1,
                                "name": "Unknown",
                                "priority": 9,
                                "link": null
                            },
                            "single_use": true,
                            "variants": []
                        },
                        "response_mode": "list",
                        "type": {
                            "id": 2,
                            "name": "Government"
                        },
                        "in_space": false,
                        "time_in_space": "P203DT17H22M9S",
                        "eva_time": "PT4H58M",
                        "age": 73,
                        "date_of_birth": "1951-04-15",
                        "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": "John Lynch Phillips is a NASA astronaut. Phillips is also a Naval Aviator and retired captain, United States Navy Reserve. Phillips has received numerous awards and special honors. He is a National Merit Scholar, graduated 2nd in his class of 906 people at the U.S. Naval Academy in 1972. Phillips has also been awarded the NASA Space Flight Medal, NASA Distinguished Service Medal, the Gagarin Medal and several others. Phillips has logged over 4,400 flight hours and 250 aircraft carrier landings, flying the A-7 Corsair II carrier-based light attack aircraft while on active duty in the Regular Navy and subsequently during his time as a Navy Reservist from 1982 to 2002. At the time of his retirement, Phillips had retained the rank of captain.",
                        "wiki": "https://en.wikipedia.org/wiki/John_L._Phillips",
                        "last_flight": "2009-03-15T23:43:44Z",
                        "first_flight": "2001-04-19T18:40:42Z",
                        "social_media_links": []
                    }
                }
            ]
        }
    ]
}