---
updatedAt: 2026-05-28T21:10:45.000Z
agentTools:
  projectIndex: https://docs.hivestack.com/llms.txt
---

# Get a list of units

Returns the list of units that belong to your organization

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Inventory",
    "version": "2",
    "description": "Inventory",
    "contact": {
      "email": "support@perion.com"
    }
  },
  "servers": [
    {
      "url": "https://apps.hivestack.com/api/v2"
    }
  ],
  "security": [
    {
      "APIKeyHeader": []
    },
    {
      "APIKeyQuery": []
    }
  ],
  "tags": [
    {
      "name": "Units",
      "description": ""
    }
  ],
  "paths": {
    "/units": {
      "get": {
        "tags": [
          "Units"
        ],
        "summary": "Get a list of units",
        "description": "Returns the list of units that belong to your organization",
        "operationId": "getUnits",
        "parameters": [
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/count"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessUnits"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "name": "hs-auth",
        "in": "header",
        "description": "The value should follow the following format: `apikey access_key:secret_key`"
      },
      "APIKeyQuery": {
        "type": "apiKey",
        "name": "apikey",
        "in": "query",
        "description": "The value should follow the following format: `access_key:secret_key`"
      }
    },
    "schemas": {
      "location": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "readOnly": true,
            "example": "CAMTR"
          },
          "country_id": {
            "type": "integer",
            "readOnly": true,
            "example": 10313
          },
          "latitude": {
            "type": "string",
            "readOnly": true,
            "example": "45.50N"
          },
          "level": {
            "type": "integer",
            "readOnly": true,
            "example": 3
          },
          "location_id": {
            "type": "integer",
            "readOnly": true,
            "example": 12728
          },
          "longitude": {
            "type": "string",
            "readOnly": true,
            "example": "73.57W"
          },
          "name": {
            "type": "string",
            "readOnly": true,
            "example": "Montreal"
          },
          "region_id": {
            "type": "integer",
            "readOnly": true,
            "example": 12435
          },
          "version": {
            "type": "string",
            "readOnly": true,
            "example": null
          }
        }
      },
      "location_nested": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/location"
          }
        ],
        "properties": {
          "archived": {
            "type": "boolean",
            "readOnly": true,
            "example": false
          },
          "hierarchy": {
            "type": "string",
            "readOnly": true,
            "example": "Canada > Quebec > Montreal"
          },
          "version": {
            "type": "string",
            "readOnly": true,
            "example": "statcan_10313_20240805"
          }
        }
      },
      "mediatype": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "transit"
          },
          "enumeration_id": {
            "type": "integer",
            "example": 1
          },
          "mediatype_id": {
            "type": "integer",
            "example": 100
          },
          "name": {
            "type": "string",
            "example": "Transit"
          },
          "parent_mediatype_id": {
            "type": "integer",
            "nullable": true,
            "example": null
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/mediatype_child"
            },
            "nullable": true
          }
        }
      },
      "mediatype_child": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "transit.airports"
          },
          "enumeration_id": {
            "type": "integer",
            "example": 101
          },
          "mediatype_id": {
            "type": "integer",
            "example": 111
          },
          "name": {
            "type": "string",
            "example": "Airports"
          },
          "parent_mediatype_id": {
            "type": "integer",
            "example": 100
          },
          "children": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "example": []
          }
        }
      },
      "unit": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean",
            "example": true
          },
          "allow_audio": {
            "type": "boolean",
            "example": true
          },
          "allow_flash": {
            "type": "boolean",
            "readOnly": true,
            "example": false
          },
          "allow_html": {
            "type": "boolean",
            "example": true
          },
          "allow_image": {
            "type": "boolean",
            "example": true
          },
          "allow_video": {
            "type": "boolean",
            "example": true
          },
          "allow_zip": {
            "type": "boolean",
            "example": true
          },
          "available_for_adserver": {
            "type": "boolean",
            "example": true
          },
          "available_for_deals": {
            "type": "boolean",
            "example": true
          },
          "available_for_open_exchange": {
            "type": "boolean",
            "example": true
          },
          "available_for_storefront": {
            "type": "boolean",
            "example": false
          },
          "blacklist_unique_advertiser_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "A list of unique advertiser IDs that are blacklisted for the unit. The unit will not play ads from these advertisers.\nNote that you can get the unique advertiser IDs from the advertiser object in the API. See CAMPAIGNS > Advertisers section for more details.",
            "example": [
              1,
              2,
              3
            ]
          },
          "created_on_utc": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "description": "The field that is shown in the UI effectively as its name",
            "example": "This is a unit"
          },
          "enable_strict_iab_blacklisting": {
            "type": "boolean",
            "example": false
          },
          "enable_strict_iab_frequency_capping": {
            "type": "boolean",
            "example": false
          },
          "external_id": {
            "type": "string",
            "description": "Your organization's unique identifier so that you can relate a unit in your own inventory system with a unit in our system",
            "example": "an_external_id"
          },
          "facing_direction": {
            "type": "string",
            "enum": [
              "N",
              "NE",
              "E",
              "SE",
              "S",
              "SW",
              "W",
              "NW",
              "RO"
            ],
            "example": "RO"
          },
          "floor_cpm": {
            "type": "number",
            "description": "The lowest CPM at which the unit will receive ad plays",
            "example": 1
          },
          "iab_blacklist_categories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of restricted IAB categories for the unit with format like 'IAB13-12'. Available IAB categories can be found [in this Perion DOOH Knowledge Base article](https://support.hivestack.com/support/solutions/articles/67000695918-iab-content-categories).\nWill only appear in response payload and can only be updated if '$expand=unit_iab_blacklist' is used in query parameters\"",
            "example": [
              "IAB1-1",
              "IAB1-3",
              "IAB13-12"
            ]
          },
          "image_uri": {
            "type": "string",
            "description": "Allow uploading an image of the unit. The value should be a valid URL.",
            "example": "https://cdn.example/image.png"
          },
          "latitude": {
            "type": "number",
            "example": 43
          },
          "location": {
            "type": "object",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/location_nested"
              }
            ]
          },
          "location_id": {
            "type": "integer",
            "readOnly": true,
            "description": "Equivalent to `location.location_id`",
            "example": 12728
          },
          "location_id_overridden": {
            "type": "boolean",
            "readOnly": true,
            "example": true
          },
          "longitude": {
            "type": "number",
            "example": -80.1243
          },
          "loop_length": {
            "type": "integer",
            "example": 60
          },
          "max_spot_length": {
            "type": "integer",
            "example": 10
          },
          "media_type": {
            "type": "object",
            "readOnly": true,
            "description": "By default `children` is not expanded",
            "allOf": [
              {
                "$ref": "#/components/schemas/mediatype"
              }
            ]
          },
          "mediatype_id": {
            "type": "integer",
            "description": "Equivalent to `media_type.mediatype_id`",
            "example": 127
          },
          "mediatype_name": {
            "type": "string",
            "readOnly": true,
            "description": "Equivalent to `media_type.name`",
            "example": "Bus Shelters"
          },
          "min_seconds_between_ad_domain_plays": {
            "type": "integer",
            "example": 10
          },
          "min_seconds_between_creative_category_plays": {
            "type": "integer",
            "example": 10
          },
          "min_seconds_between_iab_category_plays": {
            "type": "integer",
            "example": 10
          },
          "min_spot_length": {
            "type": "integer",
            "example": 10
          },
          "modified_on_utc": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "example": "I am a unit at a place"
          },
          "network_id": {
            "type": "integer",
            "example": 27
          },
          "operating_hours": {
            "type": "string",
            "description": "A weekly daypart of when a display is activated for ad delivery represented by 1s and 0s for each hour of the the week beginning on Monday at 12AM",
            "example": "000000111111111111111110000000111111111111111110000000111111111111111110000000111111111111111110000000111111111111111110000000111111111111111110000000111111111111111110"
          },
          "owner_id": {
            "type": "integer",
            "description": "The ID of the organization that owns the unit",
            "example": 14
          },
          "physical_screen_height_cm": {
            "type": "number",
            "example": 300
          },
          "physical_screen_width_cm": {
            "type": "number",
            "example": 533
          },
          "physical_unit_count": {
            "type": "integer",
            "description": "If there's only one physical unit, then this value will be `null`. If `1` is provided, it is considered as `null`",
            "example": 12
          },
          "screen_height": {
            "type": "integer",
            "description": "A unit's height in pixels",
            "example": 1080
          },
          "screen_width": {
            "type": "integer",
            "description": "A unit's width in pixels",
            "example": 1920
          },
          "serial_number": {
            "type": "string",
            "description": "The serial number of the unit. If the Perion Player is installed, this value is used to do the first automated sync",
            "example": "93AF66442F9C"
          },
          "site_id": {
            "type": "integer",
            "example": 4376
          },
          "spot_length": {
            "type": "integer",
            "example": 10
          },
          "timezone": {
            "type": "string",
            "description": "A timezone in standard database format",
            "example": "America/Montreal"
          },
          "unit_id": {
            "type": "integer",
            "readOnly": true,
            "example": 12345
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "example": "f500d04e-d6a2-4682-a9ae-035847826ed0"
          },
          "weekly_impressions": {
            "type": "integer",
            "deprecated": true,
            "description": "This field is deprecated in favor of weekly_traffic.",
            "example": 0
          },
          "weekly_traffic": {
            "type": "integer",
            "example": 0
          }
        }
      },
      "units": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/unit"
        }
      }
    },
    "parameters": {
      "top": {
        "name": "$top",
        "in": "query",
        "description": "The number of items to return.",
        "required": false,
        "schema": {
          "type": "integer",
          "example": 500,
          "default": 500
        }
      },
      "skip": {
        "name": "$skip",
        "in": "query",
        "required": false,
        "description": "The number of items to skip before starting to collect the result set.",
        "schema": {
          "type": "integer",
          "example": 0,
          "default": 0
        }
      },
      "count": {
        "name": "$count",
        "in": "query",
        "required": false,
        "description": "Parameter that returns the total number of items (true or false).",
        "schema": {
          "type": "string",
          "default": false
        }
      }
    },
    "responses": {
      "SuccessUnits": {
        "description": "OK - List of unit objects",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/units"
            }
          }
        }
      }
    }
  }
}
```