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

{
    "id": 528,
    "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/528/?format=api",
    "name": "Michael E. Fossum",
    "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": 927,
        "name": "[AUTO] Michael E. Fossum - image",
        "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/michael_e._foss_image_20220911033951.jpeg",
        "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305191143.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": "P193DT19H2M8S",
    "eva_time": "P2DT32M",
    "age": 67,
    "date_of_birth": "1957-12-19",
    "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": "Michael Edward Fossum is a former American astronaut and the Chief Operating Officer of Texas A&M University at Galveston. He flew into space on board the NASA Space Shuttle missions STS-121 and STS-124 and served as a mission specialist of Expedition 28 and commander of Expedition 29 aboard the International Space Station.",
    "wiki": "https://en.wikipedia.org/wiki/Michael_E._Fossum",
    "last_flight": "2011-06-07T20:12:45Z",
    "first_flight": "2006-07-04T18:37:55Z",
    "social_media_links": [],
    "flights_count": 3,
    "landings_count": 3,
    "spacewalks_count": 7,
    "flights": [],
    "landings": [],
    "spacewalks": [
        {
            "response_mode": "list",
            "id": 347,
            "url": "https://lldev.thespacedevs.com/2.3.0/spacewalks/347/?format=api",
            "name": "Expedition 28 EVA 1",
            "start": "2011-07-12T13:22:00Z",
            "end": "2011-07-12T19:53:00Z",
            "duration": "PT6H31M",
            "location": "International Space Station",
            "crew": [
                {
                    "id": 4462,
                    "role": {
                        "id": 33,
                        "role": "EV1",
                        "priority": 0
                    },
                    "astronaut": {
                        "id": 542,
                        "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/542/?format=api",
                        "name": "Ronald J. Garan Jr.",
                        "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": 238,
                            "name": "[AUTO] Ronald J. Garan Jr. - image",
                            "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/ronald_j._garan_image_20220911034532.jpeg",
                            "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305185313.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": "P177DT23H53M28S",
                        "eva_time": "P1DT3H3M",
                        "age": 63,
                        "date_of_birth": "1961-10-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": "Ronald John Garan Jr. is a NASA astronaut. After graduating from State University of New York College at Oneonta in 1982, he joined the Air Force, becoming a Second Lieutenant in 1984. He became an F-16 pilot, and flew combat missions in Desert Shield and Desert Storm. Before becoming an astronaut he was the Operations Officer of the 40th Flight Test Squadron (FTS). He first flew in space as a Mission Specialist on the STS-124 mission to the International Space Station (ISS). He returned to ISS on April 4, 2011, for a six-month stay as a member of Expedition 27.",
                        "wiki": "https://en.wikipedia.org/wiki/Ronald_J._Garan_Jr.",
                        "last_flight": "2011-04-04T22:18:20Z",
                        "first_flight": "2008-05-31T21:02:12Z",
                        "social_media_links": []
                    }
                },
                {
                    "id": 4463,
                    "role": {
                        "id": 34,
                        "role": "EV2",
                        "priority": 1
                    },
                    "astronaut": {
                        "id": 528,
                        "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/528/?format=api",
                        "name": "Michael E. Fossum",
                        "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": 927,
                            "name": "[AUTO] Michael E. Fossum - image",
                            "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/michael_e._foss_image_20220911033951.jpeg",
                            "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305191143.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": "P193DT19H2M8S",
                        "eva_time": "P2DT32M",
                        "age": 67,
                        "date_of_birth": "1957-12-19",
                        "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": "Michael Edward Fossum is a former American astronaut and the Chief Operating Officer of Texas A&M University at Galveston. He flew into space on board the NASA Space Shuttle missions STS-121 and STS-124 and served as a mission specialist of Expedition 28 and commander of Expedition 29 aboard the International Space Station.",
                        "wiki": "https://en.wikipedia.org/wiki/Michael_E._Fossum",
                        "last_flight": "2011-06-07T20:12:45Z",
                        "first_flight": "2006-07-04T18:37:55Z",
                        "social_media_links": []
                    }
                }
            ]
        }
    ]
}