[Home](./index.md) > [bitburner](./bitburner.md) > [WarehouseAPI](./bitburner.warehouseapi.md) > [getWarehouse](./bitburner.warehouseapi.getwarehouse.md)
## WarehouseAPI.getWarehouse() method
Get warehouse data
Signature:
```typescript
getWarehouse(divisionName: string, city: CityName | `${CityName}`): Warehouse;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| divisionName | string | Name of the division |
| city | [CityName](./bitburner.cityname.md) \| \`${[CityName](./bitburner.cityname.md)}\` | Name of the city |
Returns:
[Warehouse](./bitburner.warehouse.md)
warehouse data