---
title: "Image Analytics"
method: POST
path: "/image/analytics"
tags: ["API Endpoints"]
---

# Image Analytics

`POST /image/analytics`

## Request

- Base URL: `https://api.gumlet.com/v1`
- URL: `https://api.gumlet.com/v1/image/analytics`
- Auth: API key in header `Authorization`

This endpoint help you get analytics data.

## Request body

- object
  - `metrics` string[], required: Define the metric you need the data for, currently we support "bandwidth_consumption", "requests_count","status_4xx","status_5xx","avg_response_time""
  - `date_range` object, required: The timeframe to get the data for. Currently we only support a maximum of 30 days between `start_at` and `end_at`.
    - `start_at` string, date: The starting date to consider
    - `end_at` string, date: The ending date to consider

## Response `200`

200

- object
  - `top_assets` object[]
    - `collection_id` string
    - `asset_id` string
    - `units` integer
    - `collection_name` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/gumlet/apis/gumlet-rest-apis.md) - [All operations](https://skmtc.dev/gumlet/apis/gumlet-rest-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/gumlet/apis/gumlet-rest-apis/revisions/b1f7ac2aeeec?raw)
