# ☕️Java API

## How to get the API

You just have to use **maven** or **gradle**, you can get the **API** here

{% embed url="<https://github.com/LoneDev6/API-ScratchIt>" %}

## Description

ItemsAdder includes an easy to use API for Java developers.\
To access it just include **dev.lone.ScratchIt.api** in your code.

## Important!

You have to listen to the event **ScratchItCardsLoaded** in order to be sure that the cards are available to be accessed using the api.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://scratchit.devs.beer/developers/java-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
