Download OpenAPI specification:Download
A SpaceTraders.io API OpenAPI Spec from SpaceTraders Syndicate
| shipId required | string |
| destination required | string |
{- "shipId": "ckmtrlqpz0109zgopkeqs4m5s",
- "destination": "OE-CR"
}{- "flightPlan": {
- "arrivesAt": "2021-03-28T23:11:50.068Z",
- "createdAt": "2021-03-28T23:05:50.068Z",
- "departure": "OE-PM-TR",
- "destination": "OE-CR",
- "distance": 46,
- "fuelConsumed": "13,",
- "fuelRemaining": 67,
- "id": "ckmtrssae0402zgopsy39y9z7",
- "shipId": "ckmtrlqpz0109zgopkeqs4m5s",
- "terminatedAt": null,
- "timeRemainingInSeconds": 365
}
}| flightPlanId required | string Example: ckmtrssae0402zgopsy39y9z7 |
{- "flightPlan": {
- "arrivesAt": "2021-03-28T23:11:50.068Z",
- "createdAt": "2021-03-28T23:05:50.068Z",
- "departure": "OE-PM-TR",
- "destination": "OE-CR",
- "distance": 46,
- "fuelConsumed": "13,",
- "fuelRemaining": 67,
- "id": "ckmtrssae0402zgopsy39y9z7",
- "shipId": "ckmtrlqpz0109zgopkeqs4m5s",
- "terminatedAt": null,
- "timeRemainingInSeconds": 365
}
}{- "flightPlans": [
- {
- "arrivesAt": "2021-03-28T23:11:50.068Z",
- "createdAt": "2021-03-28T23:05:50.068Z",
- "departure": "OE-PM-TR",
- "destination": "OE-CR",
- "id": "ckmtrssae0402zgopsy39y9z7",
- "shipId": "ckmtrlqpz0109zgopkeqs4m5s",
- "username": "SomeUser"
}
]
}{- "status": "spacetraders is currently online and available to play"
}| type required | string |
{- "type": "STARTUP"
}{- "credits": 200000,
- "loan": {
- "id": "cko0ejf4o103666215s6u4pxjvdd",
- "due": "2021-04-29T19:07:58.679Z",
- "repaymentAmount": 280000,
- "status": "CURRENT",
- "type": "STARTUP"
}
}{- "loans": [
- {
- "id": "cko0ejf4o103666215s6u4pxjvdd",
- "due": "2021-04-29T19:07:58.679Z",
- "repaymentAmount": 280000,
- "status": "CURRENT",
- "type": "STARTUP"
}
]
}{- "location": {
- "symbol": "OE-A1",
- "type": "PLANET",
- "name": "Alpha",
- "x": 3,
- "y": 7,
- "allowsConstruction": true,
- "ships": [
- {
- "shipId": "ckno9324k0079iiop71j5nrob",
- "username": "SomeUser",
- "shipType": "JW-MK-I"
}
], - "structures": [
- {
- "id": "ckno69qb105191ds69utcsztz",
- "type": "MINE",
- "location": "OE-UC-AD",
- "status": "Production running. Required inventory is in stock.",
- "active": true,
- "ownedBy": {
- "username": "SomeUser"
}, - "inventory": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "consumes": [
- "string"
], - "produces": [
- "string"
]
}
]
}
}| symbol required | string Example: OE |
| type | string Example: type=MOON Filter locations fetched on location type |
| allowsConstruction | boolean Example: allowsConstruction=true |
{- "locations": [
- {
- "symbol": "OE-A1",
- "type": "PLANET",
- "name": "Alpha",
- "x": 3,
- "y": 7,
- "allowsConstruction": true,
- "ships": [
- {
- "shipId": "ckno9324k0079iiop71j5nrob",
- "username": "SomeUser",
- "shipType": "JW-MK-I"
}
], - "structures": [
- {
- "id": "ckno69qb105191ds69utcsztz",
- "type": "MINE",
- "location": "OE-UC-AD",
- "status": "Production running. Required inventory is in stock.",
- "active": true,
- "ownedBy": {
- "username": "SomeUser"
}, - "inventory": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "consumes": [
- "string"
], - "produces": [
- "string"
]
}
]
}
]
}| symbol required | string Example: OE |
{- "marketplace": [
- {
- "symbol": "MACHINERY",
- "volumePerUnit": 1,
- "quantityAvailable": 1539,
- "pricePerUnit": 136,
- "purchasePricePerUnit": 136,
- "spread": 1,
- "sellPricePerUnit": 135
}
]
}| shipId required | string |
| good required | string |
| quantity required | number |
{- "shipId": "ckno92mhi0049iiopc2kmylkz",
- "good": "FUEL",
- "quantity": 50
}{- "credits": 74300,
- "ship": {
- "id": "ckno9324k0079iiop71j5nroa",
- "cargo": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "class": "string",
- "location": "OE-PM-TR",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "spaceAvailable": 50,
- "type": "JW-MK-I",
- "weapons": 5,
- "x": 23,
- "y": -28
}, - "order": {
- "good": "FUEL",
- "quantity": 50,
- "pricePerUnit": 3,
- "total": 150
}
}| shipId required | string |
| good required | string |
| quantity required | number |
{- "shipId": "ckno92mhi0049iiopc2kmylkz",
- "good": "FUEL",
- "quantity": 50
}{- "credits": 74300,
- "ship": {
- "id": "ckno9324k0079iiop71j5nroa",
- "cargo": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "class": "string",
- "location": "OE-PM-TR",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "spaceAvailable": 50,
- "type": "JW-MK-I",
- "weapons": 5,
- "x": 23,
- "y": -28
}, - "order": {
- "good": "FUEL",
- "quantity": 50,
- "pricePerUnit": 3,
- "total": 150
}
}| type required | string |
| location required | string |
{- "type": "string",
- "location": "string"
}{- "credits": 178875,
- "ship": {
- "id": "ckno9324k0079iiop71j5nroa",
- "cargo": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "class": "string",
- "location": "OE-PM-TR",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "spaceAvailable": 50,
- "type": "JW-MK-I",
- "weapons": 5,
- "x": 23,
- "y": -28
}
}{- "ships": [
- {
- "id": "ckno9324k0079iiop71j5nroa",
- "cargo": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "class": "string",
- "location": "OE-PM-TR",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "spaceAvailable": 50,
- "type": "JW-MK-I",
- "weapons": 5,
- "x": 23,
- "y": -28
}
]
}| shipId required | string Example: ckno9324k0079iiop71j5nrob |
{- "ship": {
- "id": "ckno9324k0079iiop71j5nroa",
- "cargo": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "class": "string",
- "location": "OE-PM-TR",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "spaceAvailable": 50,
- "type": "JW-MK-I",
- "weapons": 5,
- "x": 23,
- "y": -28
}
}| shipId required | string Example: ckno9324k0079iiop71j5nrob |
| good required | string |
| quantity required | number |
{- "good": "FUEL",
- "quantity": 50
}{- "good": "FUEL",
- "quantityRemaining": 37,
- "shipId": "cko1peqal178915s6t8rzdgki"
}| fromShipId required | string Example: ckno9324k0079iiop71j5nrob |
| toShipId required | string |
| good required | string |
| quantity required | number |
{- "toShipId": "ckn85whu00091r5opkrb5qpzh",
- "good": "FUEL",
- "quantity": 50
}{- "fromShip": {
- "id": "ckno9324k0079iiop71j5nroa",
- "cargo": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "class": "string",
- "location": "OE-PM-TR",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "spaceAvailable": 50,
- "type": "JW-MK-I",
- "weapons": 5,
- "x": 23,
- "y": -28
}, - "toShip": {
- "id": "ckno9324k0079iiop71j5nroa",
- "cargo": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "class": "string",
- "location": "OE-PM-TR",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "spaceAvailable": 50,
- "type": "JW-MK-I",
- "weapons": 5,
- "x": 23,
- "y": -28
}
}{- "ships": [
- {
- "class": "string",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "type": "JW-MK-I",
- "weapons": 5,
- "speed": 3,
- "restrictedGoods": [
- "string"
]
}
]
}| symbol required | string Example: OE |
{- "shipListings": [
- {
- "class": "string",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "type": "JW-MK-I",
- "weapons": 5,
- "purchaseLocations": [
- {
- "system": "OE",
- "location": "OE-A1",
- "price": 16000
}
]
}
]
}| location required | string |
| type required | string |
{- "location": "OE",
- "type": "FARM"
}{- "structure": {
- "id": "ckno69qb105191ds69utcsztz",
- "type": "MINE",
- "location": "OE-UC-AD",
- "status": "Production running. Required inventory is in stock.",
- "active": true,
- "ownedBy": {
- "username": "SomeUser"
}, - "inventory": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "consumes": [
- "string"
], - "produces": [
- "string"
]
}
}{- "structures": [
- {
- "id": "ckno69qb105191ds69utcsztz",
- "type": "MINE",
- "location": "OE-UC-AD",
- "status": "Production running. Required inventory is in stock.",
- "active": true,
- "ownedBy": {
- "username": "SomeUser"
}, - "inventory": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "consumes": [
- "string"
], - "produces": [
- "string"
]
}
]
}| structureId required | string Example: ckno69qb105191ds69utcsztz |
{- "structure": {
- "id": "ckno69qb105191ds69utcsztz",
- "type": "MINE",
- "location": "OE-UC-AD",
- "status": "Production running. Required inventory is in stock.",
- "active": true,
- "ownedBy": {
- "username": "SomeUser"
}, - "inventory": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "consumes": [
- "string"
], - "produces": [
- "string"
]
}
}| structureId required | string Example: ckno69qb105191ds69utcsztz |
| shipId required | string |
| good required | string |
| quantity required | number |
{- "shipId": "ckno69qb105191ds69utcsztz",
- "good": "METAL",
- "quantity": 40
}{- "transfer": {
- "good": "METALS",
- "quantity": 10
}, - "ship": {
- "cargo": [
- {
- "good": "METALS",
- "quantity": 10
}
]
}, - "structure": {
- "inventory": [
- {
- "good": "METALS",
- "quantity": 10
}
]
}
}| structureId required | string Example: ckno69qb105191ds69utcsztz |
| shipId required | string |
| good required | string |
| quantity required | number |
{- "shipId": "ckno69qb105191ds69utcsztz",
- "good": "METAL",
- "quantity": 40
}{- "transfer": {
- "good": "METALS",
- "quantity": 10
}, - "ship": {
- "cargo": [
- {
- "good": "METALS",
- "quantity": 10
}
]
}, - "structure": {
- "inventory": [
- {
- "good": "METALS",
- "quantity": 10
}
]
}
}{- "structures": [
- {
- "allowedLocationTypes": [
- "PLANET"
], - "consumes": [
- "string"
], - "produces": [
- "string"
], - "type": "FARM",
- "price": 500000,
- "name": "Farm"
}
]
}{- "structures": [
- {
- "allowedLocationTypes": [
- "PLANET"
], - "consumes": [
- "string"
], - "produces": [
- "string"
], - "type": "FARM",
- "price": 500000,
- "name": "Farm"
}
]
}{- "systems": [
- {
- "symbol": "OE",
- "name": "Omicron Eridani",
- "locations": [
- {
- "symbol": "OE-A1",
- "type": "PLANET",
- "name": "Alpha",
- "x": 3,
- "y": 7,
- "allowsConstruction": true,
- "ships": [
- {
- "shipId": "ckno9324k0079iiop71j5nrob",
- "username": "SomeUser",
- "shipType": "JW-MK-I"
}
], - "structures": [
- {
- "id": "ckno69qb105191ds69utcsztz",
- "type": "MINE",
- "location": "OE-UC-AD",
- "status": "Production running. Required inventory is in stock.",
- "active": true,
- "ownedBy": {
- "username": "SomeUser"
}, - "inventory": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "consumes": [
- "string"
], - "produces": [
- "string"
]
}
]
}
]
}
]
}| symbol required | string Example: OE |
| type | string Example: type=MOON Filter locations fetched on location type |
| allowsConstruction | boolean Example: allowsConstruction=true |
{- "locations": [
- {
- "symbol": "OE-A1",
- "type": "PLANET",
- "name": "Alpha",
- "x": 3,
- "y": 7,
- "allowsConstruction": true,
- "ships": [
- {
- "shipId": "ckno9324k0079iiop71j5nrob",
- "username": "SomeUser",
- "shipType": "JW-MK-I"
}
], - "structures": [
- {
- "id": "ckno69qb105191ds69utcsztz",
- "type": "MINE",
- "location": "OE-UC-AD",
- "status": "Production running. Required inventory is in stock.",
- "active": true,
- "ownedBy": {
- "username": "SomeUser"
}, - "inventory": [
- {
- "good": "METALS",
- "quantity": 10
}
], - "consumes": [
- "string"
], - "produces": [
- "string"
]
}
]
}
]
}{- "flightPlans": [
- {
- "arrivesAt": "2021-03-28T23:11:50.068Z",
- "createdAt": "2021-03-28T23:05:50.068Z",
- "departure": "OE-PM-TR",
- "destination": "OE-CR",
- "id": "ckmtrssae0402zgopsy39y9z7",
- "shipId": "ckmtrlqpz0109zgopkeqs4m5s",
- "username": "SomeUser"
}
]
}| symbol required | string Example: OE |
{- "shipListings": [
- {
- "class": "string",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "type": "JW-MK-I",
- "weapons": 5,
- "purchaseLocations": [
- {
- "system": "OE",
- "location": "OE-A1",
- "price": 16000
}
]
}
]
}{- "user": {
- "username": "MyUser",
- "credits": 421337,
- "shipCount": 10,
- "structureCount": 1
}
}{- "structures": [
- {
- "allowedLocationTypes": [
- "PLANET"
], - "consumes": [
- "string"
], - "produces": [
- "string"
], - "type": "FARM",
- "price": 500000,
- "name": "Farm"
}
]
}{- "loans": [
- {
- "amount": 200000,
- "collateralRequired": false,
- "rate": 40,
- "termInDays": 2,
- "type": "STARTUP"
}
]
}{- "ships": [
- {
- "class": "string",
- "manufacturer": "Jackshaw",
- "maxCargo": 50,
- "plating": 5,
- "type": "JW-MK-I",
- "weapons": 5,
- "speed": 3,
- "restrictedGoods": [
- "string"
]
}
]
}{- "goods": [
- {
- "name": "Fuel",
- "symbol": "FUEL",
- "volumePerUnit": 1
}
]
}