WS metric/area/data

Area entries

Total entries to a defined area or zone — fitting rooms, service zones, product areas.

Returns total entries to a defined area over the requested period. Use it for fitting rooms, service zones, product areas, queues, and any zone where you want to count how many distinct visits start inside it.

Three values share this route (metric/area/data) — total entries, total dwell, and average dwell. Each page focuses on one field; request all three at once by including them in facets.

Body parameters

FieldTypeRequiredDescription
startstring (ISO 8601)yesInclusive start timestamp with timezone
endstring (ISO 8601)yesInclusive end timestamp with timezone
entitiesstring[]yesArray of location, organisation, or recording IDs (matching entityType)
entityType"location" | "organisation"yesAggregation level
areaType"taxonomy" | "location-dwell"yesRequired by all Area routes
taxonomystring[]conditionalRequired when areaType: "taxonomy". Zone path strings, e.g. ["Service:Fitting Rooms"]see how taxonomies work
facetsstring[]yesWhat to include: segments, summary, aggregates, thumbnails, thumbnails-with-statelems
aggregationPeriodstringyesTime granularity — see aggregation period options
breakdownByDimensionsstring[]noSplit data by: entity, taxonomy, age, gender, role
rolesstring[]conditionalRequired when breakdownByDimensions includes role
gendersstring[]conditionalRequired when breakdownByDimensions includes gender
agesstring[]conditionalRequired when breakdownByDimensions includes age
insideRecordingTimesbooleannotrue to restrict to opening hours only. Default false

Example request

{
  "action": "metric",
  "data": {
    "id": "req-ae-001",
    "route": "area/data",
    "body": {
      "start": "2024-04-01T00:00:00.000Z",
      "end": "2024-04-07T23:59:59.000Z",
      "entities": ["64a1b2c3d4e5f6a7b8c9d0e3"],
      "entityType": "location",
      "areaType": "taxonomy",
      "taxonomy": ["Service:Fitting Rooms"],
      "facets": ["segments", "summary"],
      "aggregationPeriod": "day"
    }
  }
}

Example response

req-ae-001|0|0|{
  "segments": [
    { "index": "2024-04-01T00:00:00.000", "location": "64a1b2c3d4e5f6a7b8c9d0e3", "area_total_entries": 184 },
    { "index": "2024-04-02T00:00:00.000", "location": "64a1b2c3d4e5f6a7b8c9d0e3", "area_total_entries": 207 }
  ],
  "summary": [
    { "location": "64a1b2c3d4e5f6a7b8c9d0e3", "area_total_entries": 1284 }
  ],
  "meta": {
    "units": {
      "area_total_entries": "peopleCount"
    }
  }
}

Update frequency

Refreshes approximately every 10 minutes.