Overview
Introduction
Haunt.gg API Reference Documentation
Welcome to the Haunt.gg API documentation. This section covers all available endpoints for user lookups and leaderboard functionality.
Welcome
The Haunt.gg API provides access to user profiles and leaderboard data. All endpoints use API key authentication and return JSON responses.
Base URL: https://haunt.gg/api
Available Endpoints
Lookup Endpoints
Retrieve detailed user information including profile data, badges, links, and audio tracks.
GET /lookup/username/{username}
- Look up user by usernameGET /lookup/uid/{uid}
- Look up user by user ID
Leaderboard Endpoints
Access leaderboard rankings with user statistics.
GET /leaderboard/views
- Get users ranked by profile viewsGET /leaderboard/badges
- Get users ranked by badge countGET /leaderboard/uid
- Get users ranked by UID
Authentication
All API endpoints require an API key passed as a query parameter:
Response Format
All successful requests return a 200
status with JSON data. Failed requests return a 404
status with: