---
title: "Get Language Stats."
method: GET
path: "/website/{hostname}/languages"
tags: ["stats"]
---

# Get Language Stats.

`GET /website/{hostname}/languages`

Get a list of languages and their stats.

## Path parameters

- `hostname` string, hostname, required

## Query parameters

- `start` string, date-time
- `end` string, date-time
- `interval` 'hour' | 'day' | 'week' | 'month' | 'year'
- `path` FilterString
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `contains` string — Contains.
  - `not_contains` string — Does not contain.
  - `starts_with` string — Starts with.
  - `not_starts_with` string — Does not start with.
  - `ends_with` string — Ends with.
  - `not_ends_with` string — Does not end with.
  - `in` string — In.
  - `not_in` string — Not in.
- `referrer` FilterString
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `contains` string — Contains.
  - `not_contains` string — Does not contain.
  - `starts_with` string — Starts with.
  - `not_starts_with` string — Does not start with.
  - `ends_with` string — Ends with.
  - `not_ends_with` string — Does not end with.
  - `in` string — In.
  - `not_in` string — Not in.
- `utm_source` FilterString
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `contains` string — Contains.
  - `not_contains` string — Does not contain.
  - `starts_with` string — Starts with.
  - `not_starts_with` string — Does not start with.
  - `ends_with` string — Ends with.
  - `not_ends_with` string — Does not end with.
  - `in` string — In.
  - `not_in` string — Not in.
- `utm_medium` FilterString
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `contains` string — Contains.
  - `not_contains` string — Does not contain.
  - `starts_with` string — Starts with.
  - `not_starts_with` string — Does not start with.
  - `ends_with` string — Ends with.
  - `not_ends_with` string — Does not end with.
  - `in` string — In.
  - `not_in` string — Not in.
- `utm_campaign` FilterString
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `contains` string — Contains.
  - `not_contains` string — Does not contain.
  - `starts_with` string — Starts with.
  - `not_starts_with` string — Does not start with.
  - `ends_with` string — Ends with.
  - `not_ends_with` string — Does not end with.
  - `in` string — In.
  - `not_in` string — Not in.
- `browser` FilterFixed
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `in` string — In.
  - `not_in` string — Not in.
- `os` FilterFixed
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `in` string — In.
  - `not_in` string — Not in.
- `device` FilterFixed
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `in` string — In.
  - `not_in` string — Not in.
- `country` FilterFixed
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `in` string — In.
  - `not_in` string — Not in.
- `language` FilterFixed
  - `eq` string — Equal to.
  - `neq` string — Not equal to.
  - `in` string — In.
  - `not_in` string — Not in.
- `limit` integer
- `offset` integer

## Cookies

- `_me_sess` string, required

## Response `200`

OK

- object[]
  - `language` string, required — Language name.
  - `visitors` integer, required — Number of unique visitors for language.
  - `visitors_percentage` number, float, required — Percentage of unique visitors for language.

## Other responses

- `400` — 400 Bad Request.
- `401` — 401 Unauthorised.
- `403` — 403 Forbidden.
- `404` — 404 Not Found.
- `500` — 500 Unexpected Internal Server Error.

## Changes

- **2024-02-23** `7e58a00a419e` — 2 breaking, 2 info
  - for the `query` request parameter `limit`, default value `5` was removed
  - for the `query` request parameter `offset`, default value `0` was removed
  - for the `query` request parameter `limit`, the max was increased from `500.00` to `5000.00`
  - for the `query` request parameter `offset`, the max was increased from `500.00` to `5000.00`
- **2024-02-16** `7faed8d7ec93` — 2 info
  - for the `query` request parameter `end`, the format was generalized from `date` to `date-time`
  - for the `query` request parameter `start`, the format was generalized from `date` to `date-time`
- **2024-02-15** `9268015cf178` — 1 info
  - added the new optional `query` request parameter `offset`
- **2024-02-03** `dda4cecf2e5a` — 1 info
  - for the `query` request parameter `limit`, the format was generalized from `int32` to no format
- **2024-01-30** `b3fcc629d098` — 2 breaking, 2 info
  - removed the required property `items/unique_percentage` from the response with the `200` status
  - removed the required property `items/uniques` from the response with the `200` status
  - added the required property `items/visitors` to the response with the `200` status
  - added the required property `items/visitors_percentage` to the response with the `200` status

[Full history](https://skmtc.dev/medama-io/apis/medama-analytics-api/changes/website/:hostname/languages/get.md)

---

[API](https://skmtc.dev/medama-io/apis/medama-analytics-api.md) · [All operations](https://skmtc.dev/medama-io/apis/medama-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/medama-io/medama-analytics-api/revisions/7e58a00a419e/schema)
