# ObserverAPI > Static accessor for the Observer API instance. `gg.lode.observerapi` --- ## Signature ```java public class ObserverAPI ``` --- ## Methods ### getApi ```java public static IObserverAPI getApi() ``` Returns the current [[IObserverAPI]] instance. **Returns:** `IObserverAPI` - the API instance --- ### setApi ```java public static void setApi(IObserverAPI api) ``` Sets the API instance. This is called internally by the plugin and should not be used by external developers. | Parameter | Type | Description | |-----------|------|-------------| | `api` | `IObserverAPI` | The API instance | --- ## Related Pages - [[IObserverAPI]]