Mensual por URL

Changed on

Este endpoint entrega las estadísticas de una URL corta para cada uno de los días del mes indicado.

get/api/urlshortener/v5/statistics/token/month

Request

  • Base URL
    https://www.hablame.co
  • Auth
    API key in header X-Hablame-Key

Query parameters

urlstring required

Indique la URL corta a eliminar sin https. hab.me/xxxxx

monthstring required

Mes a realizar la consulta Ejm. 202502

Response

200

responseTimenumber
statusCodeinteger
statusMessagestring
timestampstring

Example response

{
  "payload": {
    "token": "hm3ZHq3",
    "redirect": {
      "pc": [
        "https://www.hablame.co/pc-01"
      ],
      "mobile": [
        "https://ecare.hablame.co/mobile-01"
      ]
    },
    "domain": "qa.hcol.co",
    "dailyReport": {
      "20250225": {
        "dateFirstVisit": "2025-02-25T22:54:50-05:00",
        "dateLastVisit": "2025-02-25T23:05:03-05:00",
        "totalViews": 7,
        "totalUniqueViews": 4,
        "totalUniqueViewsByBrowser": {
          "Chrome": {
            "133_0_0": 4
          }
        },
        "totalUniqueViewsByCity": {
          "SA": {
            "CO": {
              "DC": {
                "Bogotá": 4
              }
            }
          }
        },
        "totalUniqueViewsByDevice": {
          "pc": 4
        },
        "totalUniqueViewsByLanguage": {
          "es": 4
        },
        "totalUniqueViewsByOs": {
          "Windows 10": {
            "others": 4
          }
        }
      },
      "20250226": {
        "dateFirstVisit": "2025-02-25T20:07:56-05:00",
        "totalViewsByHour": {
          "23": 3
        },
        "dateLastVisit": "2025-02-25T23:01:22-05:00",
        "totalViews": 29,
        "totalUniqueViews": 4,
        "totalUniqueViewsByBrowser": {
          "Chrome": {
            "133_0_0": 3
          },
          "Chrome Mobile": {
            "133_0_0": 1
          }
        },
        "totalUniqueViewsByCity": {
          "SA": {
            "CO": {
              "DC": {
                "Bogotá": 4
              }
            }
          }
        },
        "totalUniqueViewsByDevice": {
          "pc": 3,
          "mobile": 1
        },
        "totalUniqueViewsByLanguage": {
          "es": 4
        },
        "totalUniqueViewsByOs": {
          "Windows 10": {
            "others": 3
          },
          "Android 10": {
            "others": 1
          }
        }
      }
    },
    "createdDate": "2025-02-23T18:29:16-05:00"
  },
  "responseTime": 1.76,
  "statusCode": 200,
  "statusMessage": "successful",
  "timestamp": "2025-02-25T23:08:55-05:00"
}

Changes