---
agentTools:
  projectIndex: https://developers.uberflip.com/llms.txt
---

# Get Metrics for Item

This endpoint returns metrics for an item

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Uberflip API",
    "version": "2.1",
    "description": "Uberflip API",
    "contact": {
      "name": "Uberflip",
      "url": "https://developers.uberflip.com/",
      "email": "contact@uberflip.com"
    }
  },
  "servers": [
    {
      "url": "https://v2.api.uberflip.com"
    }
  ],
  "tags": [
    {
      "name": "ITEMS"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/items/{itemId}/metrics": {
      "get": {
        "tags": [
          "ITEMS"
        ],
        "summary": "Get Metrics for Item",
        "description": "This endpoint returns metrics for an item",
        "operationId": "get-metrics-for-item",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "description": "The unique identifier of the item",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "from",
            "in": "query",
            "description": "Start date. Other values will be ignored. If not passed it defaults to one month ago.",
            "example": "2022-03-01T00:00:00-0000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End date. Other values will be ignored. If not passed it defaults to today.",
            "example": "2022-03-05T00:00:00-0000",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "page_views": {
                      "type": "integer",
                      "description": "The number of page views"
                    },
                    "average_time_per_visit": {
                      "type": "number",
                      "format": "float",
                      "description": "The amount of average time per visit"
                    },
                    "cta_impressions": {
                      "type": "integer",
                      "description": "The number of cta impressions"
                    },
                    "conversion_rate": {
                      "type": "integer",
                      "description": "The percent of conversions"
                    },
                    "social_shares": {
                      "type": "integer",
                      "description": "The number of shares"
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "value": {
                      "page_views": 32,
                      "average_time_per_visit": 0.6,
                      "cta_impressions": 2,
                      "conversion_rate": 5,
                      "social_shares": 12
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Access token from /authorize endpoint"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 151,
      "2": 113,
      "3": 115,
      "4": 165,
      "5": 253,
      "6": 73,
      "7": 0,
      "8": 113,
      "9": 158,
      "10": 39,
      "11": 103
    }
  }
}
```