> ## Documentation Index
> Fetch the complete documentation index at: https://docs.top.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Top.gg Java SDK: Community Library

> A community-maintained Java library for the Top.gg API. Post bot stats and retrieve bot and user information from your Java application.

The Top.gg Java SDK is a community-maintained library that wraps the Top.gg REST API for Java applications. It supports posting your bot's server count and retrieving bot and user information. It is not maintained by the Top.gg core team.

## Installation

The SDK is published through [JitPack](https://jitpack.io/#top-gg/java-sdk). Replace `VERSION` with the latest release tag or commit hash listed on the [releases page](https://github.com/top-gg/java-sdk/releases).

### Maven

Add the JitPack repository and the dependency to your `pom.xml`:

```xml theme={null}
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
```

```xml theme={null}
<dependencies>
    <dependency>
        <groupId>com.github.top-gg</groupId>
        <artifactId>java-sdk</artifactId>
        <version>VERSION</version>
    </dependency>
</dependencies>
```

### Gradle

Add the JitPack repository and the dependency to your `build.gradle`:

```gradle theme={null}
repositories {
    maven { url 'https://jitpack.io' }
}
```

```gradle theme={null}
dependencies {
    implementation 'com.github.top-gg:java-sdk:VERSION'
}
```

## What the library supports

* Posting your bot's server count to Top.gg
* Retrieving bot information and server counts
* Fetching Top.gg user profiles
* Checking if a specific user has voted

## Community and support

This library is not maintained by the Top.gg core team. For bug reports or feature requests, open an issue on the [GitHub repository](https://github.com/top-gg/java-sdk). For general API questions, join the Top.gg Discord server at [discord.gg/dbl](https://discord.gg/dbl).
