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

{
    "id": 189,
    "url": "https://lldev.thespacedevs.com/2.3.0/astronauts/189/?format=api",
    "name": "Oleg Grigoryevich Makarov",
    "status": {
        "id": 11,
        "name": "Deceased"
    },
    "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": 716,
        "name": "[AUTO] Oleg Grigoryevich Makarov - image",
        "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/oleg2520grigoryevich2520makarov_image_20181201174249.jpg",
        "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305190610.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": "P20DT17H43M39S",
    "eva_time": "P0D",
    "age": 70,
    "date_of_birth": "1933-01-06",
    "date_of_death": "2003-05-28",
    "nationality": [
        {
            "id": 5,
            "name": "Russia",
            "alpha_2_code": "RU",
            "alpha_3_code": "RUS",
            "nationality_name": "Russian",
            "nationality_name_composed": "Russo"
        }
    ],
    "bio": "Oleg Grigoryevich Makarov (Russian: Оле́г Григо́рьевич Мака́ров) (6 January 1933 – 28 May 2003) was a Soviet cosmonaut.\r\nHe was originally part of the Soviet lunar program and was training with Aleksei Leonov for the first manned circumlunar flight. After the success of Apollo 8, however, the flight was cancelled.\r\n\r\nHis first spaceflight was Soyuz 12 in 1973, a test flight to check the changes made to the Soyuz spacecraft after the Soyuz 11 disaster. His second flight was the abortive Soyuz 18a that made an emergency landing in the Altay Mountains, 21 minutes after launch. With his third launch on Soyuz 27 he flew to space station Salyut 6 and landed five days later with the Soyuz 26 spacecraft. His last mission was Soyuz T-3, during which several repairs on Salyut 6 were done. He also served on the backup crews for Soyuz 17 and Soyuz T-2. Altogether he spent 20 days, 17 hours, and 44 minutes in space.",
    "wiki": "https://en.wikipedia.org/wiki/Oleg_Grigoryevich_Makarov",
    "last_flight": "1980-11-27T14:18:28Z",
    "first_flight": "1973-09-27T12:18:16Z",
    "social_media_links": [],
    "flights_count": 4,
    "landings_count": 4,
    "spacewalks_count": 0,
    "flights": [],
    "landings": [],
    "spacewalks": []
}