SpaceX-API
SpaceX-API copied to clipboard
launches/query endpoint does not return launch IDs for ship and crew launches
When making the request below, not all launches for ships and crew have an ID
POST https://api.spacexdata.com/v5/launches/query
{
"options": {
"populate": [
{
"path": "ships",
"populate": [
{
"path": "launches",
"select": [
"id",
"name"
]
}
],
"select": {
"name": 1
}
},
{
"path": "crew",
"populate": [
{
"path": "launches",
"select": [
"id",
"name"
]
}
],
"select": {
"name": 1
}
}
],
"select": [
"id"
],
"limit": 1000
}
}
returns
{
"docs": [
{
"crew": [],
"ships": [
{
"name": "Elsbeth III",
"launches": [
{
"name": "CRS-5"
}
]
}
],
"id": "5eb87ce8ffd86e000604b33c"
},
{
"crew": [],
"ships": [
{
"name": "NRC Quest",
"launches": [
{
"name": "CRS-5",
"id": "5eb87ce8ffd86e000604b33c"
}
]
}
],
"id": "5eb87cf0ffd86e000604b343"
}
],
"totalDocs": 193,
"offset": 0,
"limit": 1000,
"totalPages": 1,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}