Astronaut Instance
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
Search
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/626/?format=api
{ "id": 626, "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/626/?format=api", "name": "Jean-Pierre Haigneré", "status": { "id": 2, "name": "Retired" }, "agency": { "response_mode": "list", "id": 46, "url": "https://lldev.thespacedevs.com/2.3.0/agencies/46/?format=api", "name": "National Center of Space Research", "abbrev": "CNES", "type": { "id": 1, "name": "Government" } }, "image": { "id": 359, "name": "[AUTO] Jean-Pierre Haigneré - image", "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/jean-pierre2520haigner25c325a9_image_20181229032141.jfif", "thumbnail_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305185641.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": "P209DT12H24M21S", "eva_time": "PT6H19M", "age": 77, "date_of_birth": "1948-05-19", "date_of_death": null, "nationality": [ { "id": 1, "name": "France", "alpha_2_code": "FR", "alpha_3_code": "FRA", "nationality_name": "French", "nationality_name_composed": "Franco" } ], "bio": "Jean-Pierre Haigneré (born 19 May 1948) is a French Air Force officer and a former CNES spationaut.\r\n\r\nHe flew on two missions to the Mir space station in 1993 and 1999. The Mir Altair long-duration mission (186 days) in 1993 also included an EVA.", "wiki": "https://en.wikipedia.org/wiki/Jean-Pierre_Haigner%C3%A9", "last_flight": "1999-02-20T04:18:01Z", "first_flight": "1993-07-01T14:32:58Z", "social_media_links": [], "flights_count": 2, "landings_count": 2, "spacewalks_count": 1, "flights": [], "landings": [], "spacewalks": [ { "response_mode": "list", "id": 131, "url": "https://lldev.thespacedevs.com/2.3.0/spacewalks/131/?format=api", "name": "PE-27 EVA 1", "start": "1999-04-16T04:37:00Z", "end": "1999-04-16T10:56:00Z", "duration": "PT6H19M", "location": "Mir", "crew": [ { "id": 4029, "role": { "id": 33, "role": "EV1", "priority": 0 }, "astronaut": { "id": 56, "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/56/?format=api", "name": "Viktor Afanasyev", "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": 510, "name": "[AUTO] Viktor Afanasyev - image", "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/viktor2520afanasyev_image_20181128215901.jpeg", "thumbnail_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305190036.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": "P555DT18H34M26S", "eva_time": "P1DT14H33M", "age": 76, "date_of_birth": "1948-12-31", "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": "Viktor Mikhailovich Afanasyev Russian: Виктор Михайлович Афанасьев; born 31 December 1948) is a colonel in the Russian Air Force and a test cosmonaut of the Yu. A. Gagarin Cosmonaut Training Center.", "wiki": "https://en.wikipedia.org/wiki/Viktor_Afanasyev_(cosmonaut)", "last_flight": "2001-10-21T08:59:35Z", "first_flight": "1990-12-02T08:13:32Z", "social_media_links": [] } }, { "id": 4030, "role": { "id": 34, "role": "EV2", "priority": 1 }, "astronaut": { "id": 626, "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/626/?format=api", "name": "Jean-Pierre Haigneré", "status": { "id": 2, "name": "Retired" }, "agency": { "response_mode": "list", "id": 46, "url": "https://lldev.thespacedevs.com/2.3.0/agencies/46/?format=api", "name": "National Center of Space Research", "abbrev": "CNES", "type": { "id": 1, "name": "Government" } }, "image": { "id": 359, "name": "[AUTO] Jean-Pierre Haigneré - image", "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/jean-pierre2520haigner25c325a9_image_20181229032141.jfif", "thumbnail_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305185641.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": "P209DT12H24M21S", "eva_time": "PT6H19M", "age": 77, "date_of_birth": "1948-05-19", "date_of_death": null, "nationality": [ { "id": 1, "name": "France", "alpha_2_code": "FR", "alpha_3_code": "FRA", "nationality_name": "French", "nationality_name_composed": "Franco" } ], "bio": "Jean-Pierre Haigneré (born 19 May 1948) is a French Air Force officer and a former CNES spationaut.\r\n\r\nHe flew on two missions to the Mir space station in 1993 and 1999. The Mir Altair long-duration mission (186 days) in 1993 also included an EVA.", "wiki": "https://en.wikipedia.org/wiki/Jean-Pierre_Haigner%C3%A9", "last_flight": "1999-02-20T04:18:01Z", "first_flight": "1993-07-01T14:32:58Z", "social_media_links": [] } } ] } ] }