---
agentTools:
  projectIndex: https://docs.wastehero.io/llms.txt
---

# Get Containers

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "WasteHero REST API",
    "description": "\nWelcome to the WasteHero REST API. Using this API you will be able to retrieve metrics from your WasteHero account. \n\nAPI endpoints have the throttling enabled and configured in a customer company settings.\n Default is 120 requests per minute.\n",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://platform-api.wastehero.io",
      "description": "Production environment"
    }
  ],
  "paths": {
    "/api/v3/container/": {
      "get": {
        "tags": [
          "Container"
        ],
        "summary": "Get Containers",
        "operationId": "get_containers_api_v3_container__get",
        "parameters": [
          {
            "required": false,
            "schema": {
              "title": "Limit",
              "maximum": 50,
              "minimum": 1,
              "type": "integer",
              "default": 10
            },
            "name": "limit",
            "in": "query"
          },
          {
            "required": false,
            "schema": {
              "title": "Offset",
              "minimum": 0,
              "type": "integer",
              "default": 0
            },
            "name": "offset",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIV3LimitOffsetPaginator_ContainerOutputSerializerV3_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "PlatformAPIKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "APIV3LimitOffsetPaginator_ContainerOutputSerializerV3_": {
        "title": "APIV3LimitOffsetPaginator[ContainerOutputSerializerV3]",
        "required": [
          "items",
          "total",
          "limit",
          "offset",
          "has_next",
          "has_previous"
        ],
        "type": "object",
        "properties": {
          "items": {
            "title": "Items",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContainerOutputSerializerV3"
            }
          },
          "total": {
            "title": "Total",
            "minimum": 0,
            "type": "integer"
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "type": "integer"
          },
          "offset": {
            "title": "Offset",
            "minimum": 0,
            "type": "integer"
          },
          "has_next": {
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "title": "Has Previous",
            "type": "boolean"
          }
        },
        "description": "A paginator that uses limit and offset as pagination parameters.\nExtended with has_next and has_previous fields to add pagination metadata."
      },
      "ContainerGroupOutputSerializerV3": {
        "title": "ContainerGroupOutputSerializerV3",
        "required": [
          "project",
          "location",
          "created_at",
          "name",
          "updated_at"
        ],
        "type": "object",
        "properties": {
          "project": {
            "$ref": "#/components/schemas/ProjectOutputSerializerV3"
          },
          "location": {
            "$ref": "#/components/schemas/LocationOutputSerializerV3"
          },
          "created_at": {
            "title": "Created At",
            "type": "boolean"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        }
      },
      "ContainerOutputSerializerV3": {
        "title": "ContainerOutputSerializerV3",
        "required": [
          "container_type",
          "location",
          "waste_fraction",
          "project",
          "container_id",
          "status",
          "pickup_method",
          "updated_at",
          "created_at"
        ],
        "type": "object",
        "properties": {
          "container_type": {
            "$ref": "#/components/schemas/ContainerTypeOutputSerializerV3"
          },
          "container_group": {
            "$ref": "#/components/schemas/ContainerGroupOutputSerializerV3"
          },
          "stored_at_depot": {
            "$ref": "#/components/schemas/DepotOutputSerializerV3"
          },
          "location": {
            "$ref": "#/components/schemas/LocationOutputSerializerV3"
          },
          "waste_fraction": {
            "$ref": "#/components/schemas/WasteFractionOutputSerializerV3"
          },
          "project": {
            "$ref": "#/components/schemas/ProjectOutputSerializerV3"
          },
          "measurement": {
            "$ref": "#/components/schemas/FillLevelMeasurementOutputSerializerV3"
          },
          "container_id": {
            "title": "Container Id",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "allowed_hours_start": {
            "title": "Allowed Hours Start",
            "type": "string",
            "format": "time"
          },
          "allowed_hours_end": {
            "title": "Allowed Hours End",
            "type": "string",
            "format": "time"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "show_on_route": {
            "title": "Show On Route",
            "type": "boolean",
            "default": false
          },
          "pickup_method": {
            "title": "Pickup Method",
            "type": "string"
          },
          "sensor_fill_level": {
            "title": "Sensor Fill Level",
            "type": "integer"
          },
          "prioritize_in_start_of_route": {
            "title": "Prioritize In Start Of Route",
            "type": "boolean",
            "default": false
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "title": "Created At",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ContainerTypeOutputSerializerV3": {
        "title": "ContainerTypeOutputSerializerV3",
        "type": "object",
        "properties": {
          "project": {
            "$ref": "#/components/schemas/ProjectOutputSerializerV3"
          },
          "pickup_setting": {
            "$ref": "#/components/schemas/PickupSettingOutputSerializerV3"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "emplacement": {
            "title": "Emplacement",
            "type": "string"
          },
          "mobility": {
            "title": "Mobility",
            "type": "string"
          },
          "vehicle_coupling": {
            "title": "Vehicle Coupling",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "container_access": {
            "title": "Container Access",
            "type": "string"
          },
          "emptying_time": {
            "title": "Emptying Time",
            "type": "integer"
          },
          "width": {
            "title": "Width",
            "type": "number"
          },
          "height": {
            "title": "Height",
            "type": "number"
          },
          "length": {
            "title": "Length",
            "type": "number"
          },
          "diameter": {
            "title": "Diameter",
            "type": "number"
          },
          "is_cylindrical": {
            "title": "Is Cylindrical",
            "type": "boolean",
            "default": false
          }
        }
      },
      "DepotOutputSerializerV3": {
        "title": "DepotOutputSerializerV3",
        "required": [
          "id",
          "location",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "location": {
            "$ref": "#/components/schemas/LocationOutputSerializerV3"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "geofence_radius": {
            "title": "Geofence Radius",
            "type": "integer"
          },
          "opening_time": {
            "title": "Opening Time",
            "type": "string",
            "format": "time"
          },
          "closing_time": {
            "title": "Closing Time",
            "type": "string",
            "format": "time"
          },
          "time_to_unload_truck": {
            "title": "Time To Unload Truck",
            "type": "string",
            "format": "time"
          },
          "time_to_leave_the_facility": {
            "title": "Time To Leave The Facility",
            "type": "string",
            "format": "time"
          },
          "amount_of_trucks": {
            "title": "Amount Of Trucks",
            "type": "integer"
          },
          "capacity_of_trucks": {
            "title": "Capacity Of Trucks",
            "type": "integer"
          },
          "workshop_service_description": {
            "title": "Workshop Service Description",
            "type": "string"
          },
          "workshop_type": {
            "title": "Workshop Type",
            "type": "string"
          }
        }
      },
      "FillLevelMeasurementOutputSerializerV3": {
        "title": "FillLevelMeasurementOutputSerializerV3",
        "required": [
          "fill_level",
          "created_at"
        ],
        "type": "object",
        "properties": {
          "fill_level_measurement_meta": {
            "$ref": "#/components/schemas/FillLevelMetaBaseSerializerV3"
          },
          "fill_level": {
            "title": "Fill Level",
            "type": "number"
          },
          "raw_measurements": {
            "title": "Raw Measurements",
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "fill_percentage": {
            "title": "Fill Percentage",
            "type": "number"
          },
          "temperature": {
            "title": "Temperature",
            "type": "number"
          },
          "dev_id": {
            "title": "Dev Id",
            "type": "string",
            "default": ""
          },
          "created_at": {
            "title": "Created At",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "FillLevelMetaBaseSerializerV3": {
        "title": "FillLevelMetaBaseSerializerV3",
        "required": [
          "created_at",
          "protocol"
        ],
        "type": "object",
        "properties": {
          "created_at": {
            "title": "Created At",
            "type": "string",
            "format": "date-time"
          },
          "protocol": {
            "title": "Protocol",
            "type": "string"
          },
          "json_version": {
            "title": "Json Version",
            "type": "integer"
          },
          "transmit_count": {
            "title": "Transmit Count",
            "type": "integer"
          },
          "gwt": {
            "title": "Gwt",
            "type": "string",
            "default": ""
          },
          "battery_level": {
            "title": "Battery Level",
            "type": "number"
          },
          "rsi": {
            "title": "Rsi",
            "type": "integer"
          },
          "register_time": {
            "title": "Register Time",
            "type": "integer"
          },
          "snr": {
            "title": "Snr",
            "type": "number"
          },
          "header_version": {
            "title": "Header Version",
            "type": "integer"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "ccid": {
            "title": "Ccid",
            "type": "string"
          },
          "crc": {
            "title": "Crc",
            "type": "string"
          },
          "act": {
            "title": "Act",
            "type": "string"
          },
          "oper": {
            "title": "Oper",
            "type": "string"
          },
          "ch": {
            "title": "Ch",
            "type": "integer"
          },
          "cid": {
            "title": "Cid",
            "type": "string"
          },
          "lac": {
            "title": "Lac",
            "type": "string"
          },
          "ant": {
            "title": "Ant",
            "type": "string"
          },
          "old_status_code": {
            "title": "Old Status Code",
            "type": "integer"
          },
          "battery_percentage": {
            "title": "Battery Percentage",
            "type": "number"
          }
        }
      },
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "LocationOutputSerializerV3": {
        "title": "LocationOutputSerializerV3",
        "required": [
          "latitude",
          "longitude"
        ],
        "type": "object",
        "properties": {
          "latitude": {
            "title": "Latitude",
            "type": "number"
          },
          "longitude": {
            "title": "Longitude",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        }
      },
      "PickupSettingOutputSerializerV3": {
        "title": "PickupSettingOutputSerializerV3",
        "required": [
          "id",
          "pickup_method",
          "container_status"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "project": {
            "$ref": "#/components/schemas/ProjectOutputSerializerV3"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "pickup_method": {
            "title": "Pickup Method",
            "type": "string"
          },
          "container_status": {
            "title": "Container Status",
            "type": "string"
          },
          "emptying_interval_from": {
            "title": "Emptying Interval From",
            "type": "string",
            "format": "time"
          },
          "emptying_interval_to": {
            "title": "Emptying Interval To",
            "type": "string",
            "format": "time"
          },
          "exclude_days": {
            "title": "Exclude Days",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fixed_pickups_period": {
            "title": "Fixed Pickups Period",
            "type": "string"
          },
          "pickup_interval": {
            "title": "Pickup Interval",
            "type": "string"
          },
          "pickup_repeat_period": {
            "title": "Pickup Repeat Period",
            "type": "integer"
          },
          "allowed_hours_from": {
            "title": "Allowed Hours From",
            "type": "string",
            "format": "time"
          },
          "allowed_hours_to": {
            "title": "Allowed Hours To",
            "type": "string",
            "format": "time"
          },
          "amount_days_between_pickups": {
            "title": "Amount Days Between Pickups",
            "type": "integer"
          },
          "minimum_days_between_pickup": {
            "title": "Minimum Days Between Pickup",
            "type": "integer"
          },
          "collection_per_week": {
            "title": "Collection Per Week",
            "type": "integer"
          },
          "first_collection": {
            "title": "First Collection",
            "type": "string",
            "format": "date"
          }
        }
      },
      "ProjectOutputSerializerV3": {
        "title": "ProjectOutputSerializerV3",
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "creating_demo_data": {
            "title": "Creating Demo Data",
            "type": "boolean",
            "default": false
          }
        }
      },
      "ValidationError": {
        "title": "ValidationError",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Location",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        }
      },
      "WasteFractionOutputSerializerV3": {
        "title": "WasteFractionOutputSerializerV3",
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "project": {
            "$ref": "#/components/schemas/ProjectOutputSerializerV3"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "waste_type": {
            "title": "Waste Type",
            "type": "string"
          },
          "waste_category": {
            "title": "Waste Category",
            "type": "string"
          },
          "waste_substance": {
            "title": "Waste Substance",
            "type": "string"
          },
          "weight_factor": {
            "title": "Weight Factor",
            "type": "number"
          }
        }
      }
    },
    "securitySchemes": {
      "PlatformAPIKey": {
        "type": "apiKey",
        "description": "\nYou can find your API key in the settings section on app.wastehero.io. When you have the key it should be added as an Authorization header with the name X-API-Key.\n",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 199,
      "2": 86,
      "3": 211,
      "4": 157,
      "5": 89,
      "6": 18,
      "7": 0,
      "8": 12,
      "9": 100,
      "10": 34,
      "11": 175
    }
  }
}
```