---
title: "Get users by IP"
method: GET
path: "/api/admin/v1/user/get_users_by_ip"
tags: ["Admin Utils"]
---

# Get users by IP

`GET /api/admin/v1/user/get_users_by_ip`

Find users associated with an IP address.

## Query parameters

- `ip` string

## Response `200`

successful

- object
  - `users` object[]
    - `user_id` integer
    - `ip_address` string
    - `machine` string, nullable
    - `user_agent` string, nullable

## Other responses

- `422` — missing ip — Returned ("bro dont got the ip") when the ip parameter is blank.

---

[API](https://skmtc.dev/hackclub/apis/hackatime-admin-api.md) · [All operations](https://skmtc.dev/hackclub/apis/hackatime-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hackclub/hackatime-admin-api/revisions/f5a2d53cd28d/schema)
