| Property | Details |
|---|---|
| URL: | https://www2.swcombine.com/ws/v2.0/types/{entity_type:ships|vehicles|stations|facilities|items|npcs|droids|materials|races|weapons|planets|terrain|creatures|faction modules}[/] |
| Method: | GET |
| Description: | Gets a list of all entities of a certain type |
| Pattern Description: |
entity_type (Mandatory): One-of: ships, vehicles, stations, facilities, items, npcs, droids, materials, races, weapons, planets, terrain, creatures or faction modules |
| Rate Limited: | No |
| Query String: |
start_index (number): The first item to retrieve from the list, from 1 onwards (default 1). An invalid value is replaced by the default item_count (number): The number of items to retrieve (1 to 50, default 50). An invalid value is replaced by the default |
| Parameters: | N/A |
| Requires Authentication: | No |
| Permissions: | N/A |
| Returns: |
200 OK: Returns a collection of all entities of a certain type |
| Examples: |
GET /ws/v2.0/types/ships/
JSON{
"version": "2.0",
"timestamp": 1767225600,
"resource": "types_entities",
"request": "/ws/v2.0/types/ships/",
"swcapi": {
"shiptypes": {
"attributes": {
"start": 1,
"total": 253,
"count": 3
},
"shiptype": [
{
"attributes": {
"uid": "2:1",
"href": "https://www.swcombine.com/ws/v2.0/types/ships/victory%20i-class%20star%20destroyer/"
},
"value": "Victory I-class Star Destroyer"
},
{
"attributes": {
"uid": "2:2",
"href": "https://www.swcombine.com/ws/v2.0/types/ships/executor-class%20star%20destroyer/"
},
"value": "Executor-class Star Destroyer"
},
{
"attributes": {
"uid": "2:3",
"href": "https://www.swcombine.com/ws/v2.0/types/ships/carrack%252Fs-class%20light%20cruiser/"
},
"value": "Carrack/S-class Light Cruiser"
}
]
}
}
}
XML<?xml version="1.0" encoding="UTF-8"?>
<swcapi xmlns="https://www.swcombine.com/ws/swcapi-ns/" version="2.0" timestamp="1767225600" resource="types_entities" request="/ws/v2.0/types/ships/">
<shiptypes count="3" start="1" total="253">
<shiptype uid="2:1" href="https://www.swcombine.com/ws/v2.0/types/ships/victory%20i-class%20star%20destroyer/">Victory I-class Star Destroyer</shiptype>
<shiptype uid="2:2" href="https://www.swcombine.com/ws/v2.0/types/ships/executor-class%20star%20destroyer/">Executor-class Star Destroyer</shiptype>
<shiptype uid="2:3" href="https://www.swcombine.com/ws/v2.0/types/ships/carrack%252Fs-class%20light%20cruiser/">Carrack/S-class Light Cruiser</shiptype>
</shiptypes>
</swcapi>
|