Space Trader V1
Space Trader V1 · Actions GPT
UEX API
OpenAPI schema for the UEX API.
GET /commoditiesRetrieve commodity dataFetch a list of commodities available in the UEX database.
GET /commodities_pricesRetrieve commodity pricesFetch prices for specific commodities based on various query parameters.
GET /commodities_prices_allRetrieve all commodity pricesFetch all available commodity prices, including buy/sell prices, stock, and supply/demand data.
GET /citiesRetrieve citiesFetch city data based on optional filters.
GET /terminalsRetrieve terminalsFetch terminal data based on optional filters.
Schéma original API
{
"openapi": "3.1.0",
"info": {
"title": "UEX API",
"description": "OpenAPI schema for the UEX API.",
"version": "2.0"
},
"servers": [
{
"url": "https://api.uexcorp.space/2.0",
"description": "Production Server"
}
],
"components": {
"schemas": {}
},
"paths": {
"/commodities": {
"get": {
"summary": "Retrieve commodity data",
"description": "Fetch a list of commodities available in the UEX database.",
"operationId": "getCommodities",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"id_parent": {
"type": "integer"
},
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"slug": {
"type": "string"
},
"kind": {
"type": "string"
},
"weight_scu": {
"type": "integer"
},
"price_buy": {
"type": "number"
},
"price_sell": {
"type": "number"
},
"is_available": {
"type": "integer"
},
"is_available_live": {
"type": "integer"
},
"is_visible": {
"type": "integer"
},
"is_raw": {
"type": "integer"
},
"is_refined": {
"type": "integer"
},
"is_mineral": {
"type": "integer"
},
"is_harvestable": {
"type": "integer"
},
"is_buyable": {
"type": "integer"
},
"is_sellable": {
"type": "integer"
},
"is_temporary": {
"type": "integer"
},
"is_illegal": {
"type": "integer"
},
"is_fuel": {
"type": "integer"
},
"wiki": {
"type": "string"
},
"date_added": {
"type": "integer"
},
"date_modified": {
"type": "integer"
}
}
}
}
}
}
}
}
}
}
}
},
"/commodities_prices": {
"get": {
"summary": "Retrieve commodity prices",
"description": "Fetch prices for specific commodities based on various query parameters.",
"operationId": "getCommodityPrices",
"parameters": [
{
"name": "id_terminal",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "Comma-separated terminal IDs."
},
{
"name": "id_commodity",
"in": "query",
"required": false,
"schema": {
"type": "integer"
},
"description": "Commodity ID."
},
{
"name": "terminal_name",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "Terminal name."
},
{
"name": "commodity_name",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "Commodity name."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"id_commodity": {
"type": "integer"
},
"price_buy": {
"type": "number"
},
"price_sell": {
"type": "number"
},
"scu_buy": {
"type": "number"
},
"scu_sell": {
"type": "number"
},
"status_buy": {
"type": "integer"
},
"status_sell": {
"type": "integer"
},
"date_added": {
"type": "integer"
},
"date_modified": {
"type": "integer"
},
"commodity_name": {
"type": "string"
},
"commodity_code": {
"type": "string"
},
"terminal_name": {
"type": "string"
},
"terminal_code": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
},
"/commodities_prices_all": {
"get": {
"summary": "Retrieve all commodity prices",
"description": "Fetch all available commodity prices, including buy/sell prices, stock, and supply/demand data.",
"operationId": "getAllCommodityPrices",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"id_commodity": {
"type": "integer"
},
"id_terminal": {
"type": "integer"
},
"price_buy": {
"type": "number"
},
"price_buy_avg": {
"type": "number"
},
"price_sell": {
"type": "number"
},
"price_sell_avg": {
"type": "number"
},
"scu_buy": {
"type": "number"
},
"scu_buy_avg": {
"type": "number"
},
"scu_sell_stock": {
"type": "number"
},
"scu_sell_stock_avg": {
"type": "number"
},
"scu_sell": {
"type": "number"
},
"scu_sell_avg": {
"type": "number"
},
"status_buy": {
"type": "integer"
},
"status_sell": {
"type": "integer"
},
"date_added": {
"type": "integer"
},
"date_modified": {
"type": "integer"
},
"commodity_name": {
"type": "string"
},
"commodity_code": {
"type": "string"
},
"commodity_slug": {
"type": "string"
},
"terminal_name": {
"type": "string"
},
"terminal_code": {
"type": "string"
},
"terminal_slug": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
},
"/cities": {
"get": {
"summary": "Retrieve cities",
"description": "Fetch city data based on optional filters.",
"operationId": "getCities",
"parameters": [
{
"name": "id_star_system",
"in": "query",
"required": false,
"schema": {
"type": "integer"
},
"description": "Star system ID."
},
{
"name": "id_planet",
"in": "query",
"required": false,
"schema": {
"type": "integer"
},
"description": "Planet ID."
},
{
"name": "id_orbit",
"in": "query",
"required": false,
"schema": {
"type": "integer"
},
"description": "Orbit ID."
},
{
"name": "id_moon",
"in": "query",
"required": false,
"schema": {
"type": "integer"
},
"description": "Moon ID."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"id_star_system": {
"type": "integer"
},
"id_planet": {
"type": "integer"
}
}
}
}
}
}
}
}
}
}
}
},
"/terminals": {
"get": {
"summary": "Retrieve terminals",
"description": "Fetch terminal data based on optional filters.",
"operationId": "getTerminals",
"parameters": [
{
"name": "id_star_system",
"in": "query",
"required": false,
"schema": {
"type": "integer"
},
"description": "Star system ID."
},
{
"name": "id_planet",
"in": "query",
"required": false,
"schema": {
"type": "integer"
},
"description": "Planet ID."
},
{
"name": "name",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "Terminal name."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"id_star_system": {
"type": "integer"
},
"id_planet": {
"type": "integer"
}
}
}
}
}
}
}
}
}
}
}
}
}
}