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

{
  "id": 270,
  "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/270/?format=api",
  "name": "Sergei Treshchov",
  "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": 769,
    "name": "[AUTO] Sergei Treshchov - image",
    "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/sergei2520treshchov_image_20181201223108.jpg",
    "thumbnail_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305190730.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": "P184DT22H15M11S",
  "eva_time": "PT5H21M",
  "age": 68,
  "date_of_birth": "1958-08-18",
  "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 Yevgenyevich Treshchov (Сергей Евгеньевич Трещёв, born 18 August 1958) is a former cosmonaut of the RSC Energia. He spent 184 days in space as a flight engineer of the International Space Station long duration Expedition 5 crew. During the mission Treshchov also conducted a spacewalk.\r\nIn 1992, he enrolled in the RSC Energia cosmonaut detachment, and from 1992 to 1994 he completed the basic Cosmonaut training course. Treshchov spent the next 3 years (1994 to 1996) in advanced Test Cosmonaut training.\r\nFrom June 1997 to February 1998, Treshchov trained as a flight engineer for the Mir station backup Exp-25 crew. From June 1999 to July 2000 he trained as a flight engineer for the Soyuz-TM backup ISS contingency crew. Initially, he trained as backup to the ISS Expedition 3 crew.",
  "wiki": "https://en.wikipedia.org/wiki/Sergei_Treshchov",
  "last_flight": "2002-06-05T21:22:49Z",
  "first_flight": "2002-06-05T21:22:49Z",
  "social_media_links": [],
  "flights_count": 1,
  "landings_count": 1,
  "spacewalks_count": 1,
  "flights": [],
  "landings": [],
  "spacewalks": [
    {
      "response_mode": "list",
      "id": 306,
      "url": "https://lldev.thespacedevs.com/2.3.0/spacewalks/306/?format=api",
      "name": "Expedition 5 EVA 2",
      "start": "2002-08-26T05:27:00Z",
      "end": "2002-08-26T10:48:00Z",
      "duration": "PT5H21M",
      "location": "International Space Station",
      "crew": [
        {
          "id": 4380,
          "role": {
            "id": 33,
            "role": "EV1",
            "priority": 0
          },
          "astronaut": {
            "id": 170,
            "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/170/?format=api",
            "name": "Valery Korzun",
            "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": 474,
              "name": "[AUTO] Valery Korzun - image",
              "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/valery2520korzun_image_20181129233723.jpeg",
              "thumbnail_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305185941.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": "P381DT15H41M8S",
            "eva_time": "PT22H17M",
            "age": 73,
            "date_of_birth": "1953-03-05",
            "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": "Valery Grigoryevich Korzun (Russian: Валерий Григорьевич Корзун, born 5 March 1953) is a Russian cosmonaut. He has been in space twice totalling 381 days. He has also conducted four career spacewalks.",
            "wiki": "https://en.wikipedia.org/wiki/Valery_Korzun",
            "last_flight": "2002-06-05T21:22:49Z",
            "first_flight": "1996-08-17T13:18:03Z",
            "social_media_links": []
          }
        },
        {
          "id": 4381,
          "role": {
            "id": 34,
            "role": "EV2",
            "priority": 1
          },
          "astronaut": {
            "id": 270,
            "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/270/?format=api",
            "name": "Sergei Treshchov",
            "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": 769,
              "name": "[AUTO] Sergei Treshchov - image",
              "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/sergei2520treshchov_image_20181201223108.jpg",
              "thumbnail_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305190730.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": "P184DT22H15M11S",
            "eva_time": "PT5H21M",
            "age": 68,
            "date_of_birth": "1958-08-18",
            "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 Yevgenyevich Treshchov (Сергей Евгеньевич Трещёв, born 18 August 1958) is a former cosmonaut of the RSC Energia. He spent 184 days in space as a flight engineer of the International Space Station long duration Expedition 5 crew. During the mission Treshchov also conducted a spacewalk.\r\nIn 1992, he enrolled in the RSC Energia cosmonaut detachment, and from 1992 to 1994 he completed the basic Cosmonaut training course. Treshchov spent the next 3 years (1994 to 1996) in advanced Test Cosmonaut training.\r\nFrom June 1997 to February 1998, Treshchov trained as a flight engineer for the Mir station backup Exp-25 crew. From June 1999 to July 2000 he trained as a flight engineer for the Soyuz-TM backup ISS contingency crew. Initially, he trained as backup to the ISS Expedition 3 crew.",
            "wiki": "https://en.wikipedia.org/wiki/Sergei_Treshchov",
            "last_flight": "2002-06-05T21:22:49Z",
            "first_flight": "2002-06-05T21:22:49Z",
            "social_media_links": []
          }
        }
      ]
    }
  ]
}