# Adding support with API

Adding support is very easy! It's as simple as allowing players to input their desired custom head id and loading the head item from our API.

### 1. Add `AdvancedHeads` as a soft dependency into your plugins.yml file

{% code title="plugin.yml" %}

```yaml
softdepend: [AdvancedHeads]
```

{% endcode %}

### 2. Example integration into a config file:

{% code title="config.yml" %}

```yaml
item:
  advancedHeads: 222
```

{% endcode %}

### 3. Now, onto the loading part from code:

{% code title="Main.java" %}

```java
ItemStack customHead = AdvancedHeadsAPI.getHead(getConfig().getInt("item.advancedHeads));
```

{% endcode %}

### 4. The result

Now you have an itemstack, which looks like this in-game:

![](https://i.imgur.com/zjDejoT.png)


---

# 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://heads.advancedplugins.net/usage/adding-support-with-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.
