Skip to main content

GET /api/v1/users/by_nickname/{nickname}

Returns the public profile of a user by their unique nickname. Behaves identically to Get User but accepts a nickname string instead of a numeric ID.

Authentication​

None required. This is a public endpoint.

Request​

Path Parameters​

ParameterTypeRequiredDescription
nicknamestringYesThe user's unique nickname

Example​

curl -X GET https://intotes.com/api/v1/users/by_nickname/alice_bet \
-H "Authorization: Bearer <token>"

Response​

200 OK​

{
"id": 42,
"name": "Alice",
"nickname": "alice_bet",
"profile_hidden": false,
"avatar_url": "https://cdn.intotes.com/avatars/42.jpg",
"positions": [],
"closed_positions": [],
"closed_positions_has_more": false,
"total_predictions": 12,
"biggest_win": 8500,
"registered_date": "2025-06-15"
}

If profile_hidden is true, only id, name, nickname, profile_hidden, and avatar_url are returned.

Response Fields​

FieldTypeDescription
idint64User ID
namestringDisplay name
nicknamestringUnique username (nullable)
profile_hiddenboolWhether the user has hidden their profile
avatar_urlstringURL of the user's avatar image
positionsarrayOpen positions with details
closed_positionsarrayClosed positions with details
total_predictionsint64Total number of closed positions
biggest_winint64Largest PnL win in kopecks
registered_datestringRegistration date in YYYY-MM-DD format

Errors​

StatusCodeDescription
400invalid_nicknameThe provided nickname is not valid
404user_not_foundNo user exists with this nickname